-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Show endpoint in JSON preview of index lifecycle policy editor. #42791
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
Conversation
- Reduce tabs from 4 to 2. - Increase flyout width to 480px and remove overlay. - Show line numbers.
|
Pinging @elastic/es-ui |
💚 Build Succeeded |
alisonelizabeth
left a comment
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.
@cjcenizal thanks for adding this!
I think the copyToClipboard method will need to be updated as well to include the endpoint. I noticed when I click the copy button it only copies the json. Can you take a look?
|
Great catch about the clipboard behavior, will fix! Thanks. |
…tle and endpoint when there is no name specified.
💔 Build Failed |
💚 Build Succeeded |
|
@alisonelizabeth Ready for another review! |
alisonelizabeth
left a comment
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.
@cjcenizal tested locally and works great now. Thanks!
…tic#42791) * Reduce tabs from 4 to 2. * Increase flyout width to 480px and remove overlay. * Show line numbers. * Use EuiCopy component. * Add description text. * Update title and endpoint when there is no name specified.
…) (#42896) * Reduce tabs from 4 to 2. * Increase flyout width to 480px and remove overlay. * Show line numbers. * Use EuiCopy component. * Add description text. * Update title and endpoint when there is no name specified.
Other changes:
Note that the endpoint is rendered only if the user has defined a policy name.
Release note
This is a minor enhancement to display the underlying Elasticsearch endpoint in the Index Lifecycle editor. Users can copy and paste this endpoint and payload to execute the request manually or use it within a script or other automated system.