Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

Scheduled maintenance message Fixes:#434 #436

Closed adbharadwaj closed 3 years ago

adbharadwaj commented 3 years ago

Purpose

We want to be able to update the server to display a warning message to users when we plan to do heavy maintenance that could affect the user's work. If a graph is open and being currently edited by users when maintenance is live, they may lose those unsaved changes.

Example: Fixes #434 .

Approach

Uses a script to change environment variables for a Boolean variable for existence of scheduled maintenance, and 2 variables for a start and end date of the maintenance. The environment variables are loaded into the project via base.py and a partial was created to display the yellow warning message on the top of the page.

Open Questions and Pre-Merge TODOs

Learning

image

Blog Posts

jddanna commented 3 years ago

Please make some minor changes: "Please note that GraphSpace will be unavailable due to scheduled maintenance from {{ maintenance_start_datetime }} to {{ maintenance_end_datetime }}."

Here's an updated view image