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

Update Runtime to work with Berkeley schema (i.e. nmdc-schema version v11.0.0) #718

Merged
merged 167 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
1c30df7
Update `nmdc-schema` to `11.0.0rc16` (a Berkeley schema RC)
eecavanna Jul 9, 2024
4fc23e5
Remove type hints preventing Runtime from booting with Berkeley schema
eecavanna Jul 9, 2024
5da7c1c
Merge pull request #579 from microbiomedata/578-fix-type-hint-issue-p…
eecavanna Jul 9, 2024
8e8f91f
Merge pull request #584 from microbiomedata/main
eecavanna Jul 9, 2024
4a31eb2
Update test_endpoints.py
aclum Jul 17, 2024
bf2bec7
Update nmdc_bsm-12-7mysck21.json
aclum Jul 17, 2024
b3f46dd
Update minter to extract first typecode in a multi-typecode pattern
eecavanna Jul 17, 2024
1c8149a
Update test_metadata.py
aclum Jul 17, 2024
d6d005a
Update test_metadata.py
aclum Jul 17, 2024
bab622f
Extract typecode-extraction code into helper function to facilitate t…
eecavanna Jul 17, 2024
b026daf
Clarify comments
eecavanna Jul 17, 2024
0070559
Use `black` to format code
eecavanna Jul 17, 2024
a8981ba
Merge branch 'berkeley' into berkeley-merge-main-into-berkeley-20240717
eecavanna Jul 18, 2024
21f276e
Merge pull request #599 from microbiomedata/berkeley-merge-main-into-…
eecavanna Jul 18, 2024
f6536a6
Merge pull request #596 from microbiomedata/580-fix-test-failing-inva…
eecavanna Jul 18, 2024
19dd7dc
Merge pull request #597 from microbiomedata/592-berkeley-update-minte…
eecavanna Jul 18, 2024
e7ebfff
Merge branch 'berkeley' into 625-resolve-conflicts-while-merging-main…
eecavanna Aug 8, 2024
b65cccb
Populate `type` field in documents used by changesheet test
aclum Aug 8, 2024
c904e17
Merge pull request #625 from microbiomedata/625-resolve-conflicts-whi…
eecavanna Aug 9, 2024
f3b2009
Document expectations regarding merging `main` into `berkeley` over t…
eecavanna Aug 13, 2024
a82e219
Get ORCID base URL (production vs. sandbox) from environment variable…
eecavanna Aug 13, 2024
f2e27aa
Use ORCID environment-specific JWKS values and clean up existing comm…
eecavanna Aug 13, 2024
af5260b
style: reformat
invalid-email-address Aug 13, 2024
1ddbf00
Merge pull request #639 from microbiomedata/638-berkeley-orcid_jwk-di…
eecavanna Aug 13, 2024
12d885a
Fix Failing Tests in Berkeley Branch (#621)
aclum Aug 20, 2024
81260eb
593 update workflow endpoints (#624)
PeopleMakeCulture Aug 21, 2024
90fe0b4
Merge branch 'berkeley' into 648-resolve-merge-conflicts
eecavanna Aug 23, 2024
89aa4c3
Merge pull request #648 from microbiomedata/648-resolve-merge-conflicts
eecavanna Aug 23, 2024
6283515
Update `nmdc-schema` to `11.0.0rc20` and sync transitive dependencies
eecavanna Aug 23, 2024
a9cccfa
Merge pull request #650 from microbiomedata/649-berkeley-update-nmdc-…
eecavanna Aug 23, 2024
ae7ce08
udpate GOLD translator to work with berkeley schema
sujaypatil96 Aug 28, 2024
4fbaab3
Merge branch 'berkeley' into gold-translator-berk-schema
sujaypatil96 Aug 28, 2024
abb541e
GOLD translator creates JSON conformant with berkeley schema
sujaypatil96 Aug 28, 2024
bf858cc
Add missing types to expected output
pkalita-lbl Aug 28, 2024
227e5ef
Replace OmicsProcessing mapping feature of SubmissionPortalTranslator…
pkalita-lbl Aug 28, 2024
b30ed75
Reenable test_get_dataset test function
pkalita-lbl Aug 28, 2024
2c300cc
Apply Black formatting
pkalita-lbl Aug 28, 2024
cd4f00b
Replace omics_processing with nucleotide_sequencing in Dagster parame…
pkalita-lbl Aug 29, 2024
5b842ad
Explicitly use list for associated_studies
pkalita-lbl Aug 29, 2024
f921e4a
Merge pull request #657 from microbiomedata/issue-655-submission-port…
pkalita-lbl Aug 29, 2024
7974db4
Merge pull request #661 from microbiomedata/main
eecavanna Aug 30, 2024
a9c7046
migrate submission portal translator
sujaypatil96 Aug 30, 2024
51e1b2a
Merge branch 'main' into berkeley
dwinston Sep 3, 2024
e69ac0d
init: search across PlannedProcess-containing collections
dwinston Sep 3, 2024
0033969
style: reformat
invalid-email-address Sep 3, 2024
c4bf067
Update nmdc_runtime/api/endpoints/find.py
dwinston Sep 6, 2024
85f93a8
refactor: clarify function name
dwinston Sep 6, 2024
dd8eca2
style: reformat
invalid-email-address Sep 6, 2024
315c2fc
refactor: decouple logic and optimization ; renaming
dwinston Sep 6, 2024
96658b0
fix: handle no-data case ; search correct collections
dwinston Sep 6, 2024
ff42108
Add test targeting `/planned_processes/{p_p_id}` endpoint
eecavanna Sep 7, 2024
3a40231
style: reformat
invalid-email-address Sep 7, 2024
ac9f9f6
Clarify docstring
eecavanna Sep 7, 2024
66b36e9
Merge pull request #666 from microbiomedata/653-planned_process_find
eecavanna Sep 7, 2024
ff4017b
add multple Out() to get_gold_study_pipeline_inputs() @op
sujaypatil96 Sep 16, 2024
32103e3
update _get_instrument() in gold translator
sujaypatil96 Sep 16, 2024
afe1c16
update test_get_instrument() in gold translator
sujaypatil96 Sep 16, 2024
34db41a
prompt study_category default in repository.py for submission portal …
sujaypatil96 Sep 16, 2024
65b8324
GOLD NMDC instrument map should be fetched by @op
sujaypatil96 Sep 17, 2024
3214ffb
Merge pull request #662 from microbiomedata/submission-portal-berk-sc…
sujaypatil96 Sep 17, 2024
c8a0477
Merge pull request #656 from microbiomedata/gold-translator-berk-schema
sujaypatil96 Sep 17, 2024
226cb23
updates to test_endpoints.py for berkeley
aclum Sep 17, 2024
768535e
patch GOLD NMDC instrument mapping info in test
sujaypatil96 Sep 17, 2024
3206b65
Update test.Dockerfile
aclum Sep 17, 2024
eb76b3b
update aggregation records to include type
aclum Sep 17, 2024
584dd7a
bump nmdc-schema to 11.0.0rc22
aclum Sep 17, 2024
4ba92ca
pass mock_gold_nmdc_instrument_map_df directly to GoldStudyTranslator…
sujaypatil96 Sep 18, 2024
7742261
Skip running tests that target NEON translators
eecavanna Sep 18, 2024
7a6cd98
Skip 4 failing tests in `test_gold_api_ops.py`
eecavanna Sep 18, 2024
f31a119
Merge pull request #676 from microbiomedata/675-berkeley-test_endpoin…
eecavanna Sep 18, 2024
24b7f00
Update Swagger tag descriptions to match Berkeley API GUI how-to guide
eecavanna Sep 18, 2024
5c080db
Remove buggy expand/collapse functionality within metadata descriptions
eecavanna Sep 18, 2024
7a386c5
Merge pull request #682 from microbiomedata/646-berkeley-synchronize-…
eecavanna Sep 18, 2024
013924f
Update test_endpoints.py
aclum Sep 18, 2024
2b30e2d
Update test_endpoints.py
aclum Sep 18, 2024
b7f27ad
Update test_endpoints.py
aclum Sep 18, 2024
aedde87
Update test_endpoints.py
aclum Sep 18, 2024
85dd867
Update test_endpoints.py
aclum Sep 18, 2024
952e41f
Restore missing hyperlinks and remove broken image reference
eecavanna Sep 18, 2024
1223c94
Remove the word "activities" from description of Runtime
eecavanna Sep 18, 2024
dedf13f
Merge pull request #686 from microbiomedata/685-berkeley-feedback-on-…
eecavanna Sep 18, 2024
3448588
Remove pytest skip for test_submit_workflow_activites
aclum Sep 18, 2024
db34a13
Merge pull request #684 from microbiomedata/fix-test_submit_workflow_…
eecavanna Sep 19, 2024
0f23ea3
Restore tests that were being skipped by mistake (oops)
eecavanna Sep 19, 2024
da278d5
Merge pull request #688 from microbiomedata/687-berkeley-tests-in-3-f…
eecavanna Sep 19, 2024
32d6b55
fix tests for GOLD API client in runtime
sujaypatil96 Sep 19, 2024
eca44a8
Merge pull request #692 from microbiomedata/issue-678-fix-tests-in-te…
sujaypatil96 Sep 19, 2024
9ba751c
Merge pull request #693 from microbiomedata/main
eecavanna Sep 19, 2024
ea17ec3
Determine class hierarchy per-document instead of per-collection
eecavanna Sep 19, 2024
1c5788d
Optimization: Process documents in batches according to their `type`
eecavanna Sep 20, 2024
64c9838
style: reformat
invalid-email-address Sep 20, 2024
61fc984
Fix bug in `log.info` statement
eecavanna Sep 20, 2024
11e7bed
Omit invalid `kwarg` key (oops)
eecavanna Sep 20, 2024
06b002d
Clarify ambiguous log message
eecavanna Sep 20, 2024
6bb4524
Add log message showing distinct "type" values in collection
eecavanna Sep 20, 2024
fbcc65f
refactor notebook for berkeley schema
Sep 20, 2024
5581fca
update collection names getter to include functional_annotation_agg
Sep 20, 2024
d098620
Merge pull request #695 from microbiomedata/576-berkeley-updates-ref-…
PeopleMakeCulture Sep 20, 2024
4f1ee79
Merge pull request #694 from microbiomedata/690B-berkeley-dagster-job…
eecavanna Sep 20, 2024
d99b6f7
Update field name to be consistent with Berkeley schema
eecavanna Sep 20, 2024
9cb5850
Merge pull request #697 from microbiomedata/689-berkeley-api-endpoint…
eecavanna Sep 20, 2024
f5ea5a7
migrate NEON soil translator to be conformant with berkeley schema
sujaypatil96 Sep 25, 2024
ad15a8c
style: reformat
invalid-email-address Sep 25, 2024
3476502
fix tests for migrated NEON soil data translator
sujaypatil96 Sep 26, 2024
4d127f6
migrated NEON benthic translator to be conformant with berkeley schema
sujaypatil96 Sep 26, 2024
f0051d3
prev commit had test, this one has the migrated translator
sujaypatil96 Sep 26, 2024
e225f56
style: reformat
invalid-email-address Sep 26, 2024
0a306fe
migrated NEON surface water translator to be conformant with berkeley…
sujaypatil96 Sep 27, 2024
ebd5cb7
Merge branch 'migrate-neon-translators-berk-schema' of https://github…
sujaypatil96 Sep 27, 2024
e6ec6c9
Remove trailing whitespace
eecavanna Sep 27, 2024
2fad261
fix typo in _translate_nucleotide_sequencing() in NEON benthic transl…
sujaypatil96 Sep 27, 2024
1f66c59
udpate docstring in _translate_data_object()
sujaypatil96 Sep 27, 2024
9604afd
Clarify sentence
eecavanna Sep 27, 2024
f84eb77
Delete extraneous whitespace
eecavanna Sep 27, 2024
401a655
Merge pull request #706 from microbiomedata/main
eecavanna Sep 27, 2024
6d700eb
Restore extraneous whitespace (to trigger a GHA run)
eecavanna Sep 27, 2024
45df430
Merge branch 'berkeley' into migrate-neon-translators-berk-schema
sujaypatil96 Sep 27, 2024
54551c0
update test_get_database() in NEON benthic translator tests
sujaypatil96 Sep 27, 2024
b48a0d7
Fix bug where one document in each collection is omitted from `alldocs`
eecavanna Sep 28, 2024
6cec90d
Clarify comment
eecavanna Sep 28, 2024
33df244
Clarify comment even more
eecavanna Sep 28, 2024
c682ddc
Merge pull request #709 from microbiomedata/708-berkeley-collection-a…
eecavanna Sep 28, 2024
4700170
Merge branch 'berkeley' into migrate-neon-translators-berk-schema
sujaypatil96 Sep 30, 2024
4a4398f
added term mapping for lake inlet
sujaypatil96 Sep 30, 2024
5193957
remove mapping env_local_scale mapping for reach in NEON SW translator
sujaypatil96 Sep 30, 2024
11be5d9
Merge pull request #701 from microbiomedata/migrate-neon-translators-…
sujaypatil96 Sep 30, 2024
29a3154
Update some tests to tolerate remnants of aborted test runs
eecavanna Sep 28, 2024
553c794
Refrain from skipping test that targets `materialize_alldocs` function
eecavanna Oct 3, 2024
1e7a161
Include required `type` field in test documents
eecavanna Oct 3, 2024
c9b1eac
Assert more details about the `alldocs` collection
eecavanna Oct 3, 2024
e0a14fc
Seed database with documents about which we know all details
eecavanna Oct 3, 2024
16a5611
Make test be more direct and more concise
eecavanna Oct 3, 2024
40da678
Clarify comments and fix typo in one of them
eecavanna Oct 3, 2024
4863d53
Update test_metadata.py
aclum Oct 4, 2024
5450c26
Update changesheet-without-separator3.tsv
aclum Oct 4, 2024
e85ac61
Update changesheet-without-separator3.tsv
aclum Oct 4, 2024
ac38fca
Update changesheet-without-separator3.tsv
aclum Oct 4, 2024
12224e3
Update test_metadata.py
aclum Oct 4, 2024
f011441
Update changesheet-without-separator3.tsv
aclum Oct 4, 2024
260742d
Update test_metadata.py
aclum Oct 4, 2024
fb00755
Update changesheet-array-item-nested-attributes.tsv
aclum Oct 4, 2024
97929b1
Update test_metadata.py
aclum Oct 4, 2024
3575335
Update changesheet-update-pi-websites.tsv
aclum Oct 4, 2024
bb12fc6
Update test_metadata.py
aclum Oct 4, 2024
4776020
Update changesheet-array-item-nested-attributes.tsv
aclum Oct 4, 2024
482884b
Merge pull request #715 from microbiomedata/713-berkeley-fortify-test…
eecavanna Oct 4, 2024
ce8dcae
Create study_no_credit_associations.json
aclum Oct 4, 2024
4366b10
Update test_metadata.py
aclum Oct 4, 2024
ebf89cf
Update test_metadata.py
aclum Oct 4, 2024
b1db22b
Update changesheet-array-item-nested-attributes.tsv
aclum Oct 4, 2024
58ee180
Update study_no_credit_associations.json
aclum Oct 4, 2024
4563d4c
Update test_metadata.py
aclum Oct 4, 2024
dcae0a5
Update test_metadata.py
aclum Oct 5, 2024
765c687
Update test_metadata.py
aclum Oct 5, 2024
a0c1096
Update changesheet-update-pi-websites.tsv
aclum Oct 5, 2024
ebb5333
Update test_metadata.py
aclum Oct 5, 2024
1ad8fa9
Update test_metadata.py
aclum Oct 5, 2024
1853e26
Update changesheet-update-pi-websites.tsv
aclum Oct 5, 2024
aa7d967
Update test_metadata.py
aclum Oct 5, 2024
b75db98
Update test_metadata.py
aclum Oct 5, 2024
cf57560
Update test_metadata.py
aclum Oct 5, 2024
fa194bb
Merge pull request #716 from microbiomedata/oct-24-hackathon
eecavanna Oct 5, 2024
32ec30c
Update Berkeley migration notebook to use `nmdc-schema` package v11.0.0
eecavanna Oct 7, 2024
61a68ae
Rename migration notebooks to be consistent with schema version numbers
eecavanna Oct 7, 2024
786f535
Update `nmdc-schema` package to `11.0.0` and synchronize transient deps
eecavanna Oct 7, 2024
4726e34
Remove documentation blurb about `berkeley` branch
eecavanna Oct 7, 2024
e0edb06
Delete GitHub Actions workflow specific to `berkeley` branch
eecavanna Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ NERSC_USERNAME=replaceme
ORCID_NMDC_CLIENT_ID=replaceme
ORCID_NMDC_CLIENT_SECRET=replaceme

# Base URL (without a trailing slash) at which the Runtime can access an instance of ORCID.
# Note: For the production instance of ORCID, use: https://orcid.org (default)
# For the sandbox instance of ORCID, use: https://sandbox.orcid.org
ORCID_BASE_URL=https://orcid.org

INFO_BANNER_INNERHTML='Announcement: Something important is about to happen. If you have questions, please contact <a href="mailto:[email protected]">[email protected]</a>.'
101 changes: 0 additions & 101 deletions .github/workflows/build-and-release-to-spin-berkeley.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
{
"metadata": {},
"cell_type": "markdown",
"source": "# Migrate MongoDB database from `nmdc-schema` `v10.5.6` to `v10.8.0`",
"source": "# Migrate MongoDB database from `nmdc-schema` `v10.4.0` to `v10.9.1`",
"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\").",
"source": "There are no migrators associated with any schema changes between schema versions `v10.4.0` and `v10.9.1`. So, this notebook is a \"no op\" (i.e. \"no operation\").",
"id": "b99d5924e825b9a2"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"cell_type": "markdown",
"id": "initial_id",
"metadata": {
"collapsed": true
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"source": [
"# Migrate MongoDB database from `nmdc-schema` `v10.8.0` to `v11.0.0`"
"# Migrate MongoDB database from `nmdc-schema` `v10.9.1` to `v11.0.0`"
]
},
{
Expand All @@ -17,7 +20,7 @@
"source": [
"## Introduction\n",
"\n",
"This notebook will be used to migrate the database from `nmdc-schema` `v10.8.0` ([released](https://github.com/microbiomedata/nmdc-schema/releases/tag/v10.8.0) August 21, 2024) to `v11.0.0` (i.e. the initial version of the so-called \"Berkeley schema\").\n",
"This notebook will be used to migrate the database from `nmdc-schema` `v10.9.1` ([released](https://github.com/microbiomedata/nmdc-schema/releases/tag/v10.9.1) October 7, 2024) to `v11.0.0` (i.e. the initial version of the so-called \"Berkeley schema\").\n",
"\n",
"Unlike previous migrators, this one does not pick and choose which collections it will dump. There are two reasons for this: (1) migrators no longer have a dedicated `self.agenda` dictionary that indicates all the collections involved in the migration; and (2) this migration is the first one that involves creating, renaming, and dropping any collections; none of which are things that the old `self.agenda`-based system was designed to handle. So, instead of picking and choosing collections, this migrator **dumps them all.**"
]
Expand Down Expand Up @@ -106,12 +109,16 @@
"cell_type": "code",
"id": "e25a0af308c3185b",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"scrolled": true
},
"source": [
"%pip install --upgrade pip\n",
"%pip install -r requirements.txt\n",
"%pip install nmdc-schema==11.0.0rc22"
"%pip install nmdc-schema==11.0.0"
],
"outputs": [],
"execution_count": null
Expand Down Expand Up @@ -273,7 +280,10 @@
"cell_type": "markdown",
"id": "bc387abc62686091",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"### Create JSON Schema validator\n",
Expand All @@ -285,7 +295,10 @@
"cell_type": "code",
"id": "5c982eb0c04e606d",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"nmdc_jsonschema: dict = get_nmdc_jsonschema_dict(variant=SchemaVariantIdentifier.nmdc_materialized_patterns)\n",
Expand Down Expand Up @@ -367,23 +380,23 @@
"execution_count": null
},
{
"metadata": {},
"cell_type": "markdown",
"id": "7f9c87de6fb8530c",
"metadata": {},
"source": [
"### Delete obsolete dumps from previous migrations\n",
"\n",
"Delete any existing dumps before we create new ones in this notebook. This is so the dumps you generate with this notebook do not get merged with any unrelated ones."
],
"id": "7f9c87de6fb8530c"
]
},
{
"metadata": {},
"cell_type": "code",
"id": "6a949d0fcb4b6fa0",
"metadata": {},
"source": [
"!rm -rf {cfg.origin_dump_folder_path}\n",
"!rm -rf {cfg.transformer_dump_folder_path}"
],
"id": "6a949d0fcb4b6fa0",
"outputs": [],
"execution_count": null
},
Expand All @@ -402,7 +415,9 @@
{
"cell_type": "code",
"id": "da530d6754c4f6fe",
"metadata": {},
"metadata": {
"scrolled": true
},
"source": [
"# Dump all collections from the \"origin\" database.\n",
"shell_command = f\"\"\"\n",
Expand Down Expand Up @@ -435,7 +450,9 @@
{
"cell_type": "code",
"id": "79bd888e82d52a93",
"metadata": {},
"metadata": {
"scrolled": true
},
"source": [
"# Restore the dumped collections to the \"transformer\" MongoDB server.\n",
"shell_command = f\"\"\"\n",
Expand Down Expand Up @@ -474,7 +491,9 @@
{
"cell_type": "code",
"id": "9c89c9dd3afe64e2",
"metadata": {},
"metadata": {
"scrolled": true
},
"source": [
"# Instantiate a MongoAdapter bound to the \"transformer\" database.\n",
"adapter = MongoAdapter(\n",
Expand Down Expand Up @@ -524,7 +543,7 @@
"for collection_name in ordered_collection_names:\n",
" collection = transformer_mongo_client[\"nmdc\"][collection_name]\n",
" num_documents_in_collection = collection.count_documents({})\n",
" print(f\"Validating collection {collection_name} ({num_documents_in_collection} documents)\")\n",
" print(f\"Validating collection {collection_name} ({num_documents_in_collection} documents)\", end=\"\\t\") # no newline\n",
"\n",
" for document in collection.find():\n",
" # Validate the transformed document.\n",
Expand All @@ -541,7 +560,9 @@
" #\n",
" document_without_underscore_id_key = {key: value for key, value in document.items() if key != \"_id\"}\n",
" root_to_validate = dict([(collection_name, [document_without_underscore_id_key])])\n",
" nmdc_jsonschema_validator.validate(root_to_validate) # raises exception if invalid"
" nmdc_jsonschema_validator.validate(root_to_validate) # raises exception if invalid\n",
"\n",
" print(f\"Done\")"
],
"outputs": [],
"execution_count": null
Expand All @@ -559,7 +580,9 @@
{
"cell_type": "code",
"id": "db6e432d",
"metadata": {},
"metadata": {
"scrolled": true
},
"source": [
"# Dump the database from the \"transformer\" MongoDB server.\n",
"shell_command = f\"\"\"\n",
Expand All @@ -583,7 +606,10 @@
"cell_type": "markdown",
"id": "997fcb281d9d3222",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"### Create a bookkeeper\n",
Expand Down Expand Up @@ -664,7 +690,9 @@
{
"cell_type": "code",
"id": "1dfbcf0a",
"metadata": {},
"metadata": {
"scrolled": true
},
"source": [
"# Load the transformed collections into the origin server, replacing any same-named ones that are there.\n",
"shell_command = f\"\"\"\n",
Expand All @@ -691,7 +719,10 @@
"cell_type": "markdown",
"id": "ca5ee89a79148499",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"### Indicate that the migration is complete\n",
Expand All @@ -703,7 +734,10 @@
"cell_type": "code",
"id": "d1eaa6c92789c4f3",
"metadata": {
"collapsed": false
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"bookkeeper.record_migration_event(migrator=migrator, event=MigrationEvent.MIGRATION_COMPLETED)"
Expand Down Expand Up @@ -740,11 +774,19 @@
],
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"id": "037db214-ea76-46bf-bb6a-bf1ff9b28a72",
"metadata": {},
"source": [],
"outputs": [],
"execution_count": null
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand Down
Loading
Loading