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

Prevent report creation during SAC data load #4320

Open
sambodeme opened this issue Sep 25, 2024 · 0 comments
Open

Prevent report creation during SAC data load #4320

sambodeme opened this issue Sep 25, 2024 · 0 comments
Labels

Comments

@sambodeme
Copy link
Contributor

sambodeme commented Sep 25, 2024

Description

As part of loading historical SAC records into the production database, we need to ensure the sequential order of the IDs in the singleauditchecklist table.

This ticket is to implement a safeguard that prevents users from creating new reports while the data load into the SAC table is in progress. This will ensure data integrity and avoid conflicts during the loading process.

Possible solutions include:
The team has agreed to implement a kill switch mechanism that will temporarily disable specific application functionality during the data load. The following approach will be taken:

  1. Kill Switch via ENV Variable: We will introduce an environment variable in the settings that acts as a kill switch to control access to critical features during the data load process.

  2. Management Command: A Django management command will be created to flip the kill switch. This command will be used to enable or disable the safeguard as needed.

  3. Middleware Implementation: Middleware will be added to intercept user requests and display a “Please Hold” page when the kill switch is active. This page will inform users that the system is temporarily unavailable due to maintenance

@sambodeme sambodeme added the eng label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triage
Development

No branches or pull requests

1 participant