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
[ML] Ensure loading indicator is present on initial jobs load #27151
[ML] Ensure loading indicator is present on initial jobs load #27151
Conversation
Pinging @elastic/ml-ui |
I noticed that the Does it feel okay to do that refactor in this PR or do it separately? |
💔 Build Failed |
retest |
💔 Build Failed |
@alvarezmelissa87 i'm fine with that refactor happening in this PR. it won't be big. |
x-pack/plugins/ml/public/jobs/jobs_list/components/jobs_list_view/jobs_list_view.js
Show resolved
Hide resolved
@alvarezmelissa87 refactoring |
This has been updated with the |
💔 Build Failed |
37a7f1a
to
9fb809b
Compare
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.
LGTM
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.
LGTM!
💚 Build Succeeded |
…c#27151) * Show table loading on initial jobs load * Use async/await and try/catch to catch job load failure
#27231) * Show table loading on initial jobs load * Use async/await and try/catch to catch job load failure
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.
LGTM :)
Summary
Related issue: #26418
loading
toJobsListView
state with initialnull
value.loading
set tonull
, it is set totrue
when loading job list - this ensures loading indicator is shown on first page load only.JobsListUI
(containing the job list table) receivesloading
as prop.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately