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

[BUU] fix error 500 on hungary instance #12700

Merged

Conversation

rioug
Copy link
Collaborator

@rioug rioug commented Jul 23, 2024

What? Why?

This PR #12683 fixes the first occurrence of the bug but uncovered another one.

When running with :hu locale, call to number_to_rounded with parameter precision: nil breaks, adding significant: false fixes the issue.

What should we test?

You'll need to set the server local to hu :

  • open apps/openfoodnetwork/current/.env.staging and change set locale to hu
LOCALE="hu"
  • restart puma
  • As an admin, load products page -> it doesn't break

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

When running with :hu locale, call to `number_to_rounded` wiht parameter
precision: nil breaks, adding significant: false fixes the issue
@rioug rioug added the feature toggled These pull requests' changes are invisible by default and are grouped in release notes label Jul 23, 2024
@rioug rioug requested a review from dacook July 23, 2024 04:06
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

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

Great, thanks for that. I wonder if this would be apparent on the old products screen too.

In any case, this solves it. But there's a risk it might come up elsehwere when we use this helper, and don't test in hu.
So it would be good to get to the bottom of it.. I'll try on my env.

@dacook
Copy link
Member

dacook commented Jul 23, 2024

Thanks for adding the testing details.
It's weird, I can't replicate the issue on another random view. 🤷

As the fix has already been tested in production, I think it's not necessary to test on staging; I would support merging this now.
Do you agree @rioug ?

@rioug
Copy link
Collaborator Author

rioug commented Jul 23, 2024

Sure happy to merge

@rioug rioug merged commit dfea0cd into openfoodfoundation:master Jul 23, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature toggled These pull requests' changes are invisible by default and are grouped in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUU] error 500 on admin/products
2 participants