-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ILM] Prettify JSON in "Show request" flyout #87612
[ILM] Prettify JSON in "Show request" flyout #87612
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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.
thanks for fixing on this @jloleysens ! changes LGTM and confirmed the fix locally as well 👍
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
In the JS spec an object
{}
contains unordered keys (i.e., the order of the keys should not be relied upon) - see this StackOverflow post that references the ECMAScript spec.However, "normal" keys are generally ordered by insertion order. This PR adds a prettify step to the JSON that is displayed in the flyout to order phases in the policy payload by phase order rather than the order in which the object is assembled in the form lib.
Unordered, pre this PR (hot, delete, cold warm)
Ordered, after the changes are applied (hot, warm, cold, delete)
Notes
This does not order the actions in phases, but ordering the phases is at least a large improvement.