-
Notifications
You must be signed in to change notification settings - Fork 11
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
New config manager #760
New config manager #760
Conversation
2d48c2d
to
2f0d377
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #760 +/- ##
===========================================
- Coverage 79.72% 23.07% -56.66%
===========================================
Files 185 195 +10
Lines 12410 13333 +923
Branches 2162 2447 +285
===========================================
- Hits 9894 3076 -6818
- Misses 2263 10175 +7912
+ Partials 253 82 -171 ☔ View full report in Codecov by Sentry. |
Previously, the setup was confusing. Every symbol imported to module level was documented directly. If a ToC was added, sphinx would fail due to documentation generated twice for the same symbol. The new setup **requires** a dedicated autosummary selection of documented content. I think this is better. Often modules provide a lot of stuff, and direct documentation rendering on a single page is overwhelming. The explicit selection also allows for items to be excluded that are only there for technical or historical reasons. This allows for an overall more accessible documentation.
2ebc8bc
to
f861e76
Compare
1219605
to
3751fbb
Compare
a911859
to
c4c8e9f
Compare
We have no other choice, but to modify them. Even for the legacy adaptor, we do not want to maintain senseless complexities. The changes in the tests will document the exact differences.
This will eventually fix datalad#397
This PR has served its purpose and I will close it now. A config manager like it was proposed here is now part of datalad-core: datalad/datalad-core#19 If there is a desired to include the configuration manager adapter as a semi-long-lived transition helper, it could be taken from here and rebased on datalad-core. However, it is unclear to me if that is even useful. In any case, this PR has shown that it is possible. |
TODO:
Remaining issues for replacing the legacy
ConfigManager
with the actual newLegacyConfigManager
FAILED datalad_next/patches/tests/test_cli_configoverrides.py::test_cli_configoverrides - AttributeError: 'mappingproxy' object has no attribute 'update'
FAILED datalad_next/annexremotes/tests/test_archivist.py::test_archivist_retrieval - datalad.runner.exception.CommandError: CommandError: 'git -c diff.ignoreSubmo...