[Integration] Hide elastic_connectors package (#211419)

## Summary

Hide `elastic_conenctors` package by default. This excludes the package
from:
- integration page
- search results

#### Verification

Without the change package shows up as the integration, and search
results. With the change it's correctly excluded.
This commit is contained in:
Jedr Blaszyk 2025-02-17 16:48:34 +01:00 committed by GitHub
parent 0dfa21571b
commit aa681551b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ import { FLEET_SERVER_PACKAGE } from '../../../common/constants';
export function getFilteredSearchPackages() {
const shouldFilterFleetServer = appContextService.getConfig()?.internal?.fleetServerStandalone;
const filtered: string[] = ['profiler_collector', 'profiler_symbolizer'];
const filtered: string[] = ['profiler_collector', 'profiler_symbolizer', 'elastic_connectors'];
// Do not allow to search for Fleet server integration if configured to use standalone fleet server
if (shouldFilterFleetServer) {
filtered.push(FLEET_SERVER_PACKAGE);
@ -22,7 +22,7 @@ export function getFilteredSearchPackages() {
}
export function getFilteredInstallPackages() {
const filtered: string[] = [];
const filtered: string[] = ['elastic_connectors'];
const excludePackages = appContextService.getConfig()?.internal?.registry?.excludePackages ?? [];