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: display maintenance page in case of a 503 http status error #1111

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

SGrueber
Copy link
Collaborator

@SGrueber SGrueber commented Apr 8, 2022

PR Type

[x] Feature

What Is the Current Behavior?

If the ICM server is in maintenance mode REST requests respond with an 503 http status code, but the client doesn`t handle these errors properly.

What Is the New Behavior?

The PWA shows a maintenance page if a REST request respond with a 503 error.

Does this PR Introduce a Breaking Change?

[x] No

Requirements

  • ICM 7.10.38.16-LTS (WebAdapter version 1.1.4)
  • ICM 11 with Webadapter version 2.4.3 or higher

AB#75906

@SGrueber SGrueber added feature New feature or request wait Waiting for something (e.g. new ICM release) labels Apr 25, 2022
src/app/pages/app-routing.module.ts Outdated Show resolved Hide resolved
@jometzner
Copy link
Collaborator

@shauke @SGrueber We can now retest the integration with ICM again, as the WA is now capable of handling CORS preflight requests in the maintenance case.

@SGrueber SGrueber force-pushed the feature/maintenance_page branch 2 times, most recently from f56b1d7 to 6521494 Compare September 5, 2022 11:40
@SGrueber SGrueber removed the wait Waiting for something (e.g. new ICM release) label Sep 5, 2022
@SGrueber SGrueber marked this pull request as ready for review September 5, 2022 11:42
@SGrueber SGrueber requested a review from shauke September 6, 2022 07:04
src/assets/i18n/fr_FR.json Outdated Show resolved Hide resolved
@shauke shauke added this to the 3.1 milestone Sep 8, 2022
@SGrueber SGrueber requested a review from shauke September 9, 2022 06:54
@jometzner jometzner self-assigned this Sep 9, 2022
@SGrueber SGrueber force-pushed the feature/maintenance_page branch 2 times, most recently from ca38670 to 2b0d323 Compare September 12, 2022 13:05
jometzner
jometzner previously approved these changes Sep 12, 2022
@SGrueber SGrueber mentioned this pull request Sep 19, 2022
shauke
shauke previously approved these changes Sep 22, 2022
@shauke shauke requested review from martinstockmann and removed request for mglatter September 22, 2022 06:34
Copy link

@NicolasGrizard NicolasGrizard left a comment

Choose a reason for hiding this comment

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

see both comments

src/assets/i18n/fr_FR.json Outdated Show resolved Hide resolved
src/assets/i18n/fr_FR.json Outdated Show resolved Hide resolved
* current difference to the simple header: logo link with reloading link instead of router link
shauke pushed a commit that referenced this pull request Sep 22, 2022
* display maintenance page only if the error still exists otherwise route to the home page
* requires WebAdapter version 1.1.4 (ICM 7.10.38.16-LTS?)
@shauke shauke dismissed stale reviews from jometzner and themself via 38159a7 September 22, 2022 15:31
shauke
shauke previously approved these changes Sep 22, 2022
* display maintenance page only if the error still exists otherwise route to the home page
* requires ICM 7.10.38.16-LTS (WebAdapter version 1.1.4)
@shauke shauke merged commit 856b3f7 into develop Sep 23, 2022
@shauke shauke deleted the feature/maintenance_page branch September 23, 2022 06:47
shauke pushed a commit that referenced this pull request Sep 23, 2022
* display maintenance page only if the error still exists otherwise route to the home page
* requires ICM 7.10.38.16-LTS (WebAdapter version 1.1.4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants