Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ REFACTOR: Remove
QueryManager
(#5101)
The `AbstractQueryManager` class and its implementations, `DjangoQueryManager` and `SqlaQueryManager`, is an odd mix of a few methods, with no real conceptual purpose; essentially a catch-all for things that didn't have another home. In this PR, the classes are removed and their methods are reassigned as appropriate: * `get_creation_statistics` has been moved to the `BackendQueryBuilder` * `get_duplicate_uuids` and `apply_new_uuid_mapping` have been moved to `aiida/backends/general/migrations/duplicate_uuids.py`. They were defined both in `aiida/backends/general/migrations/utils.py` as well as in `aiida/manage/database/integrity/duplicate_uuid.py`. Note that the former had been adapted after the repository redesign, but the latter was omitted by mistake. The latter is now correctly updated to contain compatibility for the new repository. Since the methods directly use SQL, they cannot be easily abstracted and moved to the `BackendQueryBuilder`. * `get_bands_and_parents_structure` has been moved to the ORM module in `aiida/orm/nodes/data/array/bands.py`.
- Loading branch information