Skip to content

Conversation

@agustibr
Copy link
Contributor

@agustibr agustibr commented Jun 28, 2018

🎩 What? Why?

Fixes various bugs and improvements on proposal creation and updates.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add tests

📷 Screenshots (optional)

  • first step with proposal author/user_group:
    screenshot from 2018-07-18 11-57-30
  • proposal_length validation:
    screenshot from 2018-06-28 15-36-20
  • edit proposal attachment:
    screenshot from 2018-06-28 15-41-40
  • has_address checked and address on invalid form:
    screenshot from 2018-06-28 15-37-43

@ghost ghost assigned agustibr Jun 28, 2018
@ghost ghost added the status: WIP label Jun 28, 2018
@agustibr agustibr force-pushed the fix/wizard-create-step-cookie_overflow branch 3 times, most recently from 0b50fec to 1424173 Compare June 28, 2018 15:46
@agustibr agustibr requested a review from oriolgual June 28, 2018 15:46
@agustibr agustibr force-pushed the fix/wizard-create-step-cookie_overflow branch 4 times, most recently from d1fedf0 to 383f412 Compare July 4, 2018 07:21
oriolgual
oriolgual previously approved these changes Jul 4, 2018
Copy link
Contributor

@oriolgual oriolgual left a comment

Choose a reason for hiding this comment

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

Nice work!

@agustibr
Copy link
Contributor Author

agustibr commented Jul 4, 2018

@oriolgual thanks 😄 , I'll add some tests and fix the failing test so it can be merged

@agustibr agustibr force-pushed the fix/wizard-create-step-cookie_overflow branch 2 times, most recently from 98551a8 to 0e57541 Compare July 10, 2018 15:30
@josepjaume
Copy link
Contributor

Yeah, super nice work! Proposals is such a core feature of decidim and it had become quite buggy 💪

@agustibr agustibr force-pushed the fix/wizard-create-step-cookie_overflow branch 2 times, most recently from 0853ca1 to 5b73295 Compare July 12, 2018 10:05
@ghost ghost added the status: WIP label Jul 18, 2018
@agustibr agustibr force-pushed the fix/wizard-create-step-cookie_overflow branch from 6fb00ea to 06c3985 Compare July 18, 2018 07:59
@agustibr
Copy link
Contributor Author

@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.
Is this ok? (I've updated the screenshot of the description's PR)

agustibr added 6 commits July 18, 2018 16:48
* fix `CookieOverflow` in wizard steps
* proposal_length validation on create_step
* show has_address checked and address on invalid
* ability to update proposal attachment
@ghost ghost added the status: WIP label Jul 19, 2018
@mrcasals
Copy link
Contributor

@agustibr this needs feedback from @decidim/product, right?

@ghost ghost added the status: WIP label Jul 24, 2018
@agustibr
Copy link
Contributor Author

@mrcasals or @decidim/lot-core, all checks passed! can you review it
thanks

@agustibr
Copy link
Contributor Author

@agustibr this needs feedback from @decidim/product, right?

@decidim/product gave the go-ahead to my question.

Copy link
Contributor

@mrcasals mrcasals left a 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!

@oriolgual oriolgual merged commit 6c12441 into master Jul 24, 2018
@oriolgual oriolgual deleted the fix/wizard-create-step-cookie_overflow branch July 24, 2018 10:01
@oriolgual oriolgual mentioned this pull request Jul 24, 2018
3 tasks
@agustibr
Copy link
Contributor Author

Yay! thanks!

leio10 added a commit to podemos-info/decidim that referenced this pull request Nov 29, 2018
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
leio10 added a commit to podemos-info/decidim that referenced this pull request Nov 30, 2018
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
leio10 added a commit to podemos-info/decidim that referenced this pull request Dec 4, 2018
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
leio10 added a commit to podemos-info/decidim that referenced this pull request Dec 4, 2018
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
leio10 added a commit to podemos-info/decidim that referenced this pull request Dec 10, 2018
Similar to what was done in decidim#3744, but with collaborative drafts instead of proposals
mrcasals pushed a commit that referenced this pull request Dec 11, 2018
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants