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

[Discover] Fix refresh on index #8121

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

abbyhu2000
Copy link
Member

Description

Fix refresh when selecting an index. Previously, discover will be stuck on loading.

Issues Resolved

Screenshot

Testing the changes

Changelog

  • fix: Fix refresh on index

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@@ -95,7 +105,8 @@ export const useIndexPattern = (services: DiscoverViewServices) => {
store,
toastNotifications,
uiSettings,
query?.dataset,
query.dataset,
Copy link
Member

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?

Copy link
Member Author

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

kavilla
kavilla previously approved these changes Sep 10, 2024
Signed-off-by: abbyhu2000 <[email protected]>
@abbyhu2000 abbyhu2000 merged commit 1d36fd3 into opensearch-project:main Sep 10, 2024
53 of 54 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
Signed-off-by: abbyhu2000 <[email protected]>
(cherry picked from commit 1d36fd3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 10, 2024
Signed-off-by: abbyhu2000 <[email protected]>
(cherry picked from commit 1d36fd3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 63.84%. Comparing base (8ecba3a) to head (0f8dff1).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ication/view_components/utils/use_index_pattern.ts 0.00% 5 Missing ⚠️
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              
Flag Coverage Δ
Linux_1 29.96% <0.00%> (-0.01%) ⬇️
Linux_2 58.79% <ø> (ø)
Linux_3 40.26% <0.00%> (-0.01%) ⬇️
Linux_4 31.20% <ø> (ø)
Windows_1 29.97% <0.00%> (-0.01%) ⬇️
Windows_2 58.74% <ø> (ø)
Windows_3 40.26% <0.00%> (-0.01%) ⬇️
Windows_4 31.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

kavilla pushed a commit that referenced this pull request Sep 10, 2024
(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>
ashwin-pc pushed a commit that referenced this pull request Sep 11, 2024
(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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants