-
Notifications
You must be signed in to change notification settings - Fork 13
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-44362: Fix unit test for spatial overlaps #1032
Conversation
@TallJimbo, I tried few different ideas and ended up with a special visitor that rewrites predicates which use non-common skypix. A complicated thing is that it also needs to override dimension group in the tree to replace skypix there too. It fixes that particular query that was broken in the unit test with |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1032 +/- ##
==========================================
- Coverage 89.37% 89.36% -0.01%
==========================================
Files 359 359
Lines 45506 45511 +5
Branches 9352 9354 +2
==========================================
+ Hits 40670 40673 +3
- Misses 3535 3536 +1
- Partials 1301 1302 +1 ☔ View full report in Codecov by Sentry. |
We talked about this at the Tuesday standup (while you were on vacation), and given the new complexity that seems to be required, I think we should really consider deprecating this functionality instead, since I think the primary reason it's important in the old query system is as a workaround for general geometry overlap queries, and we can do that better in the new query system if we do it more directly. |
I'm ok with deprecation, but does that mean that we still need to support until next release? Or is it fine if it's broken for remote butler only? |
I think it's fine for it to be broken for RemoteButler only for now; the deprecation period will constrain the timeline for having the DirectButler's old query methods delegate to the new system, but there are other differences we plan to deprecate in that category already. Those are being tracked on DM-43587, and I've added this issue there as well. |
fd3d28a
to
26a7ad9
Compare
Using non-common skypix is going to be deprecated in favor of a direct use of regions. New query system raises NotImplementedError for non-common skypix, this patch replaces that exception with a new exception class to support exception propagation from remote butler to client. `test_skypix_constraint_queries` unit test is updated to handle exceptions from the new query system. When direct butler switches to the new query system, that test can be removed or changed to always expect the exceptions.
26a7ad9
to
61684c3
Compare
Using non-common skypix is going to be deprecated in favor of a
direct use of regions. New query system raises NotImplementedError
for non-common skypix, this patch replaces that exception with
a new exception class to support exception propagation from remote
butler to client.
test_skypix_constraint_queries
unit test is updated to handleexceptions from the new query system. When direct butler switches
to the new query system, that test can be removed or changed to
always expect the exceptions.
Checklist
doc/changes
configs/old_dimensions