Skip to content

Commit

Permalink
Remove deprecated code for recurring emails (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsaintroch authored Dec 1, 2023
1 parent 40e56ee commit d354fc8
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 1,040 deletions.
11 changes: 6 additions & 5 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
"@crowd/opensearch": "file:../services/libs/opensearch",
"@crowd/redis": "file:../services/libs/redis",
"@crowd/sqs": "file:../services/libs/sqs",
"@crowd/telemetry": "file:../services/libs/telemetry",
"@crowd/temporal": "file:../services/libs/temporal",
"@crowd/tracing": "file:../services/libs/tracing",
"@crowd/types": "file:../services/libs/types",
"@crowd/telemetry": "file:../services/libs/telemetry",
"@cubejs-client/core": "^0.30.4",
"@google-cloud/storage": "5.3.0",
"@octokit/auth-app": "^3.6.1",
Expand Down
50 changes: 0 additions & 50 deletions backend/src/bin/jobs/eagleEyeEmailDigestTicks.ts

This file was deleted.

10 changes: 0 additions & 10 deletions backend/src/bin/jobs/index.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
import { CrowdJob } from '../../types/jobTypes'
import integrationTicks from './integrationTicks'
import weeklyAnalyticsEmailsCoordinator from './weeklyAnalyticsEmailsCoordinator'
import memberScoreCoordinator from './memberScoreCoordinator'
import refreshMaterializedViews from './refreshMaterializedViews'
import refreshMaterializedViewsForCube from './refreshMaterializedViewsForCube'
import downgradeExpiredPlans from './downgradeExpiredPlans'
import eagleEyeEmailDigestTicks from './eagleEyeEmailDigestTicks'
import integrationDataChecker from './integrationDataChecker'
import mergeSuggestions from './mergeSuggestions'
import refreshSampleData from './refreshSampleData'
import cleanUp from './cleanUp'
import checkStuckIntegrationRuns from './checkStuckIntegrationRuns'
import enrichOrganizations from './organizationEnricher'
import { WEEKLY_EMAILS_CONFIG } from '../../conf'

const EMAILS_ENABLED = WEEKLY_EMAILS_CONFIG.enabled === 'true'

const jobs: CrowdJob[] = [
integrationTicks,
memberScoreCoordinator,
refreshMaterializedViews,
refreshMaterializedViewsForCube,
downgradeExpiredPlans,
eagleEyeEmailDigestTicks,
integrationDataChecker,
mergeSuggestions,
refreshSampleData,
Expand All @@ -31,8 +25,4 @@ const jobs: CrowdJob[] = [
enrichOrganizations,
]

if (EMAILS_ENABLED) {
jobs.push(weeklyAnalyticsEmailsCoordinator)
}

export default jobs
27 changes: 0 additions & 27 deletions backend/src/bin/jobs/weeklyAnalyticsEmailsCoordinator.ts

This file was deleted.

114 changes: 0 additions & 114 deletions backend/src/bin/scripts/send-weekly-analytics-email.ts

This file was deleted.

17 changes: 0 additions & 17 deletions backend/src/bin/scripts/unleash-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,23 +244,6 @@ const constaintConfiguration = {
},
],
],
[FeatureFlag.TEMPORAL_EMAILS]: [
[
{
values: [
Plans.values.scale,
Plans.values.eagleEye,
Plans.values.enterprise,
Plans.values.essential,
Plans.values.growth,
],
inverted: false,
operator: 'IN',
contextName: 'plan',
caseInsensitive: false,
},
],
],

[FeatureFlag.SYNCHRONOUS_OPENSEARCH_UPDATES]: [
[
Expand Down
Loading

0 comments on commit d354fc8

Please sign in to comment.