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

Add and use decidim-bulletin_board gem #6997

Merged
merged 19 commits into from
Dec 15, 2020

Conversation

slickepinne
Copy link
Contributor

🎩 What? Why?

This PR refactors the election module. Since we have a decidim-bulletin_board gem now, we removed the bb client logic from decidim.

Testing

The decidim-bulletin_board is a dependency for the elections module. If you setup an election for example, this new gem gets used. There's also a system and unit test.

📋 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!

beagleknight
beagleknight previously approved these changes Dec 9, 2020
Copy link
Contributor

@beagleknight beagleknight left a comment

Choose a reason for hiding this comment

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

This is so clean ✨

agustibr
agustibr previously approved these changes Dec 9, 2020
Copy link
Contributor

@agustibr agustibr left a comment

Choose a reason for hiding this comment

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

Well done 😃

leio10
leio10 previously approved these changes Dec 9, 2020
Copy link
Contributor

@leio10 leio10 left a comment

Choose a reason for hiding this comment

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

This is soo good! 👏 🔝

@@ -66,6 +66,7 @@ def election_data
{
iat: Time.now.to_i,
election_id: election_id,
message_id: "#{election_id}.create_election+a.#{bulletin_board.authority_slug}",
type: "create_election",
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove the election_id and create_election, as they are included in the message_id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I have that in mind. I wanted to do that with the refactoring of moving the whole election_data to the gem.

agustibr
agustibr previously approved these changes Dec 9, 2020
@slickepinne
Copy link
Contributor Author

@decidim/core Could you review this PR, please? 🙏

beagleknight
beagleknight previously approved these changes Dec 10, 2020
@leio10 leio10 added the contract: e-voting Barcelona City Council contract label Dec 14, 2020
@leio10 leio10 dismissed stale reviews from beagleknight and agustibr via d4d51ab December 14, 2020 11:55
@leio10 leio10 force-pushed the refactor/move-bulletin-board-client-to-bb-gem branch from ccf8a77 to d4d51ab Compare December 14, 2020 11:55
Copy link
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

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

LGTM!

@tramuntanal tramuntanal merged commit dd287eb into develop Dec 15, 2020
@tramuntanal tramuntanal deleted the refactor/move-bulletin-board-client-to-bb-gem branch December 15, 2020 07:14
@mrcasals mrcasals added module: elections type: feature PRs or issues that implement a new feature labels Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract: e-voting Barcelona City Council contract criticality: high in-review module: elections type: feature PRs or issues that implement a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants