Skip to content

Fix redundant notification on comments with linked proposals#9676

Merged
ahukkanen merged 3 commits intodecidim:developfrom
mainio:fix/9027
Aug 11, 2022
Merged

Fix redundant notification on comments with linked proposals#9676
ahukkanen merged 3 commits intodecidim:developfrom
mainio:fix/9027

Conversation

@sinaeftekhar
Copy link
Copy Markdown
Contributor

@sinaeftekhar sinaeftekhar commented Aug 10, 2022

🎩 What? Why?

When a link to a proposal in attached to a comment, a notification will be sent to the author of that proposal. However, this is redundant, if the author of the proposal is the same as the comment author.

📌 Related Issues

Testing

No prerequisite is needed to run the test. Just run the test as you would do normally.

♥️ Thank you!

@sinaeftekhar sinaeftekhar marked this pull request as draft August 10, 2022 14:20
@sinaeftekhar sinaeftekhar marked this pull request as ready for review August 10, 2022 15:03
@sinaeftekhar sinaeftekhar marked this pull request as draft August 10, 2022 15:03
@sinaeftekhar sinaeftekhar changed the title Fix redundant notification on comments with linked proposals Fix redundant notifications on comments with linked proposals Aug 10, 2022
@sinaeftekhar sinaeftekhar changed the title Fix redundant notifications on comments with linked proposals Fix redundant notification on comments with linked proposals Aug 10, 2022
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

LGTM!

Could you please fix the pull request description based on the template that it gives you when creating the PR please?

It is important to tag the issue(s) correctly that this PR fixes so that those issues will be automatically closed when we merged this.

I.e. in the related issues section, please write the following:

- Fixes #9027

@sinaeftekhar sinaeftekhar marked this pull request as ready for review August 11, 2022 09:50
@ahukkanen ahukkanen merged commit f512ce6 into decidim:develop Aug 11, 2022
@ahukkanen ahukkanen deleted the fix/9027 branch August 11, 2022 11:05
@ahukkanen ahukkanen added type: fix PRs that implement a fix for a bug module: proposals labels Aug 11, 2022
entantoencuanto added a commit that referenced this pull request Aug 25, 2022
* develop:
  Redesign: pages (#9457)
  Add "no-reply" notification at the email footers (#9668)
  merge layout center into one-col, allowing 3 variations (#9755)
  Fix form error overlap with character counter in the admin panel (#9683)
  Change the custom public port ENV variable name to HTTP_PORT (#9598)
  Redesign: login & signup (#9455)
  Fix redundant notification on comments with linked proposals (#9676)
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
…#9676)

* Fix redundant email notification bug

* Add unit test

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

Labels

module: proposals type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications are sent if user posts a comment referring their own proposal/idea/etc.

2 participants