-
Notifications
You must be signed in to change notification settings - Fork 15
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
AdHocFiltersVariable/GroupByVariable: Pass time range to getTagKeys calls #665
Conversation
Looks good, but given that both |
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.
+1 to dominik's comment, let's make sure it's passed everywhere else we're just gonna have a future request to add it. so:
- adhoc filters
getTagKeys
β - adhoc filters
getTagValues
β - groupby
getTagKeys
β groupbynever calledgetTagValues
@@ -203,9 +203,10 @@ export class AdHocFiltersVariable | |||
} | |||
|
|||
const otherFilters = this.state.filters.filter((f) => f.key !== currentKey).concat(this.state.baseFilters ?? []); | |||
const timeRange = sceneGraph.getTimeRange(this).state.value; | |||
const queries = this._getSceneQueries(); | |||
// @ts-expect-error TODO: remove this once 10.4.0 is released |
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.
not strictly related to this PR, but can we remove this TODO now? π€
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 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.
LE: Nope. Updating @grafana/
packages to 10.4.x actually breaks a lot of tests. We'll need another PR specific to that.
@ashharrison90 @dprokop - The only question is: are we calling |
6d8b086
to
db36798
Compare
@bfmatei ah perfect, didn't even notice the and no, i don't think we ever call |
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.
lgtm π
π PR was released in |
Time range is not passed to
getTagKeys
calls currently but we actually need it to be passed.π¦ Published PR as canary version:
4.1.1--canary.665.8521264218.0
β¨ Test out this PR locally via:
npm install @grafana/scenes@4.1.1--canary.665.8521264218.0 # or yarn add @grafana/scenes@4.1.1--canary.665.8521264218.0