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

PP 284 implementation of outage messages #455

Merged
merged 18 commits into from
Mar 4, 2024

Conversation

ValentinaIancu-Gini
Copy link
Contributor

@ValentinaIancu-Gini ValentinaIancu-Gini commented Feb 15, 2024

In this PR, we are handling separately some specific errors:

  • 500 - outage error
  • 503 - maintenance error
  • 501...599 - server error message
  • modified title and content for the generic error screen that will appear in case of error status code 499 and is also used as a fallback when an unknown error is received.
  • fixed no internet connection error appearance
  • code cleanup

- corresponding strings where added
- test 503 error -> `maintenance` type
- added the corresponding asset for the visual of this new error

PP-284
- corresponding strings where added both en and de
- test 500 error -> `outage` type

PP-284
…Error` and `unexpectedError`

- group texts in localization files

PP-284
- the "no internet connection" error wan't handled until now

PP-284
Copy link
Collaborator

@zladzeyka zladzeyka left a comment

Choose a reason for hiding this comment

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

Great job! @ValentinaIancu-Gini
🤟🏼

@ValentinaIancu-Gini ValentinaIancu-Gini force-pushed the PP-284-Implementation-of-outage-messages branch from 60a6ef6 to b224651 Compare February 21, 2024 13:25
@ValentinaIancu-Gini
Copy link
Contributor Author

@zladzeyka please check again. I fixed the test that was crashing. 🤦

Copy link
Collaborator

@zladzeyka zladzeyka left a comment

Choose a reason for hiding this comment

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

We agreed that we'll try to refactor SessionManager/handleError. 🍀

@ValentinaIancu-Gini
Copy link
Contributor Author

@zladzeyka I did the refactoring, fixed one test, and added one more. When you have time please check it.

Copy link
Collaborator

@zladzeyka zladzeyka left a comment

Choose a reason for hiding this comment

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

Looks good @ValentinaIancu-Gini,
please find the tiny suggestion about a missing whitespace

@ValentinaIancu-Gini ValentinaIancu-Gini merged commit 0a2b22c into main Mar 4, 2024
15 checks passed
@ValentinaIancu-Gini ValentinaIancu-Gini deleted the PP-284-Implementation-of-outage-messages branch March 4, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants