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-42324: Make sure bands exist in DCR subfilter registration test. #876

Merged
merged 1 commit into from Jan 8, 2024

Conversation

TallJimbo
Copy link
Member

It shouldn't be possible to register a subfilter that references a band that doesn't exist; this is a variant of DM-40818.

If one does manage to register such a subfilter, querying for it with a band constraint (as the CLI script does) is ill-defined - should it return no records since the band does not exist? Or should it return the referencing subfilter recoreds anyway? The previous test assumed the latter, but changes to daf_butler on this ticket are changing the behavior to the former. Registering the band (by registering an instrument and hence some physical_filters) first here avoids that ill-defined behavior, and it should make this test continue to work when DM-40818 is done.

It shouldn't be possible to register a subfilter that references a band
that doesn't exist; this is a variant of DM-40818.

*If* one does manage to register such a subfilter, querying for it with
a band constraint (as the CLI script does) is ill-defined - should it
return no records since the band does not exist?  Or should it return
the referencing subfilter recoreds anyway?  The previous test assumed
the latter, but changes to daf_butler on this ticket are changing the
behavior to the former.  Registering the band (by registering an
instrument and hence some physical_filters) first here avoids that
ill-defined behavior, and it should make this test continue to work
when DM-40818 is done.
@TallJimbo TallJimbo merged commit 3435824 into main Jan 8, 2024
2 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-42324 branch January 8, 2024 19:13
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