-
Notifications
You must be signed in to change notification settings - Fork 898
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 a new flag in timefilter service to disable time filter #8981
base: main
Are you sure you want to change the base?
add a new flag in timefilter service to disable time filter #8981
Conversation
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8981 +/- ##
==========================================
- Coverage 60.88% 60.88% -0.01%
==========================================
Files 3802 3802
Lines 91070 91084 +14
Branches 14374 14376 +2
==========================================
+ Hits 55444 55452 +8
- Misses 32085 32089 +4
- Partials 3541 3543 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
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.
how come? apologies little bit defensive about the super date picker render because it's a source of a number of bugs due to the different variations of state it will be in. does this also mean if i expand query assist in discover and navigate to dashboards is the timefilter disabled still?
Hey @kavilla, no worry, I totally understand your concern.
In this particular case(assistant toggle), the state is reset whenever the query assistant bar unmount. So the state won't persist when navigated to dashboards. And back to the question why introducing a new API in timefilter service?
It ends up with spreading a local state to multiple component which is even a worse design in my opinion. So I decided to have it in a central place where all the components have access to. I may not be the discover profession, really appreciate if you have any suggestions :) |
Description
Update query assistant UX:
Issues Resolved
Screenshot
Screen.Recording.2024-11-27.at.15.19.49.mov
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration