v3.3.1
Pre-releaseRelease Summary
This release adds support for automated database migrations for the non-integrated version of the Viewer. More information about these automated migrations is below.
This release also adds a sign-out button to the application, and added new docs to reference.
🚧 Required Infrastructure Changes 🚧
There are two environment variable changes associated with the automated migrations. These changes are only required for users running the non-integrated Viewer.
METADATA_DATABASE_SCHEMA
: Optional. Possible values are "core" and "extended". Database schema to use for metadata storage. Core has a small subset of Extended. Default value is "extended".
METADATA_DATABASE_MIGRATION_SECRET
: Secret needed to apply migrations via the /migrate-db api route. If not set, a random UUID will be assigned by the application and logged to the server.
📊 Automated Database Migrations 📊
This release adds support for Kysely automated database migrations. These add two quality-of-life improvements for implementers of the Viewer:
- If the eCR Viewer database isn't up to date with the latest migrations, the application will show an error message
i. This means you can't get into a state where the data schema version doesn't match the application version. - Instead of running the SQL scripts manually, you'll call a new API endpoint that runs the migrations for you. See API documentation here.
🏕 Features
- feat: add occupational history accordion by @mcmcgrath13 in #645
- feat: Add Kysely-driven migrations by @akasper in #546
- feat: make
extended
the default schema, any schema on any db by @mcmcgrath13 in #656 - docs: minor cleanup and re-org of env var docs by @mcmcgrath13 in #665
- feat: add sign out button by @mcmcgrath13 in #670
- fix: eRSD Warnings by @angelathe in #643
Full Changelog: v3.2.0...v3.3.1