-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Discover 2.0] fixes add filter and dismissible callout #5029
[Discover 2.0] fixes add filter and dismissible callout #5029
Conversation
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #5029 +/- ##
=======================================
Coverage 66.49% 66.50%
=======================================
Files 3403 3403
Lines 65023 65026 +3
Branches 10401 10401
=======================================
+ Hits 43235 43243 +8
+ Misses 19225 19214 -11
- Partials 2563 2569 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
@@ -8,6 +8,7 @@ import { BehaviorSubject, Subject, merge } from 'rxjs'; | |||
import { debounceTime } from 'rxjs/operators'; | |||
import { i18n } from '@osd/i18n'; | |||
import { useEffect } from 'react'; | |||
import { cloneDeep } from 'lodash'; |
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.
probably will be apart of a future "remove lodash" epic right
similar issue: #4349
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.
yep, this is how the legacy app did it and i didnt want to refactor this right now
@ashwin-pc I'm going to watch this bake in 2.x. Instead of waiting for main to finish and then opening and waiting another hour for 2.x, 2.10 |
* fixes add filter and dismissible callout Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * fixes filters applying when loading a saved search Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> --------- Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit b9b2b79) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fixes add filter and dismissible callout Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> * fixes filters applying when loading a saved search Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> --------- Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> (cherry picked from commit b9b2b79) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fixes add filter and dismissible callout * fixes filters applying when loading a saved search --------- (cherry picked from commit b9b2b79) Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fixes add filter and dismissible callout * fixes filters applying when loading a saved search --------- (cherry picked from commit b9b2b79) Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
This fixes 4 small issues:
Issues Resolved
fixes #5027
Screenshot
Screen.Recording.2023-09-14.at.3.41.10.PM.mov
Testing the changes
Pull down the changes and open the discover app. Adding filters in the side panel should work. The dismissable callout should stay dismissed after the page refresh.
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr