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-37938: additional spatial constraint query fixes and testing #787
Conversation
5a517e4
to
21ed0d5
Compare
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the extensive tests.
This provides a new approach to testing registry queries that won't require as much work setting up appropriate test data and inspecting it to independently determine expected query results, and I'm looking forward to adding more tests here on future tickets; so far this just focuses on the spatial constraint queries that we apparently had particularly poor test coverage previously, leading to lots of breakage on DM-31725. Some of these tests are expected to fail right now, but will be fixed shortly.
There was a bit of a mess here previously - two nearly-identical blocks for deciding which columns would be included in the query, and one of them going unused; I think that's relic of a poorly-resolved rebase conflict somewhere in the long development of DM-31725.
There's currently no high-level way to populate these arguments to our lower-level query classes; the only way one can currently do temporal constraints is to write them out in the 'where' argument, and that doesn't use any of this. I've made this a separate commit because I think we may want to revert it after we've got a public interface (possibly on Butler rather than Registry) that's designed to support all of the things the daf_relation query system could now do. But for now it's just dead weight.
7838239
to
80c95a8
Compare
Codecov ReportBase: 85.49% // Head: 85.51% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #787 +/- ##
==========================================
+ Coverage 85.49% 85.51% +0.02%
==========================================
Files 265 266 +1
Lines 35047 35075 +28
Branches 6004 7358 +1354
==========================================
+ Hits 29964 29996 +32
+ Misses 3768 3766 -2
+ Partials 1315 1313 -2
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. |
See also lsst/daf_relation#6
Checklist
doc/changes