Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix slack dm status updates #3060

Merged
merged 4 commits into from
Jun 1, 2023

Conversation

mastercactapus
Copy link
Member

@mastercactapus mastercactapus commented Jun 1, 2023

Description:
This PR removes leftover code around alert_status_log_contact_method_id, causing problems with status updates.

A smoke test was added that reproduces the issue, fails before the fix, and passes after.

The status update cancel test was also updated to use the new API.

Which issue(s) this PR fixes:
Fixes #2889

Describe any introduced API changes:
The deprecated status method CM ID fields no longer do anything and always return an empty string.

Additional Info:
Root issue: Previous to the recent status update change in #2824, changing the alert_status_log_contact_method_id in the user table would retroactively update any pending status update messages to the new contact method.

With the new behavior, subscriptions are now per contact method. When a user previously had a contact method set up for status updates (before the update), all individual updates would still mistakenly be redirected to the original.

This meant that status updates for Slack would be redirected to the user's SMS, for instance. If status updates were disabled for the SMS contact method (in the new format), then the message would be canceled/deleted, which left no trace of why status updates weren't being sent to Slack.

This issue doesn't only impact Slack, but it was the most common/visible manifestation.

@github-actions github-actions bot added the size/m label Jun 1, 2023
Copy link
Collaborator

@tony-tvu tony-tvu left a comment

Choose a reason for hiding this comment

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

LGTM!

@mastercactapus mastercactapus merged commit f59e2cd into master Jun 1, 2023
@mastercactapus mastercactapus deleted the bug/2889-fix-slack-dm-status-updates branch June 1, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slack DM: status updates not working
3 participants