acs-content-repository

  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix issue #3303: wrong identifier due to different database structure in oracle

- bump version number of OpenACS to 5.9.1b3 and DotLRN to 2.9.1b3

  1. … 79 more files in changeset.
Bump version numbers for OpenACS 5.9.1b1

  1. … 81 more files in changeset.
- Align type of parameter "storage_type" with type definition of cr_items.storage_type

- bump version to 5.9.1d27

file upgrade-5.9.1d26-5.9.1d27.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d26-5.9.1d27.sql
Improve documentation

file upgrade-5.9.1d25-5.9.1d26.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d25-5.9.1d26.sql
- fix bug when updateing a user portrait, which was saved as "lob"

- make upgrade script more robust (when run twice)

- fix cr_revision_latest_tr once more to reduce the number of dead tuples generated for xo* classes

- bump version number to 5.9.1d25

file upgrade-5.9.1d24-5.9.1d25.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d24-5.9.1d25.sql
Trust the users's mime_type when acceptable, or content names that are not filenames won't have a mime_type

- avoid call of deprecated sql variant with 12 args via API (many thnaks to Guenter Ernst)

- handling of NULL values in cr_revision_latest_tr (many thanks to Guenter Ernst)

- bump version to 5.9.1d24

    • -12
    • +13
    ./tcl/revision-procs-postgresql.xql
file upgrade-5.9.1d23-5.9.1d24.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d23-5.9.1d24.sql
Reduced generation of dead tuples in postgres.

Background: In the old version, the fields latest and live

revisions were updated always via two separate dmlDML statements.

Every update causes in PostgreSQL (tested to pg 9.6) one more dead

tuple, such that on busy systems, we see 30k + dead tuples per

hour. These dead tuples in turn cause more auto vacuum operations

and can lead to abandoned query plans.

This change can reduce the number of dead tuples on cr_items into

half, by allowing both fields to be set in one operation (namely

content_item__set_live_revision). This function has an optional 4th

argument that can cause this optimization. For legacy applications,

nothing changes.

Btw: since all commonly used applications use the live revision, the

fallback of the latest_revision is unused. One can consider to

remove the cr_revision_latest_tr, at least on on certain

installations.

bump revision to 5.1.9d23

    • -23
    • +31
    ./sql/postgresql/content-item.sql
    • -6
    • +13
    ./sql/postgresql/content-revision.sql
file upgrade-5.9.1d22-5.9.1d23.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d22-5.9.1d23.sql
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.

Applied the new proc to the different situations in the system when we require mime_type retrieval: content-repository, file-storage and xotcl CrItem

TODO: get the real mime_type from the file content, but this would require some modification in the data model.

  1. … 2 more files in changeset.
Avoid using deprecated content_item__new/17

Fixed if statement in oracle upgrade script

    • -1
    • +7
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
Simplified upgrade-5.9.1d20-5.9.1d21.sql postgres script

Added Oracle version of acs-cr upgrade-5.9.1d20-5.9.1d21.sql script and simplified postgres version.

    • -0
    • +65
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
file upgrade-5.9.1d20-5.9.1d21.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
Updated mimetypes

file upgrade-5.9.1d20-5.9.1d21.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
- modernize HTML

    • -2
    • +2
    ./www/doc/guide/object-relationships.adp
    • -3
    • +3
    ./www/doc/guide/object-relationships.html
  1. … 1 more file in changeset.
- use same logic in all update-scripts for cr_mime_types

    • -4
    • +28
    ./sql/oracle/upgrade/upgrade-5.9.1d11-5.9.1d12.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d12-5.9.1d13.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d13-5.9.1d14.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d15-5.9.1d16.sql
- update upgrade script to more powerful version used in later update scripts as well

- fix old typo in label of unknown mimtype (was "Unkown")

    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
file upgrade-5.9.1d19-5.9.1d20.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
- use consistently varchar(1000) for object_types

- bump version number to 5.9.1d19