Skip to content
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

[Search][ES3] Make Connector config a copyable codeblock #201949

Merged

Conversation

navarone-feekery
Copy link
Contributor

@navarone-feekery navarone-feekery commented Nov 27, 2024

Summary

Make the configuration for Connectors a copyable codeblock during create a connector flow.

out

@navarone-feekery navarone-feekery added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Search labels Nov 27, 2024
@navarone-feekery navarone-feekery marked this pull request as ready for review November 27, 2024 12:07
@navarone-feekery navarone-feekery requested a review from a team as a code owner November 27, 2024 12:07
@navarone-feekery navarone-feekery added the backport:skip This commit does not require backporting label Nov 27, 2024
<EuiSpacer />
{status === ConnectorStatus.CREATED ? (
{Boolean(serviceType) &&
(status === ConnectorStatus.CREATED || status === ConnectorStatus.NEEDS_CONFIGURATION) ? (
Copy link
Member

Choose a reason for hiding this comment

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

This change confuses me a little. Are we sure this is correct? We've had issues where we get people stuck at a step in this logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After the service type is selected, the connector status becomes needs_configuration despite not being connected yet. Because of that, the Waiting for connection card disappears even though the Connector hasn't checked in yet. If you try it on prod now you'll see that the card disappears when it shouldn't.

I think the Boolean(serviceType) could be removed, I just didn't want two of the yellow cards to appear at the bottom at the same time ("select connector type" and "waiting for connection")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's a gif of how it works right now on main. Notice that the "waiting for connection" card disappears despite the connector not being connected yet (all I've done is selected a service type).

out

@navarone-feekery navarone-feekery requested review from sphilipse and a team November 27, 2024 15:46
@navarone-feekery navarone-feekery merged commit 0066cc1 into elastic:main Nov 29, 2024
17 checks passed
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
)

## Summary

Make the configuration for Connectors a copyable codeblock during create
a connector flow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Search v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants