• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Avoid logging every message sent to reduce IO

Removed unnecessary decoding of received messages, fixed encoding of sent messages so special characters are properly urlencoded.

    • -4
    • +5
    /openacs-4/packages/chat/www/ajax/chat.js
- use :form_field_index for adding names recursively to the index

- provide more detailed debugging info

    • -2
    • +1
    /openacs-4/packages/xowiki/tcl/repeat-procs.tcl
    • -2
    • +10
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
Handle in a human way when lookup of a key fails (but keep reporting in the logs)

- remove commented out "if disabled" code; otherwise, the controls are also shown when viewing the items

    • -24
    • +24
    /openacs-4/packages/xowiki/tcl/repeat-procs.tcl
Fix typo

    • -2
    • +2
    /openacs-4/packages/chat/tcl/chat-procs.tcl
- add repeat container to debugging output

    • -1
    • +5
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- add debugging aids in case creation of nested formfields fails

    • -4
    • +6
    /openacs-4/packages/xowiki/tcl/repeat-procs.tcl
    • -2
    • +13
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- detect when repeat fields are used in input mode: as long we have no js-support, max repeat count form fields have to be created in advance

- avoid duplicate generations for form fields in some cases

    • -3
    • +14
    /openacs-4/packages/xowiki/tcl/repeat-procs.tcl
    • -1
    • +5
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
- move CSP generation to rendering section

- allow the repeat fields to be sent in arbitrary order from the browser

    • -6
    • +19
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
Added catalog file of new message keys

Allow user to specify how far in the past people connecting to the chat will see.

This is important on Learn@WU because people joining the chat room later want to

see the full conversation and before this was not settable from the UI. (Now defaults

to 4 hours) Useful also when somebody accidentally refreshes the chat after the

timewindow has passed.

Took this chance to ease a bit every future development: removed stored procedures

slowing greatly any change on the data model in favor of plain sql statements.

Incremented usage of cache.

Removed duplicated database operation when managing transcripts.

Fixed transcript name not being shown when deleting.

    • -27
    • +51
    /openacs-4/packages/chat/tcl/chat-procs.tcl
    • -12
    • +69
    /openacs-4/packages/chat/tcl/chat-procs.xql
    • -50
    • +60
    /openacs-4/packages/chat/www/room-edit.tcl
    • -13
    • +12
    /openacs-4/packages/chat/www/room.tcl
file upgrade-5.0d12-5.0d13.sql was initially added on branch oacs-5-9.

- extend dynamic repeat field creating for nested cases

    • -12
    • +33
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
Commit some leftover change, apply some review suggestions

- add functionality to dynamically add components for repeated form fields (no preallocation needed).

This is per default deactivated, .js support for "adding more" is missing.

    • -8
    • +48
    /openacs-4/packages/xowiki/tcl/repeat-procs.tcl
    • -1
    • +19
    /openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
Added info file incrementing the version

Refined error reporting: by returning a page containing the prefix

"chat-errmsg: "

one can decide what to show in case of error, otherwise we stick to the old behaviour (predefined message).

    • -2
    • +7
    /openacs-4/packages/chat/www/ajax/chat.js
Chats won't throw an error anymore when people keep looking to a room that has been closed.

Instead, user will be informed that the room is unavailable.

Added missing locale key source of errors in the log.

Fixed wrong stored procedure, stating different arguments than in actual usage.

Cleaned up weird idioms in xql files and chat api, moved many db operations into tcl api.

Exploited cache (ns_cache) to retrieve quickly chat room information.

Improved code quality a bit.

Ported upstream some local modification, like prettifying of flags in chat room management

and fix of double quoting in chat's javascript.

    • -20
    • +58
    /openacs-4/packages/chat/tcl/chat-ajax-procs.tcl
    • -134
    • +172
    /openacs-4/packages/chat/tcl/chat-procs.tcl
    • -19
    • +5
    /openacs-4/packages/chat/www/chat.tcl
    • -2
    • +15
    /openacs-4/packages/chat/www/room.tcl
    • -5
    • +6
    /openacs-4/packages/chat/www/ajax/chat.js
    • -20
    • +14
    /openacs-4/packages/chat/www/ajax/chat.tcl
file upgrade-5.0d11-5.0d12.sql was initially added on branch oacs-5-9.

- move global declaration up the file

- add csrf token to exported list on "show deprecated" link

- use variable names consistently

- fix handling of csrf token

Fix typo

Increase timeout to 5 minutes for util::http and pure ns_http implementations (required on slow connections)

- add ability to distinguish by HTTP-method in add_url_stat (can be used for dynamic connection pool management)

- use more XOTcl 2.* features: use variable resolver on many places (potentially 4 times or more faster)

- fix dead link

- fix links and unify names

  1. … 318 more files in changeset.