-
Notifications
You must be signed in to change notification settings - Fork 14
Archived clients should not trigger external Hub notifications #6068
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
Archived clients should not trigger external Hub notifications #6068
Conversation
|
Heroku app: https://gyr-review-app-6068-86f77a2abe22.herokuapp.com/ |
| users_to_contact.each do |user| | ||
| interaction = ClientInteraction.create!(client: client, interaction_type: interaction_type) | ||
| ClientInteractionNotificationEmailJob.set(wait: 10.minutes).perform_later(interaction, user, **email_attrs) | ||
| ClientInteractionNotificationEmailJob.set(wait: 10.minutes).perform_later(interaction, user, **email_attrs) unless client.has_archived_intake? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stops emails for document_upload, new_client_message and signed_8879:
| ) | ||
| ) | ||
| SendInternalEmailJob.perform_later(internal_email) | ||
| SendInternalEmailJob.perform_later(internal_email) unless client.has_archived_intake? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stops emails for tagged_in_note
| end | ||
|
|
||
| def send_notifications | ||
| return if @client.has_archived_intake? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stops emails for assigned to client
tahsinaislam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great 🥳
Link to pivotal/JIRA issue
Is PM acceptance required? (delete one)
Reminder: merge main into this branch and get green tests before merging to main
What was done?
How to test?
messages
document upload and 8879
I don't think archived clients can login to the portal
client assignment
as a hub user assign an archived client to another hub user that has their notification on
Tagged in note
as a hub user tag another user in the notes of an archived client