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 mass-metric-ton units handling #1146

Merged
merged 6 commits into from
Jun 26, 2023
Merged

Fix mass-metric-ton units handling #1146

merged 6 commits into from
Jun 26, 2023

Conversation

petechd
Copy link
Contributor

@petechd petechd commented Jun 26, 2023

What is the context of this PR?

mass-metric-ton is no longer supported for en_GB and related locales, but still present in business schema and allowed in validator. Until removed from schema and validator definitions we want to substitute mass-ton for mass-metric-ton and vice versa, before and after unit formatting.

How to review

New test cases in existing unit tests.

Checklist

  • New static content marked up for translation
  • Newly defined schema content included in eq-translations repo

@petechd
Copy link
Contributor Author

petechd commented Jun 26, 2023

Copy link
Contributor

@katie-gardner katie-gardner left a comment

Choose a reason for hiding this comment

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

All comments from me addressed, and looks good! 👍 think this is a sensible approach to take for a quick resolution

Copy link
Contributor

@Yuyuutsu Yuyuutsu left a comment

Choose a reason for hiding this comment

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

Functionally tested, and changes lgtm !

@petechd petechd added the Bug Fix Something isn't working label Jun 26, 2023
@petechd petechd merged commit d2dc26a into main Jun 26, 2023
@petechd petechd deleted the fix-metric-ton-unit-issue branch June 26, 2023 12:38
MebinAbraham added a commit that referenced this pull request Jul 5, 2023
Fix handling of invalid values in form numerical inputs  (#1111)
Fix dynamic answers functional test (#1121)
Add schema changes for validator format_unit using calculated summary source validation fix (#1142)
Fix mass-metric-ton units handling (#1146)
Fix unit label hover title for metric ton (#1150)
Fix list collector placeholders not resolving when preview enabled (#1151)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants