con2 / kompassi

Kompassi Event Management System
https://kompassi.eu
Other
26 stars 27 forks source link

As survey owner I want to receive email notifications of new responses #483

Closed japsu closed 4 months ago

japsu commented 4 months ago

Implementation options:

  1. There is the event_log application with the Subscription model.
    • Define Entry type forms.response.created and emit it in createSurveyResponse
    • Add survey_filter to Subscription and survey to Entry
    • However: The whole event log application could use some rethinking. It follows the sparse table model that has been found problematic in Programme V1.
  2. In forms, add a separate Subscription model with foreign keys to Survey and User.

NOTE: CBAC check needs to be done when notifying subscribers. If subscriptions are left around but the user no longer has access, notifications must not be sent. This may be easier with approach 2.

UI for either: