Skip to content

Commit 8969fc7

Browse files
authored
feat(compass-assistant): move the AI assistant feature from development to released COMPASS-9753 (#7405)
* release the compass assistant feature * remove the tests that test the disabled state * also remove explain plan test
1 parent 7df0d6a commit 8969fc7

File tree

3 files changed

+1
-51
lines changed

3 files changed

+1
-51
lines changed

packages/compass-assistant/src/compass-assistant-provider.spec.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,6 @@ describe('useAssistantActions', function () {
166166
expect(result.current).to.have.keys(['getIsAssistantEnabled']);
167167
});
168168

169-
it('returns mostly empty object when enableAIAssistant preference is disabled', function () {
170-
const { result } = renderHook(() => useAssistantActions(), {
171-
wrapper: createWrapper(createMockChat({ messages: [] })),
172-
preferences: {
173-
enableAIAssistant: false,
174-
enableGenAIFeatures: true,
175-
enableGenAIFeaturesAtlasOrg: true,
176-
cloudFeatureRolloutAccess: { GEN_AI_COMPASS: true },
177-
},
178-
});
179-
180-
expect(result.current).to.have.keys(['getIsAssistantEnabled']);
181-
});
182-
183169
it('returns actions when both AI features and assistant flag are enabled', function () {
184170
const { result } = renderHook(() => useAssistantActions(), {
185171
wrapper: createWrapper(createMockChat({ messages: [] })),
@@ -244,21 +230,6 @@ describe('CompassAssistantProvider', function () {
244230
});
245231

246232
describe('disabling the Assistant', function () {
247-
it('does not render assistant drawer when AI assistant is disabled', function () {
248-
render(<TestComponent chat={createMockChat({ messages: [] })} />, {
249-
preferences: {
250-
enableAIAssistant: false,
251-
enableGenAIFeatures: true,
252-
enableGenAIFeaturesAtlasOrg: true,
253-
cloudFeatureRolloutAccess: { GEN_AI_COMPASS: true },
254-
},
255-
});
256-
257-
expect(screen.getByTestId('provider-children')).to.exist;
258-
// The drawer toolbar button should not exist when disabled
259-
expect(screen.queryByLabelText('MongoDB Assistant')).to.not.exist;
260-
});
261-
262233
it('does not render assistant drawer when AI features are disabled via isAIFeatureEnabled', function () {
263234
render(<TestComponent chat={createMockChat({ messages: [] })} />, {
264235
preferences: {

packages/compass-explain-plan/src/components/explain-plan-modal.spec.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,6 @@ describe('ExplainPlanModal', function () {
9393
);
9494
});
9595

96-
it('should not show "Interpret for me" button when AI assistant is disabled', function () {
97-
render(
98-
{
99-
status: 'ready',
100-
explainPlan: {
101-
namespace: 'test',
102-
usedIndexes: [],
103-
} as any,
104-
},
105-
{
106-
preferences: {
107-
enableAIAssistant: false,
108-
enableGenAIFeatures: true,
109-
enableGenAIFeaturesAtlasOrg: true,
110-
cloudFeatureRolloutAccess: { GEN_AI_COMPASS: true },
111-
},
112-
}
113-
);
114-
expect(screen.queryByTestId('interpret-for-me-button')).to.not.exist;
115-
});
116-
11796
it('should disable the "Interpret for me" button when the status is not ready', function () {
11897
render(
11998
{

packages/compass-preferences-model/src/feature-flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const featureFlags: Required<{
175175
* Feature flag for AI Assistant.
176176
*/
177177
enableAIAssistant: {
178-
stage: 'development',
178+
stage: 'released',
179179
description: {
180180
short: 'Enable AI Assistant',
181181
},

0 commit comments

Comments
 (0)