Skip to content

Commit 1c760dd

Browse files
authored
Merge branch 'main' into improve/CM-958
2 parents 4242d6d + 0db3443 commit 1c760dd

File tree

23 files changed

+29
-70
lines changed

23 files changed

+29
-70
lines changed

backend/.env.dist.local

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ CROWD_ORGANIZATION_ENRICHMENT_API_KEY=
127127
CROWD_EAGLE_EYE_URL=
128128
CROWD_EAGLE_EYE_API_KEY=
129129

130-
# Slack alerting settings
131-
CROWD_SLACK_ALERTING_URL=
132-
133130
# Weekly emails settings
134131
CROWD_WEEKLY_EMAILS_ENABLED="true"
135132

backend/config/custom-environment-variables.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@
143143
"installationId": "GITHUB_TOKEN_INSTALLATION_ID",
144144
"privateKey": "GITHUB_TOKEN_PRIVATE_KEY"
145145
},
146-
"slackAlerting": {
147-
"url": "CROWD_SLACK_ALERTING_URL"
148-
},
149146
"weeklyEmails": {
150147
"enabled": "CROWD_WEEKLY_EMAILS_ENABLED"
151148
},

backend/config/default.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
"organizationEnrichment": {},
3838
"eagleEye": {},
3939
"githubToken": {},
40-
"slackAlerting": {
41-
"url": ""
42-
},
4340
"auth0": {},
4441
"sso": {},
4542
"crowdAnalytics": {

backend/src/api/apiResponseHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class ApiResponseHandler extends LoggerBase {
120120
}
121121

122122
sendSlackNotification(
123-
SlackChannel.ALERTS,
123+
SlackChannel.CDP_ALERTS,
124124
SlackPersona.ERROR_REPORTER,
125125
`API Error ${code}: ${req.method} ${req.url}`,
126126
sections,

backend/src/api/public/middlewares/errorHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const errorHandler: ErrorRequestHandler = (
4040
)
4141

4242
sendSlackNotification(
43-
SlackChannel.ALERTS,
43+
SlackChannel.CDP_ALERTS,
4444
SlackPersona.ERROR_REPORTER,
4545
`Public API Error 500: ${req.method} ${req.url}`,
4646
[

backend/src/api/public/v1/members/identities/verifyMemberIdentity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export async function verifyMemberIdentity(req: Request, res: Response): Promise
139139
} catch (error) {
140140
req.log.warn({ error }, 'Audit log capture failed after identity unmerge')
141141
sendSlackNotification(
142-
SlackChannel.ALERTS,
142+
SlackChannel.CDP_ALERTS,
143143
SlackPersona.ERROR_REPORTER,
144144
`Audit log capture failed after identity unmerge: member ${memberId}`,
145145
[{ title: 'Error', text: `\`${error?.message || error}\`` }],
@@ -164,7 +164,7 @@ export async function verifyMemberIdentity(req: Request, res: Response): Promise
164164
} catch (error) {
165165
req.log.warn({ error }, 'Failed to start unmerge workflow after identity unmerge')
166166
sendSlackNotification(
167-
SlackChannel.ALERTS,
167+
SlackChannel.CDP_ALERTS,
168168
SlackPersona.ERROR_REPORTER,
169169
`Failed to start unmerge workflow after identity unmerge: member ${memberId}`,
170170
[

backend/src/conf/configTypes.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ export interface StackExchangeConfiguration {
156156
key: string
157157
}
158158

159-
export interface SlackAlertingConfiguration {
160-
url: string
161-
}
162-
163159
export interface IntegrationProcessingConfiguration {
164160
maxRetries: number
165161
}

backend/src/conf/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
SSOConfiguration,
3434
SegmentConfiguration,
3535
ServiceType,
36-
SlackAlertingConfiguration,
3736
SlackConfiguration,
3837
SnowflakeConfiguration,
3938
StackExchangeConfiguration,
@@ -132,9 +131,6 @@ export const STACKEXCHANGE_CONFIG: StackExchangeConfiguration =
132131
key: process.env.STACKEXCHANGE_KEY,
133132
}
134133

135-
export const SLACK_ALERTING_CONFIG: SlackAlertingConfiguration =
136-
config.get<SlackAlertingConfiguration>('slackAlerting')
137-
138134
export const INTEGRATION_PROCESSING_CONFIG: IntegrationProcessingConfiguration =
139135
config.get<IntegrationProcessingConfiguration>('integrationProcessing')
140136

services/apps/cron_service/src/jobs/nangoMonitoring.job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ const job: IJobDefinition = {
326326
// Queue notification for this platform
327327
notificationPromises.push(
328328
sendSlackNotificationAsync(
329-
SlackChannel.NANGO_ALERTS,
329+
SlackChannel.CDP_INTEGRATIONS_ALERTS,
330330
persona,
331331
`Nango Monitor: ${nangoIntegration}`,
332332
sections,
@@ -344,7 +344,7 @@ const job: IJobDefinition = {
344344
if (failedStatusChecks > 0) {
345345
notificationPromises.push(
346346
sendSlackNotificationAsync(
347-
SlackChannel.NANGO_ALERTS,
347+
SlackChannel.CDP_INTEGRATIONS_ALERTS,
348348
SlackPersona.ERROR_REPORTER,
349349
'Nango Monitor: API Errors',
350350
`Failed to retrieve status for ${failedStatusChecks} connection${failedStatusChecks > 1 ? 's' : ''} due to Nango API errors.\n\nCheck logs for details.`,

services/apps/cron_service/src/jobs/queueMonitoring.job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const job: IJobDefinition = {
5353

5454
if (msg && msg.trim().length > 0) {
5555
await sendSlackNotificationAsync(
56-
SlackChannel.ALERTS,
56+
SlackChannel.CDP_CRITICAL_ALERTS,
5757
SlackPersona.WARNING_PROPAGATOR,
5858
'Queue Monitoring Alert',
5959
msg,

0 commit comments

Comments
 (0)