Implement the 11.0.3
-to-11.1.0
migration notebook
#761
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this branch, I created a new migration notebook. This one can be used to migrate the Mongo database from conforming to schema version
11.0.3
to conforming to schema version11.1.0
.There is a caveat, though: Since the new schema hasn't been released yet, I don't know what its version number will actually be. I have assumed it will be
11.1.0
, but that may not be what it ends up being—in which case, I'll update this branch.Details
I also moved some notes from the notebook to the example config file. Finally, I changed the
import
section so that the migrator gets imported based upon a string variable. That will make it easier for us to transition from using a notebook to using a regular Python script (we can pass the string in as a CLI argument).Related issue(s)
Fixes #760
Related subsystem(s)
docs
directory)Testing
I tested the notebook locally against a copy of production data.
Documentation
docs
directory)Maintainability
study_id: str
)# TODO
or# FIXME
black
to format all the Python files I created/modified