-
Notifications
You must be signed in to change notification settings - Fork 920
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 loading indicator and counter to query result #8212
Add loading indicator and counter to query result #8212
Conversation
b1b6e6e
to
2fb3d5a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8212 +/- ##
=======================================
Coverage 64.05% 64.06%
=======================================
Files 3741 3741
Lines 88682 88702 +20
Branches 13817 13822 +5
=======================================
+ Hits 56809 56829 +20
Misses 31261 31261
Partials 612 612
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx
Outdated
Show resolved
Hide resolved
src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx
Outdated
Show resolved
Hide resolved
src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx
Show resolved
Hide resolved
src/plugins/discover/public/application/view_components/utils/use_search.ts
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/view_components/utils/use_search.ts
Show resolved
Hide resolved
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
687d610
to
ba73d87
Compare
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
ba73d87
to
5cd91f5
Compare
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.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.
Nice!
const getTime = () => { | ||
const time = new Date().getTime() - props.queryStatus.startTime!; | ||
if (time > BUFFER_TIME) { | ||
setElapsedTime(time); |
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.
Its rounded down to seconds so that should not be a problem. Take a look at the video attached Miki :)
Link checker failure not related:
|
* add loading indicator and counter to query result Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Changeset file for PR #8212 created/updated * add unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * address comments Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 27ba36c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add loading indicator and counter to query result Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Changeset file for PR #8212 created/updated * add unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * address comments Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 27ba36c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add loading indicator and counter to query result * Changeset file for PR #8212 created/updated * add unit tests * address comments * update snapshot --------- (cherry picked from commit 27ba36c) Signed-off-by: abbyhu2000 <abigailhu2000@gmail.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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* add loading indicator and counter to query result * Changeset file for PR #8212 created/updated * add unit tests * address comments * update snapshot --------- (cherry picked from commit 27ba36c) Signed-off-by: abbyhu2000 <abigailhu2000@gmail.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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…#8212) * add loading indicator and counter to query result Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Changeset file for PR opensearch-project#8212 created/updated * add unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * address comments Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…#8212) * add loading indicator and counter to query result Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Changeset file for PR opensearch-project#8212 created/updated * add unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * address comments Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * update snapshot Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> --------- Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Issues Resolved
Screenshot
Screen.Recording.2024-09-17.at.2.58.10.PM.mov
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration