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] Fix autogenerated connector names #197585

Conversation

navarone-feekery
Copy link
Contributor

@navarone-feekery navarone-feekery commented Oct 24, 2024

Summary

Improve the autogenerated connector names by

  • Re-generating names when changing connector source
  • Preventing editing of names after connector is created

There is one caveat; if a user manually enters a connector name then changes the source, the name will be replaced by an autogenerated one. I think this is acceptable because users shouldn't be frequently changing the source during the creation flow anyway. To fix this will require some refactoring and I don't think we want to get into that right now.

out

@navarone-feekery navarone-feekery added bug Fixes for quality problems that affect the customer experience v9.0.0 backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development v8.16.0 v8.17.0 labels Oct 24, 2024
@navarone-feekery navarone-feekery requested a review from a team as a code owner October 24, 2024 09:58
@navarone-feekery navarone-feekery added the release_note:skip Skip the PR/issue when compiling release notes label Oct 24, 2024
@navarone-feekery navarone-feekery changed the title Fix autogenerated connector names [Search] Fix autogenerated connector names Oct 24, 2024
@navarone-feekery
Copy link
Contributor Author

@elasticmachine merge upstream

@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 -22.0B

History

@JoseLuisGJ
Copy link
Contributor

LGTM 👍

@navarone-feekery navarone-feekery merged commit c05e1c5 into elastic:main Oct 25, 2024
22 checks passed
@kibanamachine
Copy link
Contributor

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

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 25, 2024
Improve the autogenerated connector names by

- Re-generating names when changing connector source
- Preventing editing of names after connector is created

(cherry picked from commit c05e1c5)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 25, 2024
Improve the autogenerated connector names by

- Re-generating names when changing connector source
- Preventing editing of names after connector is created

(cherry picked from commit c05e1c5)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.15:
- chore(NA): upgrade typescript into v5.1.6 (#186437)
8.16
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 197585

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 25, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Search] Fix autogenerated connector names
(#197585)](#197585)

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

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

<!--BACKPORT [{"author":{"name":"Navarone
Feekery","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T07:53:16Z","message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Search","backport:prev-major","v8.16.0","v8.17.0"],"title":"[Search]
Fix autogenerated connector
names","number":197585,"url":"https://github.com/elastic/kibana/pull/197585","mergeCommit":{"message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197585","number":197585,"mergeCommit":{"message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Navarone Feekery <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 25, 2024
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Search] Fix autogenerated connector names
(#197585)](#197585)

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

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

<!--BACKPORT [{"author":{"name":"Navarone
Feekery","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T07:53:16Z","message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:Search","backport:prev-major","v8.16.0","v8.17.0"],"title":"[Search]
Fix autogenerated connector
names","number":197585,"url":"https://github.com/elastic/kibana/pull/197585","mergeCommit":{"message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197585","number":197585,"mergeCommit":{"message":"[Search]
Fix autogenerated connector names (#197585)\n\nImprove the autogenerated
connector names by\r\n\r\n- Re-generating names when changing connector
source\r\n- Preventing editing of names after connector is
created","sha":"c05e1c58ab7677bf082dc11da040a0c3be4d6498"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Navarone Feekery <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Search v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants