Add reminders for publishing reports to meeting authors#8757
Conversation
ee5b7b4 to
8dac392
Compare
a083ada to
1394504
Compare
decidim-core/lib/decidim/component_notification_setting_manifest.rb
Outdated
Show resolved
Hide resolved
alecslupu
left a comment
There was a problem hiding this comment.
Please change the Virtus.model to Decidim::AttributeObject::Model
|
First, the classic substitution of "events/meetings" 😉
Reading my comment again, I think I wasn't clear on what I had in mind, but just to be clear:
For what I've seen in the code, this is how it works (as it's enabled by default and only admins can disable it), but just to confirm that we're all in the same page. |
andreslucena
left a comment
There was a problem hiding this comment.
Some suggestions of things to change, can you give it an eye @roxanaopr 🙏🏽 ?
decidim-meetings/spec/services/decidim/meetings/close_meeting_reminder_generator_spec.rb
Outdated
Show resolved
Hide resolved
decidim-core/lib/decidim/component_notification_setting_manifest.rb
Outdated
Show resolved
Hide resolved
decidim-core/lib/decidim/component_notification_setting_manifest.rb
Outdated
Show resolved
Hide resolved
decidim-core/lib/decidim/component_notification_setting_manifest.rb
Outdated
Show resolved
Hide resolved
decidim-meetings/app/mailers/decidim/meetings/close_meeting_reminder_mailer.rb
Outdated
Show resolved
Hide resolved
Indeed, the option to disable/enable is only for moderators. By default, the option is enabled. |
e4a0545 to
a21c652
Compare
a21c652 to
b3ac6e4
Compare
|
@andreslucena this can be reviewed. |
decidim-core/db/migrate/20220127113419_add_component_notification_settings_to_users.rb
Outdated
Show resolved
Hide resolved
f3b4bb7 to
f6af6dd
Compare
|
@roxanaopr I don't know where's this comment, I found it in my email, but I don't see it in GitHub UI
I agree, just with having the field as a starting point is more than enough for now! |
@andreslucena I realized that this was the conclusion of the bellow discussion and I deleted the comment. Hopefully the PR it's ok now. |
|
@ahukkanen Can you please take a look after all the changes done? |
ahukkanen
left a comment
There was a problem hiding this comment.
I noticed one issue after the column name / notification settings registry method change.
Also, I added few refactoring ideas, as I think those empty classes are not necessary if you are not using them for anything.
decidim-core/app/views/decidim/notifications_settings/show.html.erb
Outdated
Show resolved
Hide resolved
decidim-meetings/app/commands/decidim/meetings/admin/create_close_meeting_reminders.rb
Outdated
Show resolved
Hide resolved
decidim-meetings/app/forms/decidim/meetings/admin/close_meeting_reminder_form.rb
Outdated
Show resolved
Hide resolved
feb6f7b to
6f3cbcd
Compare
6f3cbcd to
db97e3d
Compare
decidim-meetings/app/services/decidim/meetings/close_meeting_reminder_generator.rb
Show resolved
Hide resolved
* chore/meetings_optimization: Add touch:true to Follow association with followable Fragment cache meetings partial in meetings index Bump minimist and node-forge (decidim#9131) Bump puma from 5.6.2 to 5.6.4 (decidim#9132) Add base URI to meta image URLs (decidim#9125) Make Decidim fully configurable via ENV vars part II (decidim#8990) Allow assembly admins to manage components in child assemblies (decidim#8955) Export calendar improvements (decidim#9035) Add reminders for publishing reports to meeting authors (decidim#8757) VAPID key generator availabe in core (decidim#9107) Dont add external link container inside editor (decidim#9095)
🎩 What? Why?
As an admin/moderator I want to be able to set up a notification to be sent to meeting organizers if their meeting passed and they didn’t published an meeting report so that the quality of the meetings on the platform is improved.
It is necessary to have the meeting reports filled in, therefore, email reminders will be sent to meeting author, as an initial notification and a reminder notification.
As a meeting author, I want to receive a notification if my meeting passed and I didn't publish a report so that I can remember to close it and attach the meeting report. Also, I want to receive another reminder at a given time if I still didn't have the chance to close the passed meeting.
Reminders interval times: 3.days, 7.days
📌 Related Issues
Meta proposal: https://meta.decidim.org/processes/roadmap/f/122/proposals/16852
Initial PR: #8551
Testing
Describe the best way to test or validate your PR.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots