Skip to content

Commit

Permalink
[Search] Update "Connectors" search type to singular "Connector" (#18…
Browse files Browse the repository at this point in the history
…2006)

## Summary

Update search tag from "Connectors" to "Connector"

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [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

(cherry picked from commit 005f11c)
  • Loading branch information
efegurkan committed Apr 30, 2024
1 parent e84fcf1 commit 80b6202
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getConnectorsSearchResultProvider(
): GlobalSearchResultProvider {
return {
find: ({ term, types, tags }, { aborted$, client, maxResults }) => {
if (!client || !term || tags || (types && !types.includes('connectors'))) {
if (!client || !term || tags || (types && !types.includes('connector'))) {
return from([[]]);
}
const getConnectorData = async (): Promise<GlobalSearchProviderResult[]> => {
Expand Down Expand Up @@ -54,7 +54,7 @@ export function getConnectorsSearchResultProvider(
};
return from(getConnectorData()).pipe(takeUntil(aborted$));
},
getSearchableTypes: () => ['connectors'],
getSearchableTypes: () => ['connector'],
id: 'enterpriseSearchConnectors',
};
}

0 comments on commit 80b6202

Please sign in to comment.