Skip to content

Commit

Permalink
[AI Assistant] Enable Search in Solution View (#199137)
Browse files Browse the repository at this point in the history
## Summary

This enables the Search solution in the Observability solution view, so
that connectors (which are required for the AI Assistant) are available.
  • Loading branch information
sphilipse authored Nov 7, 2024
1 parent 1761047 commit 17db651
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,12 @@ describe('capabilitiesSwitcher', () => {
{
space.solution = 'oblt';

// It should disable enterpriseSearch and securitySolution features
// which correspond to feature_1 and feature_3
// It should disable securitySolution features
// which corresponds to feature_3
const result = await switcher(request, capabilities, false);

const expectedCapabilities = buildCapabilities();

expectedCapabilities.feature_1.bar = false;
expectedCapabilities.feature_1.foo = false;
expectedCapabilities.feature_3.bar = false;
expectedCapabilities.feature_3.foo = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('#withSpaceSolutionDisabledFeatures', () => {
});

describe('when the space solution is "oblt"', () => {
test('it removes the "search" and "security" features', () => {
test('it removes the "security" features', () => {
const spaceDisabledFeatures: string[] = [];
const spaceSolution = 'oblt';

Expand All @@ -68,7 +68,7 @@ describe('#withSpaceSolutionDisabledFeatures', () => {
spaceSolution
);

expect(result).toEqual(['feature2', 'feature3']);
expect(result).toEqual(['feature3']);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export function withSpaceSolutionDisabledFeatures(
]).filter((featureId) => !enabledFeaturesPerSolution.es.includes(featureId));
} else if (spaceSolution === 'oblt') {
disabledFeatureKeysFromSolution = getFeatureIdsForCategories(features, [
'enterpriseSearch',
'securitySolution',
]).filter((featureId) => !enabledFeaturesPerSolution.oblt.includes(featureId));
} else if (spaceSolution === 'security') {
Expand Down

0 comments on commit 17db651

Please sign in to comment.