edgi-govdata-archiving / web-monitoring-db

An HTTP API for tracking and annotating changes to a set of web pages.
https://api.monitoring.envirodatagov.org/
GNU General Public License v3.0
17 stars 26 forks source link

Add read-only mode to DB server #1102

Closed Mr0grog closed 1 year ago

Mr0grog commented 1 year ago

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.