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

Add read-only mode to DB server #1102

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Jul 17, 2023

This adds an API_READ_ONLY environment variable, which blocks API operations that create/update/delete versions, annotations, etc. when set to "true". Since we ware now working towards shutting down the entire system, this is helpful so we can work on creating archival data without worrying about the database changing from underneath us. See edgi-govdata-archiving/web-monitoring#170.

setting the `API_READ_ONLY` environment variable blocks API operations that create/update/delete versions, annotations, etc. Since we ware now working towards shutting down the entire system, this is helpful so we can work on creating archives without worrying about the database changing from underneath us. See edgi-govdata-archiving/web-monitoring#170.
@Mr0grog Mr0grog merged commit 3632762 into main Jul 17, 2023
@Mr0grog Mr0grog deleted the read-only-is-useful-while-we-work-on-shutdown branch July 17, 2023 19:14
Mr0grog added a commit that referenced this pull request Jul 17, 2023
Mr0grog added a commit to edgi-govdata-archiving/web-monitoring-ops that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant