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

fix: added time range key for query and local storage handling #6009

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

vikrantgupta25
Copy link
Collaborator

@vikrantgupta25 vikrantgupta25 commented Sep 18, 2024

Summary

  • fix: add missing selected time range variables #5714 in this PR we started respecting the time range in the variables query. so when time range changes the options returned changes.
  • also the time parameters were not present in query key so the API was not getting triggered as well.
  • now since options changes and current selected is ALL the local storage values needs to be updated.

Related Issues / PR's

Screenshots

NA

Affected Areas and Manually Tested Areas

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the bug Something isn't working label Sep 18, 2024
YounixM
YounixM previously approved these changes Sep 18, 2024
SagarRajput-7
SagarRajput-7 previously approved these changes Sep 18, 2024
YounixM
YounixM previously approved these changes Sep 18, 2024
@srikanthccv srikanthccv self-requested a review September 18, 2024 20:37
@srikanthccv
Copy link
Member

In the result query, I could see two kinds of issues: 1. the list of values selected for the variable is different, and 2. the value for multi-select is sent as a single string instead of a list of strings with one item. Does this change fix both of them?

@vikrantgupta25
Copy link
Collaborator Author

Does this change fix both of them?

yes both of them have been fixed. let me know when you have tested the same. thank you 🙌

@srikanthccv
Copy link
Member

LGTM.

Things tested

  • the multi-select single selection
  • global time change and the variables change
  • the panel final query_range call with correct variable values.

@vikrantgupta25 vikrantgupta25 merged commit 2f7d208 into develop Sep 19, 2024
12 of 13 checks passed
@vikrantgupta25 vikrantgupta25 deleted the dependency-variables-issue branch September 19, 2024 13:53
srikanthccv pushed a commit that referenced this pull request Sep 19, 2024
* fix: added time range key for query and local storage handling

* chore: fix jest test cases

* fix: send single element array for only variable option as well

* fix: intermediate stale data should not be shown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DO NOT MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants