Skip to content

Add migration to update Proposal endorsement Notifications#6367

Merged
tramuntanal merged 1 commit intodevelopfrom
fix/existing_proposal_endorsed_event_notifications
Jul 30, 2020
Merged

Add migration to update Proposal endorsement Notifications#6367
tramuntanal merged 1 commit intodevelopfrom
fix/existing_proposal_endorsed_event_notifications

Conversation

@tramuntanal
Copy link
Copy Markdown
Contributor

🎩 What? Why?

Due to #5542 notifications related with proposal endorsements are generated by a different event than it were before.
Now endorsements are generalized, to be applied to different resources, and so are the corresponding events and notifications. This meant removing the old decidim.events.proposals.proposal_endorsed event and introducing a new decidim.events.resource_endorsed event. This changes implied also removing the translations for the old event, letting already created notifications with translation missing when being rendered.

This PR solves this situation by updating all Decidim::Notification corresponding to Proposal endorsement to the new event_name and event_class.

📌 Related Issues

@tramuntanal tramuntanal force-pushed the fix/existing_proposal_endorsed_event_notifications branch from 288a6da to 40178ba Compare July 30, 2020 11:48
@Leusev Leusev self-requested a review July 30, 2020 14:11
@ivan-mr ivan-mr self-requested a review July 30, 2020 14:12
Copy link
Copy Markdown
Contributor

@Leusev Leusev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me @tramuntanal 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants