monarc-project / MonarcAppFO

MONARC - Method for an Optimised aNAlysis of Risks by @NC3-LU
https://www.monarc.lu
GNU Affero General Public License v3.0
100 stars 38 forks source link

Deployment maintenance functionality #514

Open ruslanbaidan opened 10 months ago

ruslanbaidan commented 10 months ago

Context

A new release deployment in some cases could cause small Front Office application downtime or impact the data storing in case they are processed at the time when the server update is performed. The idea is to inform people about the future update in advance and prevent actions process when it is performed, like preventing login and postpone incoming requests process if user is already logged in.

Solution

BackOffice side. Create a page with a possibility to impose the maintenance mode with the required details, adjust maintenance warning message, dates, enable disable it. The information is stored in a table in monarc_common db.

FrontOffice side. On the login page there could be displayed a warning message, if the maintenance mode is set (validate in the table from the monarc_common db), informing about the future event. If the even date and time are matched, the other necessary restrictions have to be taken.