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] Show loading indicator when DataView is switched #177240

Merged
merged 10 commits into from
Feb 23, 2024

Conversation

kertal
Copy link
Member

@kertal kertal commented Feb 19, 2024

Summary

Fixes #167706

This PR is showing an EuiProgres bar after 300ms when a data view is being switched and its field caps request takes longer e.g. because it hasn't been cached before. This is providing a better visual feedback indicating the there's a loading process in progress. For faster / cached requests the loading indicate isn't displayed, preventing a flickered rendering in this case.

Here's an example when initially loading a larger CCS data view

Kapture.2024-02-23.at.10.34.41.mp4

Checklist

@kertal kertal self-assigned this Feb 19, 2024
@kertal kertal added the Feature:Discover Discover Application label Feb 19, 2024
@kertal
Copy link
Member Author

kertal commented Feb 19, 2024

/ci

@kertal
Copy link
Member Author

kertal commented Feb 19, 2024

/ci

@kertal
Copy link
Member Author

kertal commented Feb 20, 2024

/ci

1 similar comment
@kertal
Copy link
Member Author

kertal commented Feb 21, 2024

/ci

@kertal
Copy link
Member Author

kertal commented Feb 23, 2024

/ci

@kertal kertal changed the title [Discover] Switch Discover to data loading state when data view is switched [Discover] Show loading indicator when DataView is switched Feb 23, 2024
@kertal kertal added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Feb 23, 2024
@kertal kertal marked this pull request as ready for review February 23, 2024 10:23
@kertal kertal requested a review from a team as a code owner February 23, 2024 10:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement! LGTM 👍

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 580.1KB 580.4KB +310.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
discover 23 24 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @kertal

@kertal kertal merged commit 9b9b7eb into elastic:main Feb 23, 2024
17 checks passed
@kertal kertal deleted the discover-improve-change-data-view-behavior branch February 23, 2024 21:08
@kibanamachine kibanamachine added v8.14.0 backport:skip This commit does not require backporting labels Feb 23, 2024
semd pushed a commit to semd/kibana that referenced this pull request Mar 4, 2024
…177240)

Interating a loading indicator after 300ms when a data view is being switched and its field caps request takes longer e.g. because it hasn't been cached before. This is providing a better visual feedback when  there's a loading process in progress. For faster cached requests the loading indicate isn't displayed, preventing a flickered rendering in this case.


Co-authored-by: Julia Rechkunova <[email protected]>
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
…177240)

Interating a loading indicator after 300ms when a data view is being switched and its field caps request takes longer e.g. because it hasn't been cached before. This is providing a better visual feedback when  there's a loading process in progress. For faster cached requests the loading indicate isn't displayed, preventing a flickered rendering in this case.


Co-authored-by: Julia Rechkunova <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cross Cluster search causes UI to hang while getting cross cluster field names/types
5 participants