Commit a231988b authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Major refactor of the import process cli.

parent 3f60b7bb
......@@ -7,26 +7,30 @@ script `./configurations/deploy-configurations.sh` to deploy them. This takes a
sleeps for 10 seconds between each deploy to ensure the SFTP server does not kill the connections.
## Files & Folders
To import a single record set use:
To run these scripts a python installation is required with the package `requests`. The suffix of
the script determines on which infrastructure the request will be executed.
```bash
python start.py memobase-id
python start-prod.py record-set-memobase-id
```
To start a full migration use:
```bash
python migration-start.py
python migration-start-prod.py
```
* `institution_ids.csv` and `record_sets_ids.csv` are mappings between the old and new memobase ids.
* `generate_setup.py` was used to create the new `setup.json`
for each record set in the configuration folders.
### Configurations
A list of all the configurations used in the import processes for the migration.
### Prod
A list of all the configurations used in the import processes for the production service.
### Stage
A list of all the configurations used in the import processes for the stage service.
### Test
A list of all the configurations used in the import processes for the test service.
### Original Data Configs
### Archived Configs
These are used for a number of datasets which were prepared for the migration with the
original excel metadata.
original excel metadata. They were never used, but can serve as examples.
### API
These files are used to actually execute the requests. Most of this code is obsolete.
Some code to execute the request.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment