-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add structured search atom for filtering by results that differ #1463
Conversation
Staging deployment failed, so I can't test this live. |
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.
Looking forward to testing this, LGTM % nits
|
||
|
||
|
||
See [#meta-qualities](Meta qualities) above for more information on other |
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.
There's just different
now, but is flaky
one you want to add in the future?
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.
Yep :)
@@ -117,6 +117,15 @@ func (Link) Size() int { return 1 } | |||
// Size of Count is the sum of the sizes of its constituent ConcretQuery instances. | |||
func (c Count) Size() int { return size(c.Args) } | |||
|
|||
// Size of Is depends on the quality. |
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.
What are these Size()
methods for, what happens if they return the wrong value?
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.
The "size" of the query being performed; not sure exactly when it's used. @mdittmer could answer that.
api/query/concrete_query.go
Outdated
@@ -117,6 +117,15 @@ func (Link) Size() int { return 1 } | |||
// Size of Count is the sum of the sizes of its constituent ConcretQuery instances. | |||
func (c Count) Size() int { return size(c.Args) } | |||
|
|||
// Size of Is depends on the quality. | |||
func (q MetadataQuality) Size() int { | |||
switch q { |
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.
return 1
with a comment and/or assert would be better IMHO than scaffolding for extensions that may never come.
Co-Authored-By: Philip Jägenstedt <philip@foolip.org>
Yes, I was expected the comments still, fail :) |
Fixes #1460
Description
Adds handling of
is:different
atom, which will return true for rows where the size/cardinality of the set of result statuses is not 1.Review Information