Skip to content
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

Fix/accountability progress #3952

Merged
merged 6 commits into from
Aug 6, 2018
Merged

Fix/accountability progress #3952

merged 6 commits into from
Aug 6, 2018

Conversation

armandfardeau
Copy link
Contributor

@armandfardeau armandfardeau commented Aug 2, 2018

🎩 What? Why?

Fix accountability progress to be between 0 and 100 if provided

Progress was not constrained to a range, you could choose a number superior to 100 resulting in error.
image
image
image

The range is now within 0 to 100 and can be empty.

Fixes #3956

📋 Subtasks

  • Add CHANGELOG entry
  • Add tests

📷 Screenshots (optional)

image

@ghost ghost added the status: WIP label Aug 2, 2018
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! Just a changelog comment but other than that it's good to go! 😍

CHANGELOG.md Outdated
@@ -45,6 +45,7 @@

**Fixed**:

- **decidim-ac countability**: Fix progress when provided. [\#3952](https://github.com/decidim/decidim/pull/3952)
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a 🐛'gy whitespace here :) Also, the text is a bit vague, better to say "Fix accountability progress to be between 0 and 100 if provided" like in the PR description!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your feedback !

@mrcasals
Copy link
Contributor

mrcasals commented Aug 3, 2018

@armandfardeau thanks for the PR! It's weird you got that number, did you manually modify the values from the DB or was it done by Decidim itself?

@armandfardeau
Copy link
Contributor Author

armandfardeau commented Aug 3, 2018

@mrcasals I didn't change anything in DB, I've juste updated the form. As there is no validation on form nor model, you could submit everything you wanted.

Please let me know if validation on model is needed.

@mrcasals
Copy link
Contributor

mrcasals commented Aug 3, 2018

No, it's good as it is! 😄

@mrcasals mrcasals merged commit 20f9c30 into decidim:master Aug 6, 2018
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.

3 participants