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

project: restore data #364

Merged
merged 1 commit into from
Nov 10, 2020
Merged

project: restore data #364

merged 1 commit into from
Nov 10, 2020

Conversation

sebdeleze
Copy link
Contributor

This PR aims to backup organisations and users data just before cleaning the database and restore them after.

  • Moves organisations and users fixtures.
  • Updates setup script to backup and restore data for organisations and users.
  • Adds a method in API to get the record class corresponding to PID type.
  • Adds a method in API to retrieve all PIDs for a given type.
  • Adds a command to export records for all types.
  • Adds a configuration to specify export serializers.
  • Updates organisation's fixtures CLI to add files to records.
  • Adds a marshmallow schema for exporting organisations and users.
  • Removes password hashing when loading users fixtures as password is already hashed.
  • Closes Restore backups for organisations and users after a new setup #356.

Co-Authored-by: Sébastien Délèze [email protected]

@sebdeleze sebdeleze marked this pull request as ready for review October 28, 2020 15:13
@sebdeleze sebdeleze requested a review from jma October 28, 2020 15:13
@sebdeleze sebdeleze removed the request for review from jma October 28, 2020 15:15
This PR aims to backup organisations and users data just before cleaning the database and restore them after.

* Moves organisations and users fixtures.
* Updates setup script to backup and restore data for organisations and users.
* Adds a method in API to get the record class corresponding to PID type.
* Adds a method in API to retrieve all PIDs for a given type.
* Adds a command to export records for all types.
* Adds a configuration to specify export serializers.
* Updates organisation's fixtures CLI to add files to records.
* Adds a marshmallow schema for exporting organisations and users.
* Removes password hashing when loading users fixtures as password is already hashed.
* Displays a message in frontpage saying that data might be deleted.
* Closes #356.

Co-Authored-by: Sébastien Délèze <[email protected]>
@sebdeleze sebdeleze merged commit 3307ed6 into rero:dev Nov 10, 2020
@sebdeleze sebdeleze deleted the sed-restore-data branch November 10, 2020 13:27
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.

Restore backups for organisations and users after a new setup
1 participant