-
-
Notifications
You must be signed in to change notification settings - Fork 457
Proposal Wizard creation/update fixes #3744
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
Conversation
0b50fec to
1424173
Compare
d1fedf0 to
383f412
Compare
oriolgual
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
|
@oriolgual thanks 😄 , I'll add some tests and fix the failing test so it can be merged |
98551a8 to
0e57541
Compare
|
Yeah, super nice work! Proposals is such a core feature of decidim and it had become quite buggy 💪 |
0853ca1 to
5b73295
Compare
6fb00ea to
06c3985
Compare
|
@decidim/product I hope it's not a problem that I've got to add the create proposal as to the first step of the wizard, as this PR adds validations to this step, such as: body_length, proposal_limit. |
* fix `CookieOverflow` in wizard steps * proposal_length validation on create_step * show has_address checked and address on invalid * ability to update proposal attachment
|
@agustibr this needs feedback from @decidim/product, right? |
|
@mrcasals or @decidim/lot-core, all checks passed! can you review it |
mrcasals
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
|
Yay! thanks! |
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
* Minor improvement, all existing hashtags have its name downcased * Allow to mark hashtags as "extra" hashtags * Improved hashtag renderer performance Before it was doing a query for each tag in the content. With these changes is performing only one query to retrieve all the hashtags. On the other hand, we are losing the GlobalId flexibility, but we were searching specifically for the Decidim::Hashstag GlobalId in the content, so it wasn't so flexible. * Allow HashtagRenderer to ignore extra hashtags and also retrieve them The `render_without_method` was removed to simplify the class interface * Apply hashtag renderer changes to meetings and simplified presenter * Apply hashtag renderer changes to proposals and simplified presenter * Allow to define automatic and suggested hashtags for proposal components * Show users auto hashtags and allow to select suggested hashtags * Missing translations * CodeClimate issues fixed * Meetings test fixed simplifying locales handling in presenter * Test broken by API change fixed * Render hashtags write in collaborative drafts * Improve reusability and mantainability of collaborative drafts Similar to what was done in #3744, but with collaborative drafts instead of proposals * Add extra tags to collaborative drafts * Removed unused i18n keys after refactoring collaborative draft templates Also, I was using proposals translations for collaborative drafts, I've fixed that too * Ignore case of selected suggested hashtags * Commands logic moved from forms * Proposals and collaborative drafts commands hashtags tests * Proposals forms and system tests * Added extra hashtags to admin proposals creation and edition * Hashtag parser and renderer tests for extra hashtags * Tests for collaborative drafts * Fixed geolocalized collaborative drafts * Add changelog entry * Missing params docs added * Very duplicated methods moved to a module and improved naming * hashtags_suggested renamed to suggested_hashtags * Revert changes to non-english locales * hashtags_auto renamed to automatic_hashtags * Cleaner code * Regression test for collaborative drafts with geocoding enabled fixed bug * Update decidim-proposals/app/commands/decidim/proposals/hashtags_methods.rb Co-Authored-By: leio10 <leiodd@gmail.com>
🎩 What? Why?
Fixes various bugs and improvements on proposal creation and updates.
📌 Related Issues
CookieOverflowin wizard stepsproposal_lengthvalidation on create_stephas_addresschecked andaddresson invalid form📋 Subtasks
CHANGELOGentry📷 Screenshots (optional)
proposal_lengthvalidation:has_addresschecked andaddresson invalid form: