Skip to content

Commit

Permalink
[Search] Fix native connector search results (#178003)
Browse files Browse the repository at this point in the history
## Summary

This fixes the search result to redirect to native connector pages if
the user is on cloud and the connector supports native. Otherwise the
connector page will be for a connector client.

Also consolidate the reference for connector integrations used for
searching the top search bar and the integrations page.
There's a lot of repetitiveness here, and because they are very similar
in both use and design, it is ideal to have a single source of truth.
  • Loading branch information
navarone-feekery authored Mar 6, 2024
1 parent 32e5e83 commit 9262d96
Show file tree
Hide file tree
Showing 9 changed files with 442 additions and 1,256 deletions.
299 changes: 296 additions & 3 deletions packages/kbn-search-connectors/connectors.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function ({ getService }: FtrProviderContext) {

expect(resp.body).to.be.an('array');

expect(resp.body.length).to.be(56);
expect(resp.body.length).to.be(49);

// Test for sample data card
expect(resp.body.findIndex((c: { id: string }) => c.id === 'sample_data_all')).to.be.above(
Expand Down
Loading

0 comments on commit 9262d96

Please sign in to comment.