-
-
Notifications
You must be signed in to change notification settings - Fork 392
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 empty proposals component configuration limits #10551
Conversation
to add : proposal_edit_before_minutes |
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.
For these two, it works as expected.
But after searching for these I found other attributes that give the same error: the form let you save them empty and then going to the frontend page you'll see an exception.
These are the ones that I could reproduce it:
decidim-accountability/lib/decidim/accountability/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-blogs/lib/decidim/blogs/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-budgets/lib/decidim/budgets/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-debates/lib/decidim/debates/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-dev/lib/decidim/dev/test/rspec_support/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-meetings/lib/decidim/meetings/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-proposals/lib/decidim/proposals/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-sortitions/lib/decidim/sortitions/component.rb: settings.attribute :comments_max_length, type: :integer, required: false
decidim-proposals/lib/decidim/proposals/component.rb: settings.attribute :proposal_edit_before_minutes, type: :integer, default: 5
decidim-proposals/lib/decidim/proposals/component.rb: settings.attribute :threshold_per_proposal, type: :integer, default: 0
Can you check them out please?
(After saving this, I saw your comment that you've found a couple of these one too, so ping me when that's implemented 😄)
To be honest, i would like to address the issues of other components in a different PR. |
2830bae
to
7a22931
Compare
OK, no problem |
Fixed here #10561 |
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.
Just a minor change
decidim-dev/lib/decidim/dev/test/rspec_support/component_context.rb
Outdated
Show resolved
Hide resolved
…xt.rb Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
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.
LGTM 👍🏽
🎩 What? Why?
While investigating the fix for #10525, i have tried to remove all the integer field values so i could test some edge cases. This PR fixes the errors found during that test.
📌 Related Issues
Link your PR to an issue
Testing