Skip to content

Let the file validator humanizer work with static numeric values#6682

Merged
tramuntanal merged 1 commit intodecidim:developfrom
mainio:fix/file-validator-humanizer-static-values
Oct 15, 2020
Merged

Let the file validator humanizer work with static numeric values#6682
tramuntanal merged 1 commit intodecidim:developfrom
mainio:fix/file-validator-humanizer-static-values

Conversation

@ahukkanen
Copy link
Copy Markdown
Contributor

🎩 What? Why?

The file validator humanizer is not currently working when given static numeric values. It only works with lambdas as it is being used in the Decidim core. This ensures it works also with numbers.

📌 Related Issues

Testing

There's nothing in the core that is currently broken because of this but this will fix situations where static numbers are used to limit the file sizes.

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

@tramuntanal tramuntanal self-assigned this Oct 15, 2020
@tramuntanal tramuntanal merged commit 6f6cb17 into decidim:develop Oct 15, 2020
@ahukkanen ahukkanen deleted the fix/file-validator-humanizer-static-values branch October 15, 2020 09:45
tramuntanal added a commit that referenced this pull request Oct 16, 2020
…6688)

Co-authored-by: Antti Hukkanen <antti.hukkanen@mainiotech.fi>
@mrcasals mrcasals added the type: change PRs that implement a change for an existing feature label Feb 25, 2021
@mrcasals mrcasals changed the title Fix the file validator humanizer with static numeric values Let the file validator humanizer work with static numeric values Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review module: core type: change PRs that implement a change for an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants