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

DM-37173: Rewrite getURIs to use getManyURIs #760

Merged
merged 9 commits into from Dec 7, 2022
Merged

DM-37173: Rewrite getURIs to use getManyURIs #760

merged 9 commits into from Dec 7, 2022

Conversation

timj
Copy link
Member

@timj timj commented Dec 5, 2022

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Base: 85.32% // Head: 85.32% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (62cb279) compared to base (9ae3103).
Patch coverage: 93.33% of modified lines in pull request are covered.

❗ Current head 62cb279 differs from pull request most recent head c7209c3. Consider uploading reports for the commit c7209c3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #760      +/-   ##
==========================================
- Coverage   85.32%   85.32%   -0.01%     
==========================================
  Files         260      260              
  Lines       34539    34560      +21     
  Branches     5813     5819       +6     
==========================================
+ Hits        29472    29488      +16     
- Misses       3823     3826       +3     
- Partials     1244     1246       +2     
Impacted Files Coverage Δ
...hon/lsst/daf/butler/registry/interfaces/_opaque.py 75.00% <50.00%> (-3.95%) ⬇️
python/lsst/daf/butler/registry/opaque.py 95.71% <50.00%> (-2.82%) ⬇️
python/lsst/daf/butler/datastores/fileDatastore.py 81.42% <100.00%> (+0.06%) ⬆️
python/lsst/daf/butler/tests/_dummyRegistry.py 86.02% <100.00%> (+0.46%) ⬆️
tests/test_datastore.py 99.31% <100.00%> (ø)
python/lsst/daf/butler/core/logging.py 95.83% <0.00%> (+0.46%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

This allows Datastore to assume that a DatasetRef is always
hashable.
The DummyRegistry used for datastore tests needs to be able to rollback
inserts if the transaction fails.
Previously only datastore records were queried.
This lets us reuse the logic in the other method and also
ensures that the logic is the same in that we only look on
disk in "trust" mode when there is no corresponding datastore
record.
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little uneasy about the OpaqueTableStorage interface change, but I'd be content with more complete documentation to make it feel less like a carve-out for a particular testing class.

Otherwise looks good.

State that the transaction object is only needed if
a database is not going to roll back automatically.
@timj timj merged commit 9c43a39 into main Dec 7, 2022
@timj timj deleted the tickets/DM-37173 branch December 7, 2022 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants