Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix comment notifications on legislation proposals #4750

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

javierm
Copy link
Member

@javierm javierm commented Nov 29, 2021

Objectives

  • Fix a bug which caused emails not to be sent when commenting on legislation proposals.

The `commentable_url` method wasn't updated when we added legislation
proposals.

Back when we first created this method, we couldn't pass budget
investments or topics directly to `polymorphic_url` because they are
nested resources. That isn't the case since commit ff93f5a, so now we
can simplify this method.

We're keeping the `commentable_url` method for now in order to keep
compatibility with custom changes that might use it, although this
method isn't consistent with the `commentable_path` method (which
receives a comment, and not a commentable), and so we might have to
revisit this code in the future.
@javierm javierm added this to Reviewing in Consul Democracy via automation Nov 29, 2021
@javierm javierm self-assigned this Nov 29, 2021
@taitus taitus self-assigned this Dec 13, 2021
Consul Democracy automation moved this from Reviewing to Testing Dec 13, 2021
@javierm javierm merged commit 3b12ff0 into master Dec 13, 2021
Consul Democracy automation moved this from Testing to Release 1.5.0 Dec 13, 2021
@javierm javierm deleted the legislation_comment_email branch December 13, 2021 12:29
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.

None yet

2 participants