Show/hide maintenance mode banner correctly #4070

Open
yuha wants to merge 3 commits from 4034-maintenance-mode-banner into master
Member

Information and screenshots

No further information have been provided.

Checklist

  • tox -e reformat,lint used
  • Changelog updated/No update necessary
  • Documentation (incl. Screenshots) up-to-date
  • Copyright in apps.py and README.rst up-to-date
  • (Unit) tests for new feature/regression tests for bug fixes (only if useful)
  • Adhere to URL scheme
  • Tested with admin account
  • Tested with normal account (based on permissions)

Backend checklist

  • Use permissions for all GraphQL mutations
  • Use query optimizer for all GraphQL queries
  • Don't use inefficient DB queries

Frontend checklist (mandatory with ~"part::frontend")

## Information and screenshots No further information have been provided. ## Checklist - [x] `tox -e reformat,lint` used - [ ] Changelog updated/No update necessary - [ ] Documentation (incl. Screenshots) up-to-date - [ ] Copyright in `apps.py` and `README.rst` up-to-date - [ ] (Unit) tests for new feature/regression tests for bug fixes (only if useful) - [ ] Adhere to [URL scheme](https://code.teckids.org/aleksis/aleksis/issues/86) - [ ] Tested with admin account - [ ] Tested with normal account (based on permissions) ## Backend checklist - [ ] Use permissions for all GraphQL mutations - [ ] Use query optimizer for all GraphQL queries - [ ] Don't use inefficient DB queries ## Frontend checklist (mandatory with ~"part::frontend") - [ ] Screenshots are attached (mobile and desktop) - [ ] Tested on mobile, tablet, and desktop sizes - [ ] Adhered to [frontend guidelines](hhttps://code.teckids.org/aleksis/AlekSIS/src/branch/master/project/frontend_guidelines.rst) - [ ] Checked with [Firefox Accessibility Checker](https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/)
yuha self-assigned this 2026-11-19 17:45:47 +01:00
Correcty reset maintenance mode status with apollo link
Some checks failed
CI / lock (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / test-frontend (push) Has been cancelled
CI / tests-done (push) Has been cancelled
CI / build (push) Has been cancelled
CI / publish (push) Has been cancelled
e6415f97f7
Add changelog
Some checks failed
CI / lock (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / test-frontend (push) Has been cancelled
CI / tests-done (push) Has been cancelled
CI / build (push) Has been cancelled
CI / publish (push) Has been cancelled
5b5374ccbe
Reformat
All checks were successful
CI / test-frontend (push) Successful in 7m50s
CI / lock (push) Successful in 1m54s
CI / lint (push) Successful in 1m18s
CI / build (push) Successful in 2m23s
CI / test (push) Successful in 4m24s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 17s
889e44c536
Author
Member

maybe needs to be discussed: the banner explicitly refers to the maintenance mode, but it doesn't really check that – it just shows up when any gql request returns a 503. maybe check wording? like "server is temporarily not available"?

maybe needs to be discussed: the banner explicitly refers to the maintenance mode, but it doesn't really check that – it just shows up when any gql request returns a 503. maybe check wording? like "server is temporarily not available"?
Owner

@yuha wrote in #4070 (comment):

maybe needs to be discussed: the banner explicitly refers to the maintenance mode, but it doesn't really check that – it just shows up when any gql request returns a 503. maybe check wording? like "server is temporarily not available"?

Yeah, I would change the wording.

@yuha wrote in https://code.teckids.org/aleksis/AlekSIS-Core/pulls/4070#issuecomment-122020: > maybe needs to be discussed: the banner explicitly refers to the maintenance mode, but it doesn't really check that – it just shows up when any gql request returns a 503. maybe check wording? like "server is temporarily not available"? Yeah, I would change the wording.
All checks were successful
CI / test-frontend (push) Successful in 7m50s
CI / lock (push) Successful in 1m54s
CI / lint (push) Successful in 1m18s
CI / build (push) Successful in 2m23s
CI / test (push) Successful in 4m24s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 17s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '4034-maintenance-mode-banner:4034-maintenance-mode-banner'
git switch '4034-maintenance-mode-banner'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff '4034-maintenance-mode-banner'
git switch '4034-maintenance-mode-banner'
git rebase 'master'
git switch 'master'
git merge --ff-only '4034-maintenance-mode-banner'
git switch '4034-maintenance-mode-banner'
git rebase 'master'
git switch 'master'
git merge --no-ff '4034-maintenance-mode-banner'
git switch 'master'
git merge --squash '4034-maintenance-mode-banner'
git switch 'master'
git merge --ff-only '4034-maintenance-mode-banner'
git switch 'master'
git merge '4034-maintenance-mode-banner'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-Core!4070
No description provided.