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 accessing /products page #12820

Conversation

chahmedejaz
Copy link
Collaborator

@chahmedejaz chahmedejaz commented Aug 27, 2024

Context: https://openfoodnetwork.slack.com/archives/CG7NJ966B/p1724767186657359

What? Why?

What should we test?

  • Should be tested on UK and FR servers
  • Choose English as the language
  • Visit the products page
  • It should be displayed without error
  • Try to filter the products such that only one product is displayed in the table and the page should not break as well.

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

@filipefurtad0 filipefurtad0 added pr-staged-uk staging.openfoodnetwork.org.uk pr-staged-fr staging.coopcircuits.fr labels Aug 27, 2024
@filipefurtad0 filipefurtad0 self-assigned this Aug 27, 2024
Copy link
Contributor

@filipefurtad0 filipefurtad0 left a comment

Choose a reason for hiding this comment

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

This looks good and should fix the issue.

I'm weary about this comment from @mkllnk though, we need to make sure this does not get overriden and somehow reverted by Transifex, on the next release.

But I think for now this should be the way to go 👍

@filipefurtad0
Copy link
Contributor

filipefurtad0 commented Aug 27, 2024

Hey @chahmedejaz,

The bug was reproduced in staging-UK. After staging this PR, we can see the product page renders again:

for en_GB.yml
image

When having one product only from the search results:
image

In staging-FR:

for en_FR.yml
image

When having one product only from the search results:
image

I'd say this fixes the issue 🎉

Since I'm not 100% sure manually editing transifex files is the best process, I'm moving to ready to go. Please feel free to merge @chahmedejaz or any other @openfoodfoundation/core-devs.

@filipefurtad0 filipefurtad0 removed pr-staged-uk staging.openfoodnetwork.org.uk pr-staged-fr staging.coopcircuits.fr labels Aug 27, 2024
@chahmedejaz
Copy link
Collaborator Author

Since I'm not 100% sure manually editing transifex files is the best process

Yeah @filipefurtad0, I agree that there's a chance this may create conflict if someone changes somewhere near this PR's changes in Transifex as well. I hope this won't be the case in the next release 🤞

If we want to eliminate the chance for the above, we would need to do these changes in Transifex itself and I don't have access for that 😓
Given the access, I can try to make these changes via Transifex itself. However, I think Fixing this s1 is worth taking the above chance 😬. If we get the green signal from anyone from the deployments channel, then I'd merge it. If not, then I'm leaving this decision on @openfoodfoundation/core-devs. Thanks

@filipefurtad0
Copy link
Contributor

If we get the green signal from anyone from the deployments channel, then I'd merge it

💯 Fully aligned @chahmedejaz

@chahmedejaz chahmedejaz added the bug-s1 The bug is stopping the platform from working, and there is no workaround. Impact of lot of users. label Aug 27, 2024
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

I changed these strings in Transifex and committed the changes to master. The result is the same. So I can close this PR now.

@mkllnk mkllnk closed this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s1 The bug is stopping the platform from working, and there is no workaround. Impact of lot of users.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUU] Error 500 on accessing /products page
3 participants