Skip to content

[Search] Fix: serverless search connector types#218842

Merged
TattdCodeMonkey merged 3 commits intoelastic:mainfrom
TattdCodeMonkey:fix/serverless-search-connector-types
Apr 23, 2025
Merged

[Search] Fix: serverless search connector types#218842
TattdCodeMonkey merged 3 commits intoelastic:mainfrom
TattdCodeMonkey:fix/serverless-search-connector-types

Conversation

@TattdCodeMonkey
Copy link
Contributor

@TattdCodeMonkey TattdCodeMonkey commented Apr 22, 2025

Summary

Fixes bug introduced by: #213509 where serverless search & enterprise search could not load list of available connector types from the connectors plugin. This was caused by 2 things in serverless, 1) the entire plugin was disabled and 2) the plugin id was renamed.

Updated the contentConnectors plugin to have a ui.enabled config value to override just disabling the management UI from being registered for Serverless Search, while still allowing the plugin to be enabled. And updated the usages of the searchConnectors plugin in enteprise_search & serverless_search to account for it being renamed to contentConnectors

Of note this bug would have been caught by FTRs, but they have been skipped for being flakey for some time, and have proven hard fix given the current UX 😔

Checklist

@TattdCodeMonkey TattdCodeMonkey added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Search v9.1.0 labels Apr 22, 2025
@TattdCodeMonkey TattdCodeMonkey requested review from a team as code owners April 22, 2025 15:38
Updated the content connectors config to allow disabling the management
UI app without disabling the entire plugin. ES3 uses the plugin to fetch
connector types, but will not use the content connectors management UIs.
Updates enterprise search and serverless search plugins to use the
updated contentConnectors plugin name instead of the old searchConnectors id.
@TattdCodeMonkey TattdCodeMonkey force-pushed the fix/serverless-search-connector-types branch from a78a93c to 1fe9323 Compare April 22, 2025 15:40
@TattdCodeMonkey TattdCodeMonkey changed the title Fix/serverless search connector types [Search] Fix: serverless search connector types Apr 22, 2025
Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for fixing that!

Copy link
Contributor

@ioanatia ioanatia left a comment

Choose a reason for hiding this comment

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

looks good

@TattdCodeMonkey
Copy link
Contributor Author

/ci

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

kibana manifest changes ok.
Without tests it's hard to know if the fix works so reviewing purely from a code-owner perspective.

@elasticmachine
Copy link
Contributor

⏳ Build in-progress

  • Buildkite Build
  • Commit: 7ddc5e7
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-218842-7ddc5e7c2144

History

@TattdCodeMonkey
Copy link
Contributor Author

Tested this PRs image in QA and the connector types are working again:
image

@jeramysoucy jeramysoucy self-requested a review April 23, 2025 19:51
Copy link
Contributor

@jeramysoucy jeramysoucy left a comment

Choose a reason for hiding this comment

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

Kibana security changes LGTM

@TattdCodeMonkey TattdCodeMonkey merged commit e04e974 into elastic:main Apr 23, 2025
11 checks passed
@TattdCodeMonkey TattdCodeMonkey deleted the fix/serverless-search-connector-types branch April 23, 2025 20:51
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
## Summary

Fixes bug introduced by: elastic#213509
where serverless search & enterprise search could not load list of
available connector types from the connectors plugin. This was caused by
2 things in serverless, 1) the entire plugin was disabled and 2) the
plugin id was renamed.

Updated the `contentConnectors` plugin to have a `ui.enabled` config
value to override just disabling the management UI from being registered
for Serverless Search, while still allowing the plugin to be enabled.
And updated the usages of the `searchConnectors` plugin in
`enteprise_search` & `serverless_search` to account for it being renamed
to `contentConnectors`

Of note this bug would have been caught by FTRs, but they have been
skipped for being
[flakey](elastic#203462) for some time,
and have proven [hard
fix](elastic#205971) given the current UX
😔

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:build-serverless-image release_note:skip Skip the PR/issue when compiling release notes Team:Search v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants