• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- backport of item_index fixes from HEAD/oacs-5-9

  1. … 2 more files in changeset.
- applying resolve-local patch from HEAD

  1. … 1 more file in changeset.
resolve-local patch:

- one a sym-link, the developer can decide, whether the

resolve-context (for links, images, etc.) should be in the local

package (i.e. the package containing the link, the form-field

resolve_local is true) or the target package (resolve_local is

false). However, .SELF. references refer always to the target

package, which was incorrect in previous versions. This patch

resets the the resolving policy under der .SELF. reference and

allows for using both resolve_local choices.

  1. … 1 more file in changeset.
- fix updating problem for FormPage.set_live_revision method: perform update_item_index with the data from the new revision

- make code more clear that we are fetching by revision

  1. … 1 more file in changeset.
- define FormPage.set_live_revision, a specialized version of

CrItem.set_live_revision updating the item index.

- prefer usage of FormPage.set_live_revision over

"::xo::db::sql::content_item set_live_revision" in xowiki

  1. … 2 more files in changeset.
- provide a friendly message in case the xowiki_form_instance_item_index was not setup correctly

- fix quoting in weblog

- fix entries per page on weblog-portlet (was including all entries

instead of page-size entries)

- define "get_nls_language_from_lang" on xowiki::Package to fix

default language issue for imported prototype pages (when default

lang is not "en")

  1. … 5 more files in changeset.
- remove obsolete code

- improve safety of generated HTML

  1. … 5 more files in changeset.
- improve validity and security of generated HTML

  1. … 12 more files in changeset.
- make resolving of embedded resources more robust (reset id of search-path instead of prepending name, which might be unsufficiently constraint)

removing extra space.

removing extra space.

- drop unneeded method "reverse" (8.5 has this built in)

  1. … 1 more file in changeset.
- remove special handling of text attribute since this is not required when using xowiki_form_instance_item_view

- remove special handling of text attribute since this is not required when using xowiki_form_instance_item_view

- apply FormPage.update_attribute_from_slot change from oacs-5-8

- white space change (strip trailing spaces)

- Add tailored method FormPage.update_attribute_from_slot to keep

insert_xowiki_form_instance_item_index in sync after singe attribtute updates.

Merging back to HEAD all changes that happened in branch oacs-5-8 between tags: vg-merge-oacs-5-8-from-20141027 and vg-merge-oacs-5-8-from-20150427

  1. … 520 more files in changeset.
on xowiki_form_instance_item_view data field became text so no need for the alias.

- remove acs-object's "tree_sortkey" and "max_child_sortkey" since these are nowhere used

- fix view to return text content in column "text"

  1. … 2 more files in changeset.
a specialized version of CrClass.fetch_object for FormPage based

on xowiki_form_instance_item_view for reduced planning and execution

time in PostgreSQL.

Adding missing where clause for parent_id.

- ease updating of hstore in xowiki_form_instance_item_index for many instances (i just did the update for 35.000 instances on one machine).

- improve robustness of index generation

- fix bug with missing variable in instvars

  1. … 1 more file in changeset.
name variable needs to be instantiated as well.

- add package_parameter use_hstore to xowiki

- updat descriptiong for use_hstore in xowf

- update xowiki_form_instance_item_index when renaming items

- new function xowiki::update_item_index to manually update certain

fields in the xowiki_form_instance_item_index

- remove obsolste function in xowf

  1. … 4 more files in changeset.
- bumped version to 0.161

- substantially improved scalability when acessing xowiki form pages

based on attributes specified in revision tables.

- much faster version of folders.folder_query (mostly relevant, when having

hundreds/thousands of folders) and FormPage.get_form_entries

- transferred hstore support from xowf to xowiki (e.g. utilities in

::xowiki::hstore::*)

- FormPage.hstore_attributes: added configurable support for

specifying, what attributes of instance-attributes should

be used in hstore.

- change virus scanning from "clamscan" to "clamdscan"

(use daemon-based version for improved performance

when uploading files)

# - xowiki_form_instance_item_index:

#

# A materialized table of xowiki formpage instances, containing

# just the item information, but combined with other attributes

# frequently used for indexing (like page_id, paren_id, ... hkey).

#

# Rationale: The quality of indices on cr_revisions tend to

# decrease when there are many revisions stored in the database,

# since the number of duplicates increases due to non-live

# revisions. This table can be used for indexing just the live

# revision on the item level.

#

# select count(*) from xowiki_form_instance_item_index

# where package_id = 18255683

# and page_template = 20260757

# and publish_status='ready';

#

#

# Define helper views in connection with the form_instance_item_index:

#

# - xowiki_form_instance_item_view:

#

# A view similar to xowiki_form_pagei, but containing already

# often extra-joined attributes like parent_id, object_type,

# publish_status, etc.. This view returns

# only the values of the live revisions, and uses

# "form_instance_item_index" for quick lookup.

#

# select * from xowiki_form_instance_item_view

# where package_id = 18255683

# and page_template = 20260757

# and publish_status='ready';

#

#

# - xowiki_form_instance_children:

#

# Return the root_item_id and all attributes of the

# form_instance_item_index of all child items under the tree based

# on parent_ids. Use a query like the following to count the

# children of an item having a certain page_template (e.g.

# find all the folders/links/... having the the specified item as

# parent).

#

# select count(*) from xowiki_form_instance_children

# where root_item_id = 18255779

# and page_template = 20260757

# and publish_status='ready';

#

# - xowiki_form_instance_attributes

#

# Return for a given item_id the full set of attributes like the

# one returned from xowiki_form_instance_item_view. The idea is to

# make it convenient to obtain from a query all attributes

# necessary for creating instances. The same view can be used to

# complete either values from the xowiki_form_instance_item_index

#

# select * from xowiki_form_instance_item_index xi

# left join xowiki_form_instance_attributes xa on xi.item_id = xa.item_id;

#

# or from xowiki_form_instance_children

#

# select * from xowiki_form_instance_children ch

# left join xowiki_form_instance_attributes xa on ch.item_id = xa.item_id;

  1. … 5 more files in changeset.
Using ::xo::dc api instead of db_*.

  1. … 3 more files in changeset.
- make sure to add indices on foreign keys