Skip to content

[ILM] Moved error and loading notices for data allocation#85154

Merged
jloleysens merged 6 commits intoelastic:masterfrom
jloleysens:fix/ilm-data-allocation-error-state
Dec 10, 2020
Merged

[ILM] Moved error and loading notices for data allocation#85154
jloleysens merged 6 commits intoelastic:masterfrom
jloleysens:fix/ilm-data-allocation-error-state

Conversation

@jloleysens
Copy link
Copy Markdown
Contributor

@jloleysens jloleysens commented Dec 7, 2020

Summary

Minor fix for layout of error notice regarding loading node data in data allocation field. No logic changes were introduced for when/how notifications are shown for data allocation field.

How to test

Easiest way to test is to simply always error by checking out this PR and modifying the code. See comment in PRs changes in x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared_fields/data_tier_allocation_field/data_tier_allocation_field.tsx

Before

Screenshot 2020-12-07 at 16 53 29

After

Screenshot 2020-12-07 at 16 59 14

@jloleysens jloleysens added release_note:enhancement Feature:ILM v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v7.11.0 labels Dec 7, 2020
@jloleysens jloleysens requested a review from yuliacech December 7, 2020 16:01
@jloleysens jloleysens requested a review from a team as a code owner December 7, 2020 16:01
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

break;
default:
return null;
const { data, resendRequest, error, isLoading } = useLoadNodes();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Delete error here and on the line below it add:

const error = new Error('test')

to see the erroring state.

Copy link
Copy Markdown
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Hi @jloleysens , great job on refactoring data tier allocation! As discussed, the input element could potentially react to error / loading states as well.

@jloleysens
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Copy Markdown
Contributor Author

@yuliacech I've added loading spinners to inputs to indicate that something is still loading:

Screenshot 2020-12-10 at 11 07 01

Would you mind taking another look?

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 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
indexLifecycleManagement 245.2KB 245.3KB +78.0B

Distributable file count

id before after diff
default 47010 47770 +760

History

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

Copy link
Copy Markdown
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my feedback, @jloleysens ! tested locally and changes LGTM!

@jloleysens jloleysens merged commit f6c149f into elastic:master Dec 10, 2020
@jloleysens jloleysens deleted the fix/ilm-data-allocation-error-state branch December 10, 2020 13:40
jloleysens added a commit to jloleysens/kibana that referenced this pull request Dec 10, 2020
)

* moved error and loading notices for data allocation field to below description

* removed test code

* expect controls to be showing, only render notice after network request has finished

* added loading spinner for field inputs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit that referenced this pull request Dec 11, 2020
…85564)

* moved error and loading notices for data allocation field to below description

* removed test code

* expect controls to be showing, only render notice after network request has finished

* added loading spinner for field inputs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:ILM release_note:enhancement Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants