scientist-softserv / louisville-hyku

Other
0 stars 0 forks source link

i186 Move to postgres-backed Fedora #192

Closed bkiahstroud closed 1 year ago

bkiahstroud commented 1 year ago

Story

Refs:

This PR changes the Fedora database configuration to be backed by postgres instead of just a simple file configuration. It also adds a new rake task to migrate/restore data in Fedora that will be lost when switching to using postgres. New functionality and overwritten functionality are included for the task to work as intended.

Summary of notable changes:

Expected Behavior Before Changes

The Fedora database uses a simple file configuration, leading to data corruption when running in a production environment.

Expected Behavior After Changes

The Fedora database uses a postgres-backed configuration. When switching out the Fedora database, Fedora data will initially disappear (SQL, Solr, etc. data should be untouched). Fedora data will be restored when running the lib/tasks/migrate_fedora.rake rake task:

1 FEDORA RECORDS NOT ASSOCIATED WITH A BULKRAX ENTRY WILL NOT BE RESTORED

Notes

Equivalent changes made to .env.development need to be made to .env on the production server

Co-authored-by: Braydon Justice sephirothkod@users.noreply.github.com