Conversation
5ab6922 to
c012e6d
Compare
…itiative-creation
|
@decidim/maintainers , how should i label this ? Shall we consider it a fix, or a change? |
…itiative-creation
…itiative-creation
2ffeb2c to
cdce5cc
Compare
…itiative-creation
…itiative-creation
157f090 to
a180a1b
Compare
a180a1b to
13531f5
Compare
|
@andreslucena, suggestions applied. Can you have a look? |
andreslucena
left a comment
There was a problem hiding this comment.
I've finished a first check of the code and I have some suggestions and doubts, can you check them out please?
decidim-initiatives/app/commands/decidim/initiatives/create_initiative.rb
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>
…idim into refactor/initiative-creation
…itiative-creation
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
…idim into refactor/initiative-creation
…itiative-creation
099f6c1 to
3a806a6
Compare
…itiative-creation
|
@andreslucena this can be reviewed. There are some comments left unresolved for you to see as there i had some different approach on various things |
After seeing that the change is quite big, and as this apart from fixing some bugs could introduce some new bugs, I'd prefer to leave this as a I guess that the real issue is that I'm not confident in the current test suite regarding all the combination of |
andreslucena
left a comment
There was a problem hiding this comment.
Just tried one more time locally and everything looks good 👏🏽 👏🏽
Thanks @alecslupu for handling this long-standing issue.
As it's a big change, lets wait for @ahukkanen review and approval before merging this
ahukkanen
left a comment
There was a problem hiding this comment.
I have gone through these changes and tested the changes from the user perspective. The bug that these refactoring efforts are fixing is gone and initiative creation now works fine even with longer descriptions. 👍
Glancing through the code, I don't have much comments, only one potential bug I noticed that reminded me about an older bug. I added a small comment regarding that.
Other than that this is all good for me.
I also must say that I am not an expert with initiatives, so I would definitely trust @andreslucena review much more than mine. For me this module has always been very hard to understand as we haven't had any actual use for it in our instances, so I haven't put much effort into understanding this module myself. I can still see that the code is quite complex and overwhelming, so there must be many more places for refactoring there but this is already a great start with a nice bugfix. Great work!
decidim-initiatives/app/commands/decidim/initiatives/create_initiative.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi>
ahukkanen
left a comment
There was a problem hiding this comment.
Everything is fine for me!
I'll let @andreslucena to make the final merge as he put most of the effort in reviewing this (and because the latest commit dismissed his previous review).
* Refactor intiative wizard * Fix the initiative creation * Fixing failing specs * Apply review recommendations * Update decidim-initiatives/app/models/decidim/initiative.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Apply review recommendations * Fix the user group creation * Small refactor on initiatives * Add spec for custom signature end date in update command * Update decidim-initiatives/app/controllers/decidim/initiatives/create_initiative_controller.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Update decidim-initiatives/lib/decidim/initiatives/engine.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Apply latest review recommendations * Add area spec * Apply suggestions from code review Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi> --------- Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi>
* Refactor intiative wizard * Fix the initiative creation * Fixing failing specs * Apply review recommendations * Update decidim-initiatives/app/models/decidim/initiative.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Apply review recommendations * Fix the user group creation * Small refactor on initiatives * Add spec for custom signature end date in update command * Update decidim-initiatives/app/controllers/decidim/initiatives/create_initiative_controller.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Update decidim-initiatives/lib/decidim/initiatives/engine.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Apply latest review recommendations * Add area spec * Apply suggestions from code review Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi> --------- Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi>





🎩 What? Why?
This PR improves the Create initiative wizard, by removing the session support in favor of the database support.
📌 Related Issues
Link your PR to an issue
Testing
📷 Screenshots
Please add screenshots of the changes you are proposing
