• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Reduce divergency between oracle and postgres codebase

    • -27
    • +0
    ./packages/news/www/admin/process-2-oracle.xql
    • -90
    • +2
    ./packages/news/www/admin/process-2.tcl
    • -0
    • +17
    ./packages/news/www/admin/process-2.xql
Reduce divergency between oracle and postgres codebase

    • -1
    • +6
    ./packages/news/www/admin/revision-add.tcl
    • -0
    • +21
    ./packages/news/www/admin/revision-add.xql
Use tcl to do date calculations instead of db, reduce postgres/oracle divergencies

    • -7
    • +0
    ./packages/news/www/admin/approve-oracle.xql
Reduce divergence between oracle and postgres codebase, optimize queries

    • -48
    • +0
    ./packages/news/www/index-oracle.xql
    • -48
    • +0
    ./packages/news/www/index-postgresql.xql
Do date calculations in tcl rather than in db, reduce oracle and postgres divergency

    • -14
    • +0
    ./packages/news/www/item-create-oracle.xql
    • -14
    • +0
    ./packages/news/www/item-create-postgresql.xql
Reduce divergence between oracle and postgres code

    • -7
    • +2
    ./packages/news/lib/latest-news-oracle.xql
    • -4
    • +1
    ./packages/news/lib/latest-news-postgresql.xql
    • -0
    • +10
    ./packages/news/lib/latest-news.xql
Reduce oracle/postgres divergence

Uniform sql codebase

    • -0
    • +14
    ./packages/notifications/tcl/sweep-procs.xql
Use cached api instead of query to retrieve node id from community and community_type

    • -3
    • +7
    ./packages/dotlrn/tcl/community-procs.tcl
    • -20
    • +0
    ./packages/dotlrn/tcl/community-procs.xql
Remove unused query from xql (no usage was found upstream and on Learn@WU)

    • -8
    • +0
    ./packages/dotlrn/tcl/community-procs.xql
Get rid of dual idiom

    • -9
    • +3
    ./packages/dotlrn/tcl/community-procs.xql
Oracle doesn't support limit :-|

    • -4
    • +4
    ./packages/dotlrn/tcl/community-procs.xql
Streamline and optimize idiom

    • -7
    • +2
    ./packages/dotlrn/tcl/community-procs.tcl
    • -13
    • +5
    ./packages/dotlrn/tcl/community-procs.xql
Declare explicitly the only column we need in a way that DBMS can create a better query plan

    • -2
    • +2
    ./packages/dotlrn/tcl/community-procs.tcl
    • -4
    • +3
    ./packages/dotlrn/tcl/community-procs.xql
Tolerate the same request variable specified multiple times

We use export_vars as arbiter to decide how this will be treated.

Also remove some postgres/oracle divergence

    • -0
    • +1
    ./packages/calendar/www/view-list-display.adp
    • -21
    • +16
    ./packages/calendar/www/view-list-display.tcl
Replace db date conversion with tcl one, remove unneded statements (sort_by is already defined in page contract, ad_return_template is implicit)

Fix typo

    • -3
    • +3
    ./packages/forums/www/moderate/move.tcl
    • -1
    • +1
    ./packages/forums/www/moderate/move.xql
Port downstream only usage of reading info api

Also fix such api so that root message is retrieved for every given source message

    • -0
    • +163
    ./packages/forums/sql/oracle/upgrade/upgrade-1.3.1d3-1.3.1d4.sql
    • -0
    • +5
    ./packages/forums/www/moderate/move-thread.tcl
Converge downstream reading_info feature with upstream

Port downstream only idiom to update reading_info table

Make more use of api when retrieving forum and message information

Optimize message existance query

    • -10
    • +25
    ./packages/forums/www/moderate/move.tcl
    • -20
    • +14
    ./packages/forums/www/moderate/move.xql
Fix sql update to populate new forum_id column in existing data

Maintenance of forum reading count feature

- removal of forums_reading_info_user (1Mio rows on Learn@WU).

This materialized view had to be constantly synced with

forums_reading_info table. Reimplemented as view.

- simplify logics in stored procedure due to new datamodel

- fix inconsistencies between oracle and postgres function definition

- re-enabled parameter to decide whether use these stats or not in

administration

TODO: consider further reform of this feature as stats grow very

large on busy sites for probably little value added

    • -0
    • +186
    ./packages/forums/sql/oracle/upgrade/upgrade-1.3.1d2-1.3.1d3.sql
    • -5
    • +2
    ./packages/forums/tcl/forums-procs.tcl
Remove deprecated idioms and unneded queries

    • -8
    • +0
    ./packages/forums/lib/message/post-oracle.xql
    • -14
    • +13
    ./packages/forums/lib/message/post.tcl
    • -13
    • +0
    ./packages/forums/lib/message/post.xql
Persist sanitized timestamp into data object before saving (Many thanks to Markus Moser)

    • -3
    • +3
    ./packages/xowiki/tcl/xowiki-form-procs.tcl
Implement post anonymously through explicit forum attribute in table

Now moderators can explicitly decide whether a forum will enable posting anonymously or not.

Forum must be in a policy different from closed and the anonymous flag must be set accordingly for this to happen.

Also:

- normalize api in a way it can accomodate all current attributes. In particular,

now edit api will now leave every unspecified attribute unchanged, instead of

setting it to some default.

- fix some usability issues when managing forum parameters (e.g. values not

retrieved in form when editing existing forum)

- introduce missing Oracle upgrade script for the whole forum reform

- fix oracle creation script

    • -22
    • +32
    ./packages/forums/lib/forums/edit.tcl
    • -18
    • +18
    ./packages/forums/lib/forums/new.tcl
    • -7
    • +27
    ./packages/forums/tcl/forums-procs.tcl
    • -8
    • +12
    ./packages/forums/tcl/forums-procs.xql
Update docs: remove broken links and remove/update obsolete section

    • -2
    • +1
    ./packages/acs-core-docs/www/acs-admin.adp
    • -1
    • +24
    ./packages/acs-core-docs/www/acs-admin.html
    • -1
    • +6
    ./packages/acs-core-docs/www/acs-plat-dev.html
    • -4
    • +4
    ./packages/acs-core-docs/www/analog-setup.adp
    • -9
    • +30
    ./packages/acs-core-docs/www/analog-setup.html
    • -30
    • +27
    ./packages/acs-core-docs/www/aolserver.adp
    • -48
    • +156
    ./packages/acs-core-docs/www/aolserver.html
    • -46
    • +37
    ./packages/acs-core-docs/www/aolserver4.adp
    • -37
    • +141
    ./packages/acs-core-docs/www/aolserver4.html
    • -4
    • +1
    ./packages/acs-core-docs/www/apm-design.adp
    • -87
    • +428
    ./packages/acs-core-docs/www/apm-design.html
  1. … 285 more files in changeset.
further cleanup for XOTcl2

    • -99
    • +101
    ./packages/xowiki/tcl/xowiki-www-procs.tcl
Simplify idiom

    • -8
    • +4
    ./packages/acs-subsite/tcl/package-procs.tcl
Since PostgreSQL 10 does not support the tsearch2 backword compatibility package anymore, make sure that OpenACS does not use the old names requiring this package.

Revert db_exec_plsql or Oracle will break, remove leftover xql files

restrict detail statistics to swa