acs-content-repository

  • last updated 9 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
improve spelling

  1. … 3 more files in changeset.
added constraint cr_items_parent_id_ck to avoid certain simple loops on parent_ids

An item must not be equal to its own parent. Note that this constraint is not

guaranteed to avoid all loops; it is still possible to create indirect recursive

loops but excludes some real-world problems.

    • -2
    • +10
    ./sql/postgresql/content-create.sql
file upgrade-5.10.0d12-5.10.0d13.sql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.10.0d12-5.10.0d13.sql
extend regression test

    • -7
    • +19
    ./tcl/test/content-item-test-procs.tcl
    • -7
    • +40
    ./tcl/test/content-revision-test-procs.tcl
extend regression test

    • -1
    • +6
    ./tcl/test/content-revision-test-procs.tcl
mark unused "content::item::get_context" deprecated, since it should be called on "acs_object"

extend regression test

    • -1
    • +9
    ./tcl/test/content-item-test-procs.tcl
remove leftover from ancient times (set it -deprecated and -private)

remove obsolete files

Piggyback some more api to existing tests

    • -0
    • +44
    ./tcl/test/content-search-procs.tcl
Whitespace cleanup

reduce public footprint

reduce public footprint

mark private functions as private

  1. … 9 more files in changeset.
Make api public, complies with acs-api-browser.graph__bad_calls automated test

  1. … 3 more files in changeset.
Refactor content repository backend

The refactored code is a first step to become able to provide plugins

for backends for storing content in different systems. Instead of

using switch statements to distinguish between backends "file", "lob"

and "text", procs with a suffix of the storage name are provided

now. Essentially, by providing process with additional suffixes can be

used to provide additional storage systems.

In addition, the deletion handling was also refactored such that the

non-scalable functions iterating over all items (such as

"cr_check_orphaned_files") will become obsolete. This is imporant for

content repositories with double and triple digit terabytes.

    • -15
    • +0
    ./tcl/acs-content-repository-init-oracle.xql
    • -13
    • +0
    ./tcl/acs-content-repository-init-postgresql.xql
    • -10
    • +0
    ./tcl/acs-content-repository-init.tcl
    • -5
    • +14
    ./tcl/acs-content-repository-procs-oracle.xql
    • -0
    • +8
    ./tcl/acs-content-repository-procs-postgresql.xql
    • -1
    • +21
    ./tcl/acs-content-repository-procs.tcl
    • -10
    • +21
    ./tcl/content-revision-procs-oracle.xql
    • -22
    • +4
    ./tcl/content-revision-procs-postgresql.xql
    • -45
    • +366
    ./tcl/content-revision-procs.tcl
fix deprecated function

improve listing of test coverage

    • -3
    • +3
    ./tcl/test/acs-content-repository-procs.tcl
    • -1
    • +3
    ./tcl/test/content-image-test-procs.tcl
    • -3
    • +5
    ./tcl/test/content-item-test-procs.tcl
  1. … 15 more files in changeset.
make listing of tested procs more complete

  1. … 17 more files in changeset.
make end of options explicit

  1. … 16 more files in changeset.
Prefer 'namespace which' over 'info commands', as it is faster (on local tests, around 2x) and returns a single value. Many thanks to Nathan Coulter.

  1. … 56 more files in changeset.
use bind variables instead of tcl variable substition in xql fullqueries

  1. … 15 more files in changeset.
Cleanup leftover query

Fix missing end

  1. … 2 more files in changeset.
Improve sql portability

    • -11
    • +11
    ./tcl/test/content-extlink-procs.tcl
  1. … 4 more files in changeset.
Reinstate lost queries for content::item::content_is_null

    • -0
    • +15
    ./tcl/content-item-procs-oracle.xql
    • -0
    • +15
    ./tcl/content-item-procs-postgresql.xql
file content-item-procs-oracle.xql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/content-item-procs-oracle.xql
file content-item-procs-postgresql.xql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/content-item-procs-postgresql.xql
Complete content::folder api coverage

    • -1
    • +52
    ./tcl/test/content-item-test-procs.tcl
Whitespace cleanup

    • -16
    • +14
    ./tcl/test/content-item-test-procs.tcl