8000 Log server upgrade in audit log · Issue #971 · getodk/central · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Log server upgrade in audit log #971
Closed
getodk/central-backend
#1511
@matthew-white

Description

@matthew-white

This issue is to keep a log of each time the server was upgraded. Users should have easy access to this history. We have discussed a few ideas for implementation:

  1. Manually write a database migration for each release. The migration would insert a row into the audits table indicating that the server has been upgraded.
  2. Autogenerate a migration for each release. For separate reasons, we've been discussing writing a script that we would run before each release. Maybe that script could be what writes the migration for each release.
  3. Log server upgrade on server start
    a. When we generate versions.txt?
    b. Backend has access to the version of Central it's running via the SENTRY_TAGS environment variable (it's a JSON string; I think the version.central property is the one we want). Maybe Backend could compare the current version to what's already in the audit log. If they differ, it could log the current version.
    • Maybe this could be done in lib/bin/run-server.js.
    • Alternatively, maybe it could be done in its own script. start-odk.sh could run that script after running lib/bin/run-migrations.js.

Metadata

Metadata

Assignees

Labels

backendRequires a change to the API serverbehavior verifiedBehavior has been manually verifiedenhancementNew feature or behaviorfrontendRequires a change to the UIopsDocker, nginx, ops to deploy Central

Type

No type

Projects

Status

✅ done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0