From 0de15bf70cfa524d38dc773d32619dcdac0e291e Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Fri, 25 Apr 2025 04:37:22 +0400 Subject: [PATCH] fix: remove logs --- .../access-approval-request-service.ts | 1 - .../src/lib/workflow-integrations/trigger-notification.ts | 4 ---- backend/src/services/microsoft-teams/microsoft-teams-fns.ts | 4 +--- .../components/MicrosoftTeamsConfigRow.tsx | 2 -- .../components/MicrosoftTeamsIntegrationForm.tsx | 6 ------ .../components/SlackConfigRow.tsx | 2 -- .../components/SlackIntegrationForm.tsx | 1 - 7 files changed, 1 insertion(+), 19 deletions(-) diff --git a/backend/src/ee/services/access-approval-request/access-approval-request-service.ts b/backend/src/ee/services/access-approval-request/access-approval-request-service.ts index 9dda4313c..2b2758b2e 100644 --- a/backend/src/ee/services/access-approval-request/access-approval-request-service.ts +++ b/backend/src/ee/services/access-approval-request/access-approval-request-service.ts @@ -225,7 +225,6 @@ export const accessApprovalRequestServiceFactory = ({ const requesterFullName = `${requestedByUser.firstName} ${requestedByUser.lastName}`; const approvalUrl = `${cfg.SITE_URL}/secret-manager/${project.id}/approval`; - console.log("triggering workflow integration notification"); await triggerWorkflowIntegrationNotification({ input: { notification: { diff --git a/backend/src/lib/workflow-integrations/trigger-notification.ts b/backend/src/lib/workflow-integrations/trigger-notification.ts index 58d229d96..9f123de2e 100644 --- a/backend/src/lib/workflow-integrations/trigger-notification.ts +++ b/backend/src/lib/workflow-integrations/trigger-notification.ts @@ -49,15 +49,11 @@ export const triggerWorkflowIntegrationNotification = async (dto: TTriggerWorkfl } } - console.log("microsoftTeamsConfig", microsoftTeamsConfig); if (microsoftTeamsConfig) { if (notification.type === TriggerFeature.ACCESS_REQUEST) { if (microsoftTeamsConfig.isAccessRequestNotificationEnabled && microsoftTeamsConfig.accessRequestChannels) { const { success, data } = MicrosoftTeamsChannelsSchema.safeParse(microsoftTeamsConfig.accessRequestChannels); - console.log("success", success); - console.log("data", data); - if (success && data) { await microsoftTeamsService .sendNotification({ diff --git a/backend/src/services/microsoft-teams/microsoft-teams-fns.ts b/backend/src/services/microsoft-teams/microsoft-teams-fns.ts index f25a28fa1..30e2d8fb5 100644 --- a/backend/src/services/microsoft-teams/microsoft-teams-fns.ts +++ b/backend/src/services/microsoft-teams/microsoft-teams-fns.ts @@ -303,9 +303,7 @@ export class TeamsBot extends TeamsActivityHandler { } async run(context: TurnContext) { - console.log("Running Microsoft Teams bot", { - context - }); + logger.info(context, "Processing Microsoft Teams context"); await super.run(context); } diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx index e85ea1e27..f564bcc62 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsConfigRow.tsx @@ -51,8 +51,6 @@ export const MicrosoftTeamsConfigRow = ({ handlePopUpOpen }: Props) => { return null; } - console.log("after"); - return ( diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx index 40d958527..3637745bc 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/MicrosoftTeamsIntegrationForm.tsx @@ -162,9 +162,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => { const selectedAccessRequestTeamId = watch("accessRequestChannels.teamId"); const selectedSecretRequestTeamId = watch("secretRequestChannels.teamId"); - console.log("selectedAccessRequestTeamId", selectedAccessRequestTeamId); - console.log("selectedSecretRequestTeamId", selectedSecretRequestTeamId); - const selectedMicrosoftTeamsIntegrationId = watch("microsoftTeamsIntegrationId"); const accessRequestNotificationsEnabled = watch("isAccessRequestNotificationEnabled"); @@ -188,9 +185,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => { .map((team) => team.channels) .flat(); - console.log("selectableAccessRequestChannelIds", selectableAccessRequestChannelIds); - console.log("selectableSecretRequestChannelIds", selectableSecretRequestChannelIds); - const channelIdToName = [ ...(selectableAccessRequestChannelIds || []), ...(selectableSecretRequestChannelIds || []) diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx index 70a707656..01016acef 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackConfigRow.tsx @@ -47,8 +47,6 @@ export const SlackConfigRow = ({ handlePopUpOpen }: Props) => { return null; } - console.log("after slakc"); - return ( diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx index 72d4ced85..6bcaa6ac1 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/WorkflowIntegrationSection/components/SlackIntegrationForm.tsx @@ -166,7 +166,6 @@ export const SlackIntegrationForm = ({ onClose }: Props) => { isDisabled={!isAllowed} placeholder="None" onValueChange={(val) => { - console.log("Selecting ", val); onChange(val); }} className="w-full"