Skip to content

feat(nimbus): add slack notifications for rollout state changes - #16595

Open
moibra05 wants to merge 1 commit into
mainfrom
16532
Open

feat(nimbus): add slack notifications for rollout state changes#16595
moibra05 wants to merge 1 commit into
mainfrom
16532

Conversation

@moibra05

Copy link
Copy Markdown
Contributor

Because

  • Rollout state transitions were not sending slack notifications

This commit

  • Adds Slack notifications for rollout launch, phase advance, disable, and re-enable transitions using the existing experiment notification structure and alert types

Fixes #16532


class Meta:
model = NimbusBranchScreenshot
fields = ("image", "description")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change here

alert = NimbusAlert.objects.create(
experiment=experiment,
alert_type=NimbusConstants.AlertType.UPDATE_REQUEST,
message="⏩ Requests rollout phase advance",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the constants here that you have declared

alert = NimbusAlert.objects.create(
experiment=experiment,
alert_type=NimbusConstants.AlertType.END_EXPERIMENT_REQUEST,
message="⏸️ Requests disable rollout",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, and also in some other test cases to use the constants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add slack notifications to state changes

2 participants