Skip to content

#3945 don't send slack notif when user is assignee#4046

Merged
chpy04 merged 2 commits intodevelopfrom
#3945-remove-slack-personal-notif
Mar 15, 2026
Merged

#3945 don't send slack notif when user is assignee#4046
chpy04 merged 2 commits intodevelopfrom
#3945-remove-slack-personal-notif

Conversation

@getheobald
Copy link
Copy Markdown
Contributor

Changes

Added a check for user id when sending a slack task assignment notification such that no notification is sent when assigning tasks to oneself

Notes

  • There are 2 backend tests failing but they're not related so I think that's not my circus not my monkeys?
  • There is a typo in the params on this function but I didn't change it since I assume it's not in the scope of this ticket. But if it is I will happily fix the typo!!!

Test Cases

  • Manually tested assigning myself a task, and no notif was sent as expected
  • Manually tested assigning another user a task and notif was sent as expected
  • Manually tested reassigning a task from myself to another user and notif was sent as expected
  • Manually tested reassigning a task from another user to myself and no notif was sent as expected

Screenshots

Not sure if I need to include screenshots for manual e2e tests but here's the slack dm output
image

Checklist

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #3945

@getheobald getheobald self-assigned this Mar 14, 2026
Copy link
Copy Markdown
Contributor

@chpy04 chpy04 left a comment

Choose a reason for hiding this comment

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

This is kind of nit picky, but I'd rather this check be in the service function than in the slack utils function. The slack utils functions should be responsible for formatting the slack message and wrapping the api calls, but it should be the service function's resposibility to determine whether or not the slack message should be sent.

@getheobald
Copy link
Copy Markdown
Contributor Author

No probs! Made the change and retested

@getheobald getheobald requested a review from chpy04 March 15, 2026 03:38
Copy link
Copy Markdown
Contributor

@chpy04 chpy04 left a comment

Choose a reason for hiding this comment

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

lit

@chpy04 chpy04 merged commit 7a099b2 into develop Mar 15, 2026
4 checks passed
@chpy04 chpy04 deleted the #3945-remove-slack-personal-notif branch March 15, 2026 13:49
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.

[Maintenance] - Remove Slack Notif Personal Task Assigned

2 participants