Conversation
f8fb17f to
95e6609
Compare
95e6609 to
753dde5
Compare
899e1e1 to
7577624
Compare
f7c67d2 to
ff401bc
Compare
ff401bc to
c9cc86e
Compare
48d34db to
0cdb022
Compare
|
@orlera 👀 🤖 rubocop is offended because of 2 Missing frozen string literal comments 😁 |
e7e9282 to
78f7058
Compare
decidim-elections/spec/forms/decidim/votings/admin/voting_form_spec.rb
Outdated
Show resolved
Hide resolved
78f7058 to
33425b8
Compare
|
|
||
| def online_voting? | ||
| voting_type == "online" | ||
| end |
There was a problem hiding this comment.
Should we add an in_person_voting? method?
There was a problem hiding this comment.
Hey @leio10!
I guess you were reviewing by commit and didn't notice that that method has been added in a later commit? :)
BTW, I gave a quick shot at enum as you recommended and it was 🤩 until I tried to use it in a select - there for some reason it wasn't able to show the selected option (although it showed the list of options and store the correct one in db when the user selects one).
Might try to give it another spin tomorrow morning 👍
There was a problem hiding this comment.
Found some inspiration reviewing @slickepinne's PR to make the enum work in a select 🎉
|
@decidim/mantainers approved by product and ready for review 🎉 |
beagleknight
left a comment
There was a problem hiding this comment.
Great job! ✨ Just added a few suggestions 👍
decidim-elections/app/constraints/decidim/votings/current_voting.rb
Outdated
Show resolved
Hide resolved
decidim-elections/app/forms/decidim/votings/admin/voting_form.rb
Outdated
Show resolved
Hide resolved
| include Decidim::HasAttachments | ||
| include Decidim::HasAttachmentCollections | ||
|
|
||
| enum voting_type: [:in_person, :online, :hybrid].map { |type| [type, type.to_s] }.to_h, _suffix: :voting |
|
@orlera there are some conflicts! Ping me when they're solved so I can review it again! :) |
…o election component
d470414 to
7c6b66c
Compare
|
@mrcasals thanks for the heads-up! Rebased with |
mrcasals
left a comment
There was a problem hiding this comment.
Looks good to me, nice job!
🎩 What? Why?
Adds a
voting_typefield toVotingand the related business logic:Notice that Polling Stations and Polling Station Officers are to be implemented in upcoming tickets (#7105 #7106), so the AC concerning them could not be fulfilled yet (or is inherently fulfilled, depending on the point of view 😉).
📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots