Skip to content

Commit

Permalink
Improve docs for generating a migration spreadsheet (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
bess authored Feb 2, 2024
1 parent ac0c1cf commit 91f9e12
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/migration_spreadsheet.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Generating the DataSpace Migration Spreadsheet

## Generating a full migration spreadsheet
1. ssh to the production pdc-discovery server
1. `bundle exec rake migration:produce_full_spreadsheet`

## Generating a delta
1. Download the current migration spreadsheet as a .csv file
2. Check whether any new collections should be added to `config/collections.csv`
3. Invoke the `produce_delta_spreadsheet` rake task and point to the current migration spreadsheet, like this:
2. Check whether any new collections should be added to `config/collections.csv` (and add them, and deploy if necessary)
3. Copy the current migration spreadsheet csv file to the PDC Discovery production server: `scp ~/Downloads/current_spreadsheet.csv [email protected]:/tmp`
4. ssh to that server: `ssh [email protected]`
5. Go to where the software is deployed
6. Invoke the `produce_delta_spreadsheet` rake task and point to the current migration spreadsheet, like this:
```
bundle exec rake migration:produce_delta_spreadsheet\["/Users/bess/projects/pdc_discovery/spec/fixtures/migration/migration_in_progress.csv"]
bundle exec rake migration:produce_delta_spreadsheet\["/tmp/current_spreadsheet.csv"]
```
4. It will produce a spreadsheet named like `delta_dataspace_migration_spreadsheet_2023_08_22_19_55.csv` in the `/tmp` directory.
7. It will produce a spreadsheet named like `delta_dataspace_migration_spreadsheet_2023_08_22_19_55.csv` in the `/tmp` directory.
8. Copy that spreadsheet to your local machine, and then import it into a new tab on the migration spreadsheet.

0 comments on commit 91f9e12

Please sign in to comment.