-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #553 from microbiomedata/519-migrations-implement-…
…notebook-that-runs-all-berkeley-schema-migrators
- Loading branch information
Showing
10 changed files
with
1,050 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/.notebook.env | ||
/.mongo.origin.yaml | ||
/.mongo.transformer.yaml | ||
/mongodump.*.out | ||
/tmp.* | ||
/tmp.* | ||
/*_migration.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# Paths to Mongo config files. | ||
PATH_TO_ORIGIN_MONGO_CONFIG_FILE = "./.mongo.origin.yaml" | ||
PATH_TO_TRANSFORMER_MONGO_CONFIG_FILE = "./.mongo.transformer.yaml" | ||
|
||
# Paths to folders in which the notebook will store Mongo dumps. | ||
PATH_TO_ORIGIN_MONGO_DUMP_FOLDER = "./mongodump.origin.out" | ||
PATH_TO_TRANSFORMER_MONGO_DUMP_FOLDER = "./mongodump.transformer.out" | ||
|
||
# These are absolute paths to the `mongodump` and `mongorestore` programs. | ||
PATH_TO_MONGODUMP_BINARY = "__REPLACE_ME__" # e.g. "/Users/Alice/Downloads/mongodb-database-tools-macos-arm64-100.7.4/bin/mongodump" | ||
# These are absolute paths to the `mongodump`, `mongorestore`, and `mongosh` programs. | ||
PATH_TO_MONGODUMP_BINARY = "__REPLACE_ME__" # e.g. "/Users/Alice/Downloads/mongodb-database-tools-macos-arm64-100.7.4/bin/mongodump" | ||
PATH_TO_MONGORESTORE_BINARY = "__REPLACE_ME__" # e.g. "/Users/Alice/Downloads/mongodb-database-tools-macos-arm64-100.7.4/bin/mongorestore" | ||
PATH_TO_MONGOSH_BINARY = "__REPLACE_ME__" # e.g. "/Users/Alice/Downloads/mongosh-1.10.6-darwin-x64/bin/mongosh" | ||
|
||
# Connection parameters for the Origin Mongo server (typically a remote serve). | ||
ORIGIN_MONGO_HOST="__REPLACE_ME__" | ||
ORIGIN_MONGO_PORT="__REPLACE_ME__" | ||
ORIGIN_MONGO_USERNAME="__REPLACE_ME__" | ||
ORIGIN_MONGO_PASSWORD="__REPLACE_ME__" | ||
|
||
# Connection parameters for the Transformer Mongo server (typically a local server). | ||
TRANSFORMER_MONGO_HOST="__REPLACE_ME__" | ||
TRANSFORMER_MONGO_PORT="__REPLACE_ME__" | ||
TRANSFORMER_MONGO_USERNAME="__REPLACE_ME__" | ||
TRANSFORMER_MONGO_PASSWORD="__REPLACE_ME__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
demo/metadata_migration/notebooks/migrate_10_5_6_to_10_8_0.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"metadata": {}, | ||
"cell_type": "markdown", | ||
"source": "# Migrate MongoDB database from `nmdc-schema` `v10.5.6` to `v10.8.0`", | ||
"id": "d05efc6327778f9c" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"cell_type": "markdown", | ||
"source": "There are no migrators associated with any schema changes between schema versions `v10.5.6` and `v10.8.0`. So, this notebook is a \"no op\" (i.e. \"no operation\").", | ||
"id": "b99d5924e825b9a2" | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"id": "initial_id", | ||
"metadata": { | ||
"collapsed": true, | ||
"jupyter": { | ||
"is_executing": true | ||
} | ||
}, | ||
"source": "# no op", | ||
"outputs": [], | ||
"execution_count": null | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 2 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython2", | ||
"version": "2.7.6" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
Oops, something went wrong.