• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Introduce a new delivery method for notifications based on Server Sent events

By subscribing to /notifications/sse/subscribe one will receive notifications as JSON messages. This can be used e.g. to update a UI in real time based on events on the system.

  1. … 3 more files in changeset.
merge with missing files

  1. … 1460 more files in changeset.
merge from oacs-5-10

  1. … 8085 more files in changeset.
put the notification creation in a db_transaction to ensure same subscription is created only once (e.g. double-clicks)

Harden page contract

Harden page contract

Fix incorrect HTTP status code on result page

The command "ad_return_error" returns HTTP status code 500 (internal server error).

In this script, this status code was returned in cases, where no notifications

were found for an object. "ad_return_exception_page" is better suited for such

cases.

Whitespace changes

Fix proc signature

  1. … 7 more files in changeset.
Replace leftover occurrences

  1. … 1 more file in changeset.
Deprecate notification::get_delivery_method_id, same as notification::delivery::get_id and looking more established

  1. … 7 more files in changeset.
Deprecate notification::get_interval_id, duplicated by notification::interval::get_id_from_name which appears to be more established

  1. … 5 more files in changeset.
improve input validation

Reduce divergency between oracle and postgres codebase

Cleanup leftover file

Remove attack surface

Check permissions when one accesses the script and also when one performs the actual unsubscribing operation

Harden safety: require login, do not let people outside the requester fiddle with the frequency

make clear from the user-interface that admin is managing the notifications of someone else

Use already existing message-key.

Reduce divergency between oracle and postgres

  1. … 3 more files in changeset.
improve spelling

  1. … 10 more files in changeset.
Add ad_page_contract to pages (fixes automated tests)

whitespace changes

Whitespace changes

  1. … 1 more file in changeset.
Localize notification subscribers and bump version number

  1. … 4 more files in changeset.
allow passing of pretty_names that contain content including less and greater sign

  1. … 2 more files in changeset.
Undeprecate and reimplement: require_admin_request, can_admin_request_p, require_notify_object and can_notify_object_p. Fixes in two templates (request-delete, request-change-frequency). (Many thanks to Felix Mödritscher for the patch!)

  1. … 2 more files in changeset.
Port a few downstream modifications to the main codebase

When changing notification frequency, show also name and creation date for the object

Driver is making easier to merge this script

Trim whitespace