Review main Merged

65220[TASK] Broadcast AjaxDataHandler events

Andreas Kienast CR +2 V +2 Easy +29 −17 updated 08/08/20, 14:35

Commit message

Events sent via AjaxDataHandler are now broadcasted by using the
Broadcast Service. This change allows e.g. the topbar to listen to these
events and trigger a reload.

Broadcasting has the nice side effect that the event is sent to all
browser windows which allows multiple simultaneously opened backends
(that share the same domain) to react on that event.

To ease the integration of event listeners, the event payload sent via
classic `dispatchEvent()` is adjusted to share the same structure with
broadcasted messages.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 8