Skip to content

Add request flyout to Remote Clusters.#42900

Merged
cjcenizal merged 4 commits intoelastic:masterfrom
cjcenizal:remote-clusters-show-request
Aug 13, 2019
Merged

Add request flyout to Remote Clusters.#42900
cjcenizal merged 4 commits intoelastic:masterfrom
cjcenizal:remote-clusters-show-request

Conversation

@cjcenizal
Copy link
Contributor

Fixes #42793

Release note

This is a minor enhancement to display the underlying Elasticsearch endpoint in the "Add Remote Cluster" form. Users can copy and paste this endpoint and payload to execute the request manually or use it within a script or other automated system.

image

@cjcenizal cjcenizal added enhancement New value added to drive a business result Feature:CCR and Remote Clusters v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v7.4.0 labels Aug 8, 2019
@cjcenizal cjcenizal requested a review from jen-huang August 8, 2019 00:08
@cjcenizal cjcenizal added release_note:enhancement and removed enhancement New value added to drive a business result labels Aug 8, 2019
@cjcenizal cjcenizal force-pushed the remote-clusters-show-request branch from 9c71f51 to 9fbb81f Compare August 8, 2019 00:35
@cjcenizal cjcenizal force-pushed the remote-clusters-show-request branch from 9fbb81f to dfbed3b Compare August 8, 2019 00:47
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

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

Tested locally and LGTM! I left a few suggestions but they are not blockers.

const request = `${endpoint}\n${payload}`;

return (
<EuiPortal>
Copy link
Contributor

Choose a reason for hiding this comment

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

is EuiPortal need for flyouts?

{name ? (
<FormattedMessage
id="xpack.remoteClusters.requestFlyout.namedTitle"
defaultMessage="Request for {name}"
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do Request for '{name}' (name in single quotes)? we do this in other areas where the object name is part of a phrase

id="xpack.remoteClusters.remoteClusterForm.saveButtonLabel"
defaultMessage="Save"
id="xpack.remoteClusters.remoteClusterForm.toggleRequestButtonLabel"
defaultMessage="Show request"
Copy link
Contributor

Choose a reason for hiding this comment

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

should this text change based on if the flyout is open or not? I think it'll be hidden in most cases when the flyout is open, but I can see it on my wide monitor:

image

{request}
</EuiCodeBlock>
</EuiFlyoutBody>
</EuiFlyout>
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a EuiFlyoutFooter that contains a close button so the user doesn't have to target the small close icon?

- Remove unnecessary EuiPortal.
- Wrap name in quotes.
- Change button text to show/hide based on state.
- Add flyout footer with close button.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cjcenizal cjcenizal merged commit 9470d8a into elastic:master Aug 13, 2019
@cjcenizal cjcenizal deleted the remote-clusters-show-request branch August 13, 2019 21:23
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show ES request preview when adding a remote cluster

3 participants

Comments