Skip to content

Fix publish event on official proposals#9421

Merged
ahukkanen merged 6 commits intodevelopfrom
fix/proposal-created-event-9279
Jul 13, 2022
Merged

Fix publish event on official proposals#9421
ahukkanen merged 6 commits intodevelopfrom
fix/proposal-created-event-9279

Conversation

@ferblape
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR fixes the publish event associated to a proposal when it's official and has been created by an admin.

📌 Related Issues

Testing

Steps to reproduce the behaviour:

  • As a user, follow a participatory space with a proposals component
  • As an admin, create a proposal via the admin backend
  • As the user, click on the yellow notification bell icon
  • You shouldn't see the error

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

@furilo furilo added the project: PWA Barcelona City Council contract label Jun 13, 2022
@ahukkanen ahukkanen added module: proposals type: fix PRs that implement a fix for a bug labels Jun 17, 2022
@ferblape ferblape force-pushed the fix/proposal-created-event-9279 branch from e32ecc2 to 5a94fc3 Compare July 5, 2022 10:12
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.

Thanks for the refactoring @ferblape !

When testing this through, I still noticed one more issue regarding the translation. Could you check that issue please?

@ferblape ferblape force-pushed the fix/proposal-created-event-9279 branch from 3c04ed5 to 9891fab Compare July 12, 2022 01:58
@ferblape ferblape requested a review from ahukkanen July 12, 2022 02:59
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.

Thanks @ferblape !

One more thing I noticed is that the other message is not actually used anywhere except the added test. Could you please check the comments below?

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.

👍

@ahukkanen ahukkanen merged commit 3988fd7 into develop Jul 13, 2022
@ahukkanen ahukkanen deleted the fix/proposal-created-event-9279 branch July 13, 2022 18:23
entantoencuanto added a commit that referenced this pull request Jul 15, 2022
…ging

* feature/redesign-main-footer:
  Reorder elements in main links of footer and define links and texts
  Define a cell for static_pages and topics configured to appear in footer
  Fix translation call
  Set fixed links in redesigned_main_legal partial
  Add FooterMenuPresenter to display menu items in footer
  Fix budgets seeds on non development apps (#9585)
  Return 404 when there isn't a valid component in program (#9576)
  Add missing queue close_meeting_reminder to sidekiq configuration (#9568)
  Make the HERE Map display in the currently selected language (#9552)
  Add help text for proposals' 'publish answers immediately' setting  (#9549)
  Fix admin language selector with more than 4 locales (#9519)
  Fix publish event on official proposals (#9421)
  Prevent missing ActionLog entries to break the application (#9502)
  Add boilerplate structure to CHANGELOG (#9501)
  Add step-by-step instructions of the Crowdin releases process (#9555)
  Fix translated attributes field type change (#9547)
  Add `modifyList` option to the autocomplete element (#9548)
  Admin log filters (#9460)
  Improve the default gitignore files created by the generators (#9507)
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
* Fix publish event on official proposals

* Ruby offsense

* Use official check method

* Add missing translation and rewording

* Remove period

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

Labels

module: proposals project: PWA Barcelona City Council contract type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications crash on official proposal created event

3 participants