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

feat: 836 - localizable and clickable server error #837

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Some refactoring about "server error", where we put status=500 and an error message in English.
  • Just use new method shouldOpenNewIssue in order to:
    • localize a standard "server error" message
    • use openNewIssueUrl as a "open new issue" url...

Fixes bug(s)

Part of

Impacted files

  • open_food_api_client.dart: minor refactoring
  • status.dart: new method shouldOpenNewIssue and constant fields openNewIssueUrl and serverErrorStatus
  • sign_up_status.dart: minor refactoring

Impacted files:
* `open_food_api_client.dart`: minor refactoring
* `status.dart`: new method `shouldOpenNewIssue` and constant fields `openNewIssueUrl` and `serverErrorStatus`
* `sign_up_status.dart`: minor refactoring
Copy link
Contributor

@g123k g123k left a comment

Choose a reason for hiding this comment

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

I didn't know this link to open a new issue, but that's a really nice idea

@teolemon teolemon merged commit a40101c into openfoodfacts:master Nov 24, 2023
4 of 5 checks passed
@monsieurtanuki
Copy link
Contributor Author

Thank you @g123k for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

"No server response" error: to be localized and with reusable URL
3 participants