Skip to content

[Search Connectors][Serverless] Add Search Connectors UI to the Stack Management data Section#213509

Merged
YulNaumenko merged 114 commits intoelastic:mainfrom
YulNaumenko:extract-search-connectors-ui
Apr 18, 2025
Merged

[Search Connectors][Serverless] Add Search Connectors UI to the Stack Management data Section#213509
YulNaumenko merged 114 commits intoelastic:mainfrom
YulNaumenko:extract-search-connectors-ui

Conversation

@YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Mar 7, 2025

!!MAJORITY OF THE CHANGED FILES ARE MOVED OR COPIED!!

Vision

According to the product vision we will build a new simple UI/UX in the future https://github.com/elastic/security-team/issues/11790

This PR is a first iteration on enabling Content Connectors Management UI in Serverless Kibana Stack Management.
Elastic Managed content connectors will be available only for Security and Observability projects.

Current PR scope

  1. Used initial search_connectors plugin and renamed it to content_connectors + moved from x-pack/solutions/search to x-pack/platform/plugins/shared
  2. Copy relevant connectors UI and routes from enterprise_search plugin.
  3. Introduce the new Stack Management card/navigation option under the Data section.
  4. Enabled this plugin only in Serverless for Security and Observability projects.
  5. For making PR smaller Pipelines tab was not moved. And according to Search team vision this functionality should be dropped anyway soon.
  6. Extended fleet package logic to include elastic_connectors for security and o11y serverless projects
  7. Added back search:agentless-connectors-manager task

In Stack Management navigation:
Screenshot 2025-04-15 at 3 51 43 PM

Stack Management cards:
Screenshot 2025-04-10 at 8 41 43 PM

Create Elastic Managed Connector UI (on Agentless):

Screenshot 2025-04-15 at 3 55 29 PM

Create Self Managed Connector UI:

Screenshot 2025-04-15 at 3 55 49 PM

Next steps

  • Remove duplicated code between content_connectors, enterprise_search and serverless_search
  • Extract common server libs to the shared package kbn-search-connectors

@YulNaumenko YulNaumenko self-assigned this Mar 7, 2025
@YulNaumenko YulNaumenko changed the title [Search Connectors] Extracted Search Connectors UI and Routes to a shared plugin in platform [Search Connectors][Serverless] Add Search Connectors UI to the Stack Management data Section Mar 14, 2025
@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 18, 2025

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
contentConnectors - 404 +404
management 86 87 +1
searchConnectors 77 - -77
searchIndices 335 333 -2
securitySolutionServerless 154 155 +1
serverless 43 44 +1
serverlessObservability 10 11 +1
serverlessSearch 411 412 +1
total +330

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/search-connectors 3958 3977 +19
@kbn/search-shared-ui 10 8 -2
contentConnectors - 12 +12
searchConnectors 7 - -7
total +22

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
contentConnectors - 471.5KB ⚠️ +471.5KB
enterpriseSearch 1.3MB 1.3MB +116.0B
management 31.6KB 32.8KB +1.2KB
searchIndices 180.4KB 180.6KB +106.0B
searchPlayground 207.4KB 207.5KB +158.0B
serverlessSearch 343.5KB 347.6KB +4.1KB
total +477.2KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/search-connectors 0 1 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
contentConnectors - 29.2KB +29.2KB
enterpriseSearch 38.8KB 38.8KB +1.0B
searchConnectors 60.3KB - -60.3KB
securitySolutionServerless 48.3KB 48.6KB +261.0B
serverless 9.6KB 9.8KB +195.0B
serverlessObservability 13.4KB 13.6KB +260.0B
serverlessSearch 25.8KB 26.0KB +195.0B
total -30.2KB
Unknown metric groups

API count

id before after diff
@kbn/search-connectors 3958 3977 +19
@kbn/search-shared-ui 10 8 -2
contentConnectors - 12 +12
searchConnectors 7 - -7
total +22

async chunk count

id before after diff
contentConnectors - 3 +3

ESLint disabled in files

id before after diff
searchConnectors 2 - -2

ESLint disabled line counts

id before after diff
contentConnectors - 23 +23

miscellaneous assets size

id before after diff
contentConnectors - 240.4KB ⚠️ +240.4KB

Total ESLint disabled count

id before after diff
contentConnectors - 23 +23
searchConnectors 2 - -2
total +21

History

cc @YulNaumenko

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-cloud-image ci:build-serverless-image ci:cloud-redeploy Always create a new Cloud deployment ci:project-deploy-observability Create an Observability project ci:project-deploy-security Create a Security Serverless Project release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.