Loading desktop.package.json +1 −1 Original line number Diff line number Diff line Loading @@ -955,7 +955,7 @@ "type": "string", "enum": ["grpc", "websocket"], "enumItemLabels": ["gRPC", "WebSocket"], "default": "websocket", "default": "grpc", "order": 4 }, "gitlab.duoAgentPlatform.defaultNamespace": { Loading src/common/language_server/language_client_wrapper.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ describe('LanguageClientWrapper', () => { }, agentPlatform: { enabled: true, connectionType: 'websocket', connectionType: 'grpc', }, }, duoChat: { Loading src/common/utils/extension_configuration.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ describe('utils/extension_configuration', () => { }); describe.each([ { connectionType: undefined, expected: 'websocket' }, { connectionType: undefined, expected: 'grpc' }, { connectionType: 'grpc', expected: 'grpc' }, { connectionType: 'websocket', expected: 'websocket' }, { connectionType: 'invalid', expected: 'invalid' }, Loading src/common/utils/extension_configuration.ts +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ export function getAgentPlatformConfiguration(): DuoAgentPlatformConfiguration { return { enabled: booleanOrDefault(duoAgentPlatformConfig.enabled, true), connectionType: duoAgentPlatformConfig.connectionType ?? 'websocket', connectionType: duoAgentPlatformConfig.connectionType ?? 'grpc', defaultNamespace: duoAgentPlatformConfig.defaultNamespace, }; } Loading src/common/utils/extension_configuration_service.test.ts +3 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ describe('ExtensionConfigurationService', () => { // Mock getAgentPlatformConfiguration with default value jest.spyOn(extensionConfiguration, 'getAgentPlatformConfiguration').mockReturnValue({ enabled: true, connectionType: 'websocket', connectionType: 'grpc', defaultNamespace: 'gitlab-org', }); Loading Loading @@ -63,7 +63,7 @@ describe('ExtensionConfigurationService', () => { agentPlatform: { enabled: true, defaultNamespace: undefined, connectionType: 'websocket', connectionType: 'grpc', }, }, pipelineGitRemoteName: undefined, Loading Loading @@ -104,7 +104,7 @@ describe('ExtensionConfigurationService', () => { agentPlatform: { enabled: true, defaultNamespace: undefined, connectionType: 'websocket', connectionType: 'grpc', }, }, pipelineGitRemoteName: 'origin', Loading Loading
desktop.package.json +1 −1 Original line number Diff line number Diff line Loading @@ -955,7 +955,7 @@ "type": "string", "enum": ["grpc", "websocket"], "enumItemLabels": ["gRPC", "WebSocket"], "default": "websocket", "default": "grpc", "order": 4 }, "gitlab.duoAgentPlatform.defaultNamespace": { Loading
src/common/language_server/language_client_wrapper.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ describe('LanguageClientWrapper', () => { }, agentPlatform: { enabled: true, connectionType: 'websocket', connectionType: 'grpc', }, }, duoChat: { Loading
src/common/utils/extension_configuration.test.ts +1 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,7 @@ describe('utils/extension_configuration', () => { }); describe.each([ { connectionType: undefined, expected: 'websocket' }, { connectionType: undefined, expected: 'grpc' }, { connectionType: 'grpc', expected: 'grpc' }, { connectionType: 'websocket', expected: 'websocket' }, { connectionType: 'invalid', expected: 'invalid' }, Loading
src/common/utils/extension_configuration.ts +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ export function getAgentPlatformConfiguration(): DuoAgentPlatformConfiguration { return { enabled: booleanOrDefault(duoAgentPlatformConfig.enabled, true), connectionType: duoAgentPlatformConfig.connectionType ?? 'websocket', connectionType: duoAgentPlatformConfig.connectionType ?? 'grpc', defaultNamespace: duoAgentPlatformConfig.defaultNamespace, }; } Loading
src/common/utils/extension_configuration_service.test.ts +3 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ describe('ExtensionConfigurationService', () => { // Mock getAgentPlatformConfiguration with default value jest.spyOn(extensionConfiguration, 'getAgentPlatformConfiguration').mockReturnValue({ enabled: true, connectionType: 'websocket', connectionType: 'grpc', defaultNamespace: 'gitlab-org', }); Loading Loading @@ -63,7 +63,7 @@ describe('ExtensionConfigurationService', () => { agentPlatform: { enabled: true, defaultNamespace: undefined, connectionType: 'websocket', connectionType: 'grpc', }, }, pipelineGitRemoteName: undefined, Loading Loading @@ -104,7 +104,7 @@ describe('ExtensionConfigurationService', () => { agentPlatform: { enabled: true, defaultNamespace: undefined, connectionType: 'websocket', connectionType: 'grpc', }, }, pipelineGitRemoteName: 'origin', Loading