Skip to content

Commit

Permalink
feat: support environment variant updates in email service (#6183)
Browse files Browse the repository at this point in the history
This change updates the email service's `sendScheduleSuspendedEmail`
method to support environment variants being changed.
  • Loading branch information
thomasheartman committed Feb 14, 2024
1 parent e9176ac commit e366e48
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/services/email-service.ts
Expand Up @@ -192,6 +192,11 @@ export class EmailService {
| {
reason: 'segment updated';
segment: { id: number; name: string };
}
| {
reason: 'environment variants updated';
flagName: string;
environment: string;
},
conflictingChangeRequestId: number | undefined,
changeRequests: {
Expand Down Expand Up @@ -226,6 +231,12 @@ export class EmailService {
conflict: `A strategy belonging to ${conflictData.flagName} (ID: ${conflictData.strategyId}) in the project ${project} has been updated, and your changes would overwrite some of the recent changes`,
canBeRescheduled: true,
};
case 'environment variants updated':
return {
conflictScope: 'environment variant configuration',
conflict: `The ${conflictData.environment} environment variant configuration for ${conflictData.flagName} in the project ${project} has been updated, and your changes would overwrite some of the recent changes`,
canBeRescheduled: true,
};
case 'segment updated':
return {
conflictScope: 'segment',
Expand Down

0 comments on commit e366e48

Please sign in to comment.