-
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(variable_hydration): limiting variable hydration to changing variables #18071
Conversation
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.
its real hard to reason about the repercussions about this stuff. can we have a test that illustrates a dependent query being updated when the source query changes while the others stay the same?
928f4c6
to
c9f1eff
Compare
// use an ID array to reduce the chance of reference errors | ||
const varIDs = variables.map(v => v.id) | ||
// create an array of IDs to reference later | ||
const graphIDs = [] |
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.
note for self: this was because Set.prototype.has
compares by reference, which we dont guarantee in an immutable kind of world
// use an ID array to reduce the chance of reference errors | ||
const varIDs = variables.map(v => v.id) | ||
// create an array of IDs to reference later | ||
const graphIDs = [] |
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.
nit for Ari: this should be an object for a faster lookup on line 148, but i can't imagine the search space being very large, so it's not a blocker
… triggering onSelectValue for VariableDropdown
…tion purposes and added some filter logic to subgraphs
…test. Need to write unit tests to validate work
80d9205
to
ba108df
Compare
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.
functionality was written quickly, and i'm pretty sure we've narrowed this down to a bug, wrote a test, and the best we can do now is launch it to see what happens
Closes https://github.com/influxdata/idpe/issues/7030
Problem
This PR aims to address the issue of overly hydrating variables when a variable selection is made.
Solution
The solution to this is twofold:
Here's how these changes impact the network requests:
UI Tweak
This PR also includes a minor UI tweak that may have been the result of the clockface pendulum update.
Previous:
Now: