Fix initiative creation missing form fields#10006
Fix initiative creation missing form fields#10006alecslupu merged 15 commits intodecidim:developfrom
Conversation
|
@andreslucena could you please have a look? Not sure how your processes work for First-Time-Contributors... |
Yes, sure, sorry for the delay. You've caught us with too much PRs on our plate, as we were in the middle of backporting old bugfixes. Now we have a bit more time, I'll give it an eye. Thanks for the PR! |
|
I could check this one out with @carolromero. Here's some feedback: First of all, thanks again for working on this one. It's something that I remember the last time I saw these initiatives form but didn't have time to tackle 😄 Just as a reference, this is how the forms are right now (current state of this PR): NewEditThere are still some minor inconsistencies, that we think we should handle:
As a final check-up, this is how both forms should be: New
Edit
The only specific fields are the ones that make sense for that form (you can't change Let me know if there's something missing, but I think these changes shouldn't take too much time (hopefully). |
|
Thanks for your feedback! Adding a Initiative type-Select in New Form is easily done, but then we would have to make the form more dynamic, e.g. clear/show fields depending on selected type (signature_end_date, areas_select, attachment) and reload options for other select fields (scope, signature_type). In Edit Form at least options for signature_type are updated on change of type (but only, if the field exists - if previous type had only one option it won't be displayed and updated). I would vote to leave this (fix dynamic form field display) for some time after the redesign though. |
Add form_field for initiative_type to create form Move form_field for state to the end on edit form add help text to author-select fix specs
You're absolutely right, we forgot about this little detail 😄
+1, let's leave it out for now as it's tricky |
|
@alecslupu I'd rather take care of that in a separate PR, can you assign #10063 to me? @andreslucena @carolromero I think the forms should now be as suggested in your review. Plz let me know, if there are further issues:
|
|
@heisam I cannot assign you. I cannot find you in the list. |
If the person isn't a member of the organization, you only can assign someone if that person has commented on that issue. I think it's a measure to stop spamming people or something like that. This is why we need to approve the GitHub Actions workflow on each new commit. As @heisam is already tackling multiple issues with great code and communication and we actually met in the last Decidim Fest, I already sent you the invite to the @decidim/developers team. Congratulations and welcome to the team 😄 |
|
Be careful when you tag But welcome anyway, @heisam! |
andreslucena
left a comment
There was a problem hiding this comment.
With the Product hat I like how its now, great job! 👌🏽
I just have a couple suggestions and we're good to go at least on my side.
decidim-initiatives/app/views/decidim/initiatives/create_initiative/fill_data.html.erb
Show resolved
Hide resolved
decidim-initiatives/app/controllers/decidim/initiatives/create_initiative_controller.rb
Show resolved
Hide resolved
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
…_initiative_controller.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
|
Thanks for your suggestions @andreslucena - it should now be all done |
|
@heisam it seems like there are some failing specs, can you check them out please? Thanks |
|
@andreslucena on my machine spec/system/admin/admin_manages_initiatives_spec.rb is all green. Could these be some flaky specs? Not sure what I can do to fix it. |
|
Hello, I noticed a little error when backporting this on one of our app : the hashtag field is not saved when creating an initiative. We also have a question : why does the state field is displayed whereas it appears to never be updatable ? |
|
Thank you @eliegaboriau! Yes, the "hashtag"-attribute was indeed missing in the creation-command. Regarding the state field I'm not sure... |
|
Sorry for the delay on reviewing this one, I'll assign this to @alecslupu as I don't have availability for moving this forward. |
Dismissing review as the requested changes were implemented


🎩 What? Why?
This PR fixes an issue that the form for initiative creation and update do not display the same fields.
hashtagto creation formsignature_type-dropdown when more than one option exists (same as creation-form)📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.