-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix: query builder groups on columns, not tag values #16992
fix: query builder groups on columns, not tag values #16992
Conversation
55bd7d0
to
98750c4
Compare
...activeQueryTags[2].values, | ||
]) | ||
}) | ||
}) |
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.
this test was testing the wrong thing
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.
can we test the right thing?
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.
can we test the right thing?
@121watts only cause you asked https://github.com/influxdata/influxdb/pull/16992/files#diff-c432c510f4c140978dbe371ff3e9142dR93
98750c4
to
25b8387
Compare
@@ -49,6 +48,9 @@ import { | |||
|
|||
const SEARCH_DEBOUNCE_MS = 500 | |||
|
|||
// We don't show these columns in results but they're able to be grouped on |
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.
This is not always true. There are scenarios where a _start
and _stop
are not not columns in a query response.
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.
Russ mentioned that, but it seems like in the context of query builder, it's safe to assume we can group on those columns? I'll change the comment
...activeQueryTags[2].values, | ||
]) | ||
}) | ||
}) |
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.
can we test the right thing?
8fbf745
to
3a31f0a
Compare
3a31f0a
to
215962a
Compare
Closes #16783
A picture is worth a thousand words, so here:
WRONG:

Right:
