-
Notifications
You must be signed in to change notification settings - Fork 917
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] Fix refresh on index #8121
[Discover] Fix refresh on index #8121
Conversation
@@ -95,7 +105,8 @@ export const useIndexPattern = (services: DiscoverViewServices) => { | |||
store, | |||
toastNotifications, | |||
uiSettings, | |||
query?.dataset, | |||
query.dataset, |
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.
query will never be undefined?
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.
yes, it will be default query if not passed in
Signed-off-by: abbyhu2000 <[email protected]>
3d2472a
to
0f8dff1
Compare
Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 1d36fd3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 1d36fd3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8121 +/- ##
==========================================
- Coverage 63.84% 63.84% -0.01%
==========================================
Files 3738 3738
Lines 88701 88704 +3
Branches 13794 13795 +1
==========================================
- Hits 56630 56629 -1
- Misses 31474 31478 +4
Partials 597 597
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
(cherry picked from commit 1d36fd3) Signed-off-by: abbyhu2000 <[email protected]> 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>
(cherry picked from commit 1d36fd3) Signed-off-by: abbyhu2000 <[email protected]> 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
Fix refresh when selecting an index. Previously, discover will be stuck on loading.
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration