Upgrade to Python 3.10 and MongoDB 7.0 #13
Merged
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.
This PR to another branch providing DBIO advanced searching--subject to its own PR (#12)--is provided to document some substantial changes that will allow #12 to be merged. That branch's unit tests were failing under GitHub Actions CI because Mongo 4.4 is no longer supported. A key focus of this PR, therefore, is to upgrade the use of MongoDB to v7.0, which in turn requires a migration to Python 3.10. There were previously a handful of deprecated bits of python not compliant with 3.10 (namely importing types from
collections
instead ofcollections.abc
). These have been fixed and the supporting docker containers have been updated accordingly. (This motivated updating the containers' base OS to Ubuntu 22.)A few other bug fixes are included in this PR regarding the use of
nistoar.web.webrecord
in the MIDAS web service. It also removes the on-the-fly generation of the freetext index needed by advanced searching; creating this index is now handled at theoar-docker
orchestration level (when the MongoDB instance comes up for the first time.)Finally, some files that are normally generated on the fly (version files) but were mistakenly checked in have been removed.