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

Maintenance Mode #2449

Open
jbpenrath opened this issue Jun 26, 2024 · 4 comments
Open

Maintenance Mode #2449

jbpenrath opened this issue Jun 26, 2024 · 4 comments

Comments

@jbpenrath
Copy link
Member

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.

@igobranco
Copy link
Collaborator

@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...
fccn/nau-richie-site-factory@5ece2ba

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?

  1. something includable before the page header
  2. even include a bellow the footer static placeholder - similar to what we have on NAU?

@jbpenrath
Copy link
Member Author

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.

@igobranco
Copy link
Collaborator

@jbpenrath I agree that through environment variable isn't the right solution. What do you mean through "site attributes"?

@jbpenrath
Copy link
Member Author

jbpenrath commented Jul 3, 2024

We could extend the Site model to add a maintenance BooleanField. Then in the django admin, we were able to enable/disable this mode and just show/hide the maintenance banner in the base template according to the value of this flag.

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

No branches or pull requests

2 participants