acs-content-repository

  • last updated 19 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
file upgrade-5.9.1d10-5.9.1d11.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/common/upgrade/upgrade-5.9.1d10-5.9.1d11.sql
file upgrade-5.9.1d9-5.9.1d10.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d9-5.9.1d10.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d9-5.9.1d10.sql
Content-Repository Reform: reduce dependency on cr_child_rels and make

creation of cr_child_rels entries optional. Most applications do not

need cr_child_rels, these take substantial space and slow down

operations. The change is fully backward compatible, since per

default cr_child_rels are still created. First tests show an

improvement for the creation of cr_items by 17% and for deletion by

28% (when parent item is a plain cr_item, as it is e.g. the case in

xwowiki). Same change made as well for Oracle.

- affected functions (here with pg-names)

* procedure content_item__new/21 (version for text or file entries) has new optional boolean parameter: with_child_rels

* procedure content_item__new/17 (version for blob entries) has new optional boolean parameter: with_child_rels

- remove/reduce dependency on cr_child_rels (if no rel-tag is used, the chile-information is obtained from cr_items)

* content_item__is_publishable/1

* content_item__is_valid_child/3

* content_item__is_valid_child/2

- reduce number of functions by using defaults

* content_item__copy/5

* content_item__get_title/2

* content_item__move/3

    • -0
    • +1724
    ./sql/oracle/upgrade/upgrade-5.9.1d9-5.9.1d10.sql
    • -178
    • +96
    ./sql/postgresql/content-item.sql
- fix install scripts

  1. … 1 more file in changeset.
Content-Repository Reform: reduce dependency on cr_child_rels and simplify content_item__del() via cascading delete operations

- remove manual deletion operations from content_item__del() via

* delete cr_child_rels via "ON DELETE CASCADE" on parent_id and child_id

* delete cr_item_rels via "ON DELETE CASCADE" on item_id

* delete acs_object_context_index entries via "ON DELETE CASCADE" on ancestor_id and object_id

* delete acs_objects entries via "ON DELETE CASCADE" on context_id

- remove manual deletion operations for symlinks amd journal entries,

since db constrains handle the deletion already

- use cr_items.parent_id instead of cr_child_rels to determine direct children

of items

- remove deletion trigger for content search content_search__dtrg

since "ON DELETE CASCADE" removes entries already

    • -6
    • +11
    ./sql/postgresql/content-create.sql
    • -42
    • +15
    ./sql/postgresql/content-item.sql
    • -13
    • +4
    ./sql/postgresql/content-search.sql
file upgrade-5.9.1d8-5.9.1d9.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d8-5.9.1d9.sql
- bump version number to 5.9.1d8

- Fix type of v_is_registered in dql function content_folder__register_content_type to boolean (was "varchar")

(This chance is necessary at least for pg 9.5)

    • -3
    • +3
    ./tcl/test/content-folder-test-procs.tcl
file upgrade-5.9.1d7-5.9.1d8.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d7-5.9.1d8.sql
file upgrade-5.9.1d6-5.9.1d7.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d6-5.9.1d7.sql
file upgrade-5.9.1d4-5.9.1d5.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d4-5.9.1d5.sql
file upgrade-5.9.1d5-5.9.1d6.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d5-5.9.1d6.sql
Content-Repository Reform : Reduction of number of functions in

the content repository for PostgreSQL by using using argument defaults

(while providing compatibility for clients using old versions):

- reduced number of versions of content_item__new from 12 (!) to 6 by using defaults

- commented differences

- commented arguments of plpgsql functions with long argument lists

- reduced code duplication by basing one version of content_item__new/17 directly on /20

- marking on version of content_item__new/17 and content_item__new/6 as deprecated

- reduced number of versions of content_revision__new from 7 to 4 by using defaults

- commented differences

- marking on version of content_revision__new/7 as deprecated

- let automatically generated functions call directly content_revision__new/13

- remove space from automatically generated functions

- updated automatically generated functions for all types of the content repository

- reduced number of versions of image__new from 4 to 2by using defaults

- reduced number of versions of image__new_revision from 2 to 1 by using defaults

    • -9
    • +12
    ./sql/postgresql/content-create.sql
    • -150
    • +14
    ./sql/postgresql/content-image.sql
    • -399
    • +93
    ./sql/postgresql/content-item.sql
    • -197
    • +93
    ./sql/postgresql/content-revision.sql
- bump version number

- fix type of v_is_registered to boolean. This fix is necessary at least under pg 9.5

file upgrade-5.8.3a0-5.8.3a1.sql was initially added on branch oacs-5-8.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.8.3a0-5.8.3a1.sql
- fix editing bug

- Update automatically generated function for cr-types to use provided

publish_date in new revision (Changes for PostgreSQL and Oracle)

    • -0
    • +946
    ./sql/oracle/upgrade/upgrade-5.9.1d3-5.9.1d4.sql
file upgrade-5.9.1d3-5.9.1d4.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d3-5.9.1d4.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d3-5.9.1d4.sql
- Bug-fix: Make sure, trigger content_item_search__utrg does try to

delete content from via search queue when old publish_date was in

the future (since this is avoided by the same trigger).

(Oracle seems to implement search quite different)

file upgrade-5.9.1d2-5.9.1d3.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d2-5.9.1d3.sql
- Add argument to content_item__set_live_revision (and oracle's counterpart)

to honor optionally provided "publish_date". The old behavior used hard-coded

the current time. The function is fully backward compatible, when no

publish_date is provided, the current time is used for the publish_date.

- changes for PostgreSQL and Oracle.

    • -0
    • +1728
    ./sql/oracle/upgrade/upgrade-5.9.1d1-5.9.1d2.sql
file upgrade-5.9.1d1-5.9.1d2.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d1-5.9.1d2.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d1-5.9.1d2.sql
- fix unclosed element

- fix documentation bug (... -revision best ... does not work)

- fix lob interface (especially for portraits)

  1. … 3 more files in changeset.
- prefer sql statements between curly braces

    • -2
    • +2
    ./tcl/content-revision-procs-postgresql.xql
    • -2
    • +5
    ./tcl/test/content-item-test-procs.tcl
    • -16
    • +16
    ./tcl/test/content-search-procs.tcl
.xql-file reform of acs-content-repository

- remove sql statements from the code, where these are provided via .xql

- prefer empty sql statements over various forms of *SQL*

- remove unneeded sql queries

cr_check_orphaned_files.fetch_path

content::item::upload_file.get_parent_existing_filenames

content::revision::new.update_lob_attribute

content::init_all.get_template_url

content::init.get_live_revision

content::init_all.get_live_revision

cr::keyword::item_unassign.item_unassign

cr::keyword::get_keyword_id.select_keyword_id

cr::keyword::item_unassign_children.item_unassign_children

cr::keyword::item_get_assigned.get_keywords

cr::keyword::item_get_assigned.get_child_keywords

cr::keyword::get_options_flat.select_keyword_options

publish::write_content.get_revision_id

    • -6
    • +0
    ./tcl/acs-content-repository-procs-oracle.xql
    • -2
    • +2
    ./tcl/acs-content-repository-procs.tcl
    • -10
    • +1
    ./tcl/content-revision-procs-oracle.xql
- bump version numbers from 5.9.0b* to 5.9.0

  1. … 32 more files in changeset.
- bump version numbers to 6.9.0 (oacs) / 2.9.0 (dotlrn)

  1. … 72 more files in changeset.