Send notification when signature threshold reached#6098
Send notification when signature threshold reached#6098Leusev merged 12 commits intodecidim:developfrom armandfardeau:feature/notify-admin-support-result
Conversation
|
@armandfardeau looks like we didn't understand each other on this one. It does for authors, followers, promotting committee members though. So maybe we can slightly revamp this to exclude admin and include authors, followers, promotting committee members. What I wanted to do with this PR is to send a notification to the admin when the initiative reaches the 100% milestone. (see this PR for ref) |
CHANGELOG.md
Outdated
|
|
||
| ### Added | ||
|
|
||
| - **decidim-initiatives**: Notify admin when an initiative is accepted. [\#6098](https://github.com/decidim/decidim/pull/6098) |
There was a problem hiding this comment.
Notify authors, promoting committee members, followers of the initiative and admins to receive a notification when an initiative reaches the 100% of the support threshold.
|
@carolromero is this one okay with you ? I see that @andreslucena had a look. |
Hey all, I've actually didn't look at this, it's just that I hate long titles on PR/commits. I've updated the docs with this a few weeks ago, please take a look at https://github.com/decidim/decidim/blob/develop/docs/development_guide.md#git-commit-messages-and-pull-request-titles The title "Notify authors, promoting committee members, followers of the initiative and admins to receive a notification when an initiative reaches the 100% of the support threshold" is 171 characters (Still the title is shorter than the title of Garcia Marquez book "Relatos de un naufrago" / "The Story of a Shipwrecked Sailor" which full title is "The Story of a Shipwrecked Sailor: Who Drifted on a Liferaft for Ten Days Without Food or Water, Was Proclaimed a National Hero, Kissed by Beauty Queens, Made Rich Through Publicity, and Then Spurned by the Government and Forgotten for All Time.", 246 chars!!) |
I was not aware of these new guidelines, thank you for the clarification. I've updated this P.R., let me know if anything is still out of order. |
|
@carolromero thanks for accepting the proposal on meta decidim. Does this mean that @Leusev can merge the PR ? |
|
@virgile-dev yep, it's ok on my side |
|
@Leusev GH actions had a malfunction, can you restart them on your side? Everything should be green by now |
|
Hi @armandfardeau |
I should have done my chores a long time ago ;) |
|
@Leusev could you check if we can merge this now ? Thanks ! |
Leusev
left a comment
There was a problem hiding this comment.
All ok now @armandfardeau 👍
* feature/add_areas_to_initiatives: (30 commits) Adds areas to FO filters Fix lint issue Fixes rubocop issues Updates changelog Adds areas to initiatives Send notification when signature threshold reached (decidim#6098) Adds filter by initiative type to admin panel (decidim#6093) Require confirmation on exiting a survey mid-answering (decidim#6118) Information message when there isn't any Proposal (decidim#6063) Set email asset host dynamically (decidim#5888) Harmonizes the design of initiatives search in FO (decidim#6090) Include year in meetings card (decidim#6102) Add attachment enabled option to initiative types and initiatives (decidim#6036) Fix a flaky test in group profile conversations (decidim#6123) Add attachments to Initiatives (decidim#5844) Add initiatives export (decidim#6070) Improvements to conversations with more than one participant (decidim#6094) Elections module and election administration (decidim#6065) Separate forms in steps (decidim#6108) Add sorting by publishing date to initiatives (decidim#6016) ... # Conflicts: # decidim-initiatives/app/cells/decidim/initiatives/initiative_m_cell.rb # decidim-initiatives/app/commands/decidim/initiatives/admin/update_initiative.rb # decidim-initiatives/app/controllers/decidim/initiatives/initiatives_controller.rb # decidim-initiatives/app/forms/decidim/initiatives/admin/initiative_form.rb # decidim-initiatives/app/helpers/decidim/initiatives/application_helper.rb # decidim-initiatives/app/models/decidim/initiative.rb # decidim-initiatives/app/services/decidim/initiatives/initiative_search.rb # decidim-initiatives/app/views/decidim/initiatives/create_initiative/fill_data.html.erb # decidim-initiatives/app/views/decidim/initiatives/initiatives/_filters.html.erb # decidim-initiatives/app/views/decidim/initiatives/initiatives/_tags.html.erb # decidim-initiatives/config/locales/en.yml # decidim-initiatives/db/migrate/20200514085422_add_area_to_initiatives.rb # decidim-initiatives/db/migrate/20200514102631_add_area_enabled_option_to_initiatives.rb # decidim-initiatives/spec/forms/initiative_form_spec.rb # decidim-initiatives/spec/services/decidim/initiatives/initiative_search_spec.rb # decidim-initiatives/spec/shared/update_initiative_type_example.rb # decidim-initiatives/spec/system/admin/admin_manages_initiatives_spec.rb # decidim-initiatives/spec/system/admin/initiative_types_controller_spec.rb # decidim-initiatives/spec/system/filter_initiatives_spec.rb
* develop: Send notification when signature threshold reached (decidim#6098) Adds filter by initiative type to admin panel (decidim#6093) Require confirmation on exiting a survey mid-answering (decidim#6118) Information message when there isn't any Proposal (decidim#6063) Set email asset host dynamically (decidim#5888) Harmonizes the design of initiatives search in FO (decidim#6090)
* Notify admin when initiative is accepted * Don't send notificaiton to admin if initiative is rejected * Revert c3212c0 * Notify admin if the percentage is 100% * Normalize en locale * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Ramon Costa <ramon.costa@gmail.com>
* Notify admin when initiative is accepted * Don't send notificaiton to admin if initiative is rejected * Revert c3212c0 * Notify admin if the percentage is 100% * Normalize en locale * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Ramon Costa <ramon.costa@gmail.com>
🎩 What? Why?
This PR will add a notification that will be sent authors, promoting committee members, followers of the initiative and admins to receive a notification when an initiative reaches the support threshold.
linked to : https://meta.decidim.org/processes/roadmap/f/122/proposals/15280
📋 Subtasks
CHANGELOGentry