-
Notifications
You must be signed in to change notification settings - Fork 85
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
Maintenance Mode #2449
Comments
@jbpenrath I have implemented a similar feature on our site, 2 years ago... It was an urgent stuff, just before a big migration that we had... It is just a big message "In Maintenance" on header, so people don't create tickets just because they can't enroll on a course. I don't know if it is possible to have some static generic to the base template. Like @sandroscosta have implemented to our footer logos using a static placeholder. Do you think that it could generalized and upstream directly to Richie?
|
We would like to enable this maintenance mode through site attributes. Because setting this settings through an environment variable obliges us to deploy the app to enable/disable this mode. |
@jbpenrath I agree that through environment variable isn't the right solution. What do you mean through "site attributes"? |
We could extend the |
@jbpenrath We are going to have a new maintenance window on our site. What I have planed to do is to include a JS lines via Google Tag Manager (GTM) a couple of days before to warn our users. It requires to deploy the GTM, but Is as simple as 10 clicks... after 15 minutes all users should see the difference. The GTM JS has 15 minutes client cache. We are using GTM, to include multiple external JS libraries: Google Analytics, support widgets, browser upgrade warning, Cookie consent, other tracking's, etc. Hope my comment helps. Maintenance Banner JS example: var maintenanceBanner = document.createElement("div");
maintenanceBanner.style = "background-color: #ffce35; font-size: 1rem;";
if (document.documentElement.lang.startsWith("pt")) {
maintenanceBanner.innerHTML = "Devido a uma operação de manutenção, ......";
} else {
maintenanceBanner.innerHTML = "Due to a maintenance operation, .....";
}
document.body.insertBefore(maintenanceBanner,document.body.childNodes[0]); |
Thanks for the information @igobranco. Looks a versatile workaround 👍 |
Feature Request
Is your feature request related to a problem or unsupported use case? Please describe.
Currently, with Richie, this is not possible to mention that the website is under maintenance so during infrastructure operation which implies some service to be turned off, the site can be still online but malfunctions.
To help user to understand what is happening, we could display an info banner when the website is under maintenance. We should be able to switch maintenance mode from the site administration.
The text was updated successfully, but these errors were encountered: