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][Connectors] Disable setup options after creating configuration #203374

Merged

Conversation

JoseLuisGJ
Copy link
Contributor

@JoseLuisGJ JoseLuisGJ commented Dec 9, 2024

Summary

This PR disables the Elastic managed and Self-managed setup options after clicking the Generate configuration button in order to avoid the error described in this ticket https://github.com/elastic/search-team/issues/8665 when changing deployment method after generating the config.

CleanShot 2024-12-09 at 10 32 08@2x

@JoseLuisGJ JoseLuisGJ changed the title Initial commit [Search][Connectors] Disable setup options after creating configuration Dec 9, 2024
@JoseLuisGJ JoseLuisGJ self-assigned this Dec 9, 2024
@JoseLuisGJ JoseLuisGJ added v8.16.2 release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Search backport:version Backport to applied version labels v8.17.0 v8.18.0 labels Dec 9, 2024
@JoseLuisGJ JoseLuisGJ marked this pull request as ready for review December 9, 2024 09:38
@JoseLuisGJ JoseLuisGJ requested a review from a team as a code owner December 9, 2024 09:38
@jedrazb
Copy link
Member

jedrazb commented Dec 9, 2024

LGTM @JoseLuisGJ! But another question: isn’t this step a bit misleading? We tell the user they’ll only see the API key once at this stage, but then at the next step (deployment), we actually need the same API key again to configure the connector.

Maybe we should just automatically the configuration and automatically proceed to the next step?

@JoseLuisGJ
Copy link
Contributor Author

Hey @jedrazb If we choose Elastic managed: we generate the config and convey this config including the API key shown only once at this point. Whereas if we choose Self-managed we only let users go to the new Dseployment step, and there we automatically generate the config and convey it to the users.

@elasticmachine
Copy link
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
enterpriseSearch 2.6MB 2.6MB +28.0B

cc @JoseLuisGJ

@JoseLuisGJ JoseLuisGJ merged commit 9b6af1c into elastic:main Dec 9, 2024
25 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/12234484402

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 9, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)

(cherry picked from commit 9b6af1c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 9, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)

(cherry picked from commit 9b6af1c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 9, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)

(cherry picked from commit 9b6af1c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.17
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 9, 2024
…guration (#203374) (#203395)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Search][Connectors] Disable setup options after creating
configuration (#203374)](#203374)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"José Luis
González","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-09T11:15:54Z","message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:version","v8.17.0","v8.18.0","v8.16.2","v8.16.3"],"title":"[Search][Connectors]
Disable setup options after creating
configuration","number":203374,"url":"https://github.com/elastic/kibana/pull/203374","mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203374","number":203374,"mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: José Luis González <[email protected]>
kibanamachine added a commit that referenced this pull request Dec 9, 2024
…iguration (#203374) (#203394)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Search][Connectors] Disable setup options after creating
configuration (#203374)](#203374)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"José Luis
González","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-09T11:15:54Z","message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:version","v8.17.0","v8.18.0","v8.16.2","v8.16.3"],"title":"[Search][Connectors]
Disable setup options after creating
configuration","number":203374,"url":"https://github.com/elastic/kibana/pull/203374","mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203374","number":203374,"mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: José Luis González <[email protected]>
kibanamachine added a commit that referenced this pull request Dec 9, 2024
…iguration (#203374) (#203393)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Search][Connectors] Disable setup options after creating
configuration (#203374)](#203374)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"José Luis
González","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-09T11:15:54Z","message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:version","v8.17.0","v8.18.0","v8.16.2","v8.16.3"],"title":"[Search][Connectors]
Disable setup options after creating
configuration","number":203374,"url":"https://github.com/elastic/kibana/pull/203374","mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203374","number":203374,"mergeCommit":{"message":"[Search][Connectors]
Disable setup options after creating configuration (#203374)\n\n##
Summary\r\n\r\nThis PR disables the _Elastic managed_ and _Self-managed_
setup options\r\nafter clicking the _Generate configuration_ button in
order to avoid the\r\nerror described in this
ticket\r\nhttps://github.com/elastic/search-team/issues/8665 when
changing\r\ndeployment method after generating the
config.\r\n\r\n![CleanShot 2024-12-09 at 10
32\r\n08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)","sha":"9b6af1c1887f83d821d6fc639715ad4be593fea7"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: José Luis González <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 9, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)
Samiul-TheSoccerFan pushed a commit to Samiul-TheSoccerFan/kibana that referenced this pull request Dec 10, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)
mykolaharmash pushed a commit to mykolaharmash/kibana that referenced this pull request Dec 11, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…on (elastic#203374)

## Summary

This PR disables the _Elastic managed_ and _Self-managed_ setup options
after clicking the _Generate configuration_ button in order to avoid the
error described in this ticket
elastic/search-team#8665 when changing
deployment method after generating the config.

![CleanShot 2024-12-09 at 10 32
08@2x](https://github.com/user-attachments/assets/dafea7ac-5d50-44a0-a59d-03ee29043dec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.16.2 v8.16.3 v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants