Skip to content

Conversation

@embarnard
Copy link
Contributor

@embarnard embarnard commented Sep 25, 2025

Link to pivotal/JIRA issue

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

  • Archived clients should not trigger any of the external Hub notifications to the assigned user
  • new message, document upload, client assignment, signed 8879, tagged in internal note

How to test?

messages

  1. Be assigned to an archived client
  2. Send message as client (from email associated with the archived client)
  3. Check email inbox

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

@github-actions
Copy link

Heroku app: https://gyr-review-app-6068-86f77a2abe22.herokuapp.com/
View logs: heroku logs --app gyr-review-app-6068 (optionally add --tail)

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?
Copy link
Contributor Author

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?
Copy link
Contributor Author

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?
Copy link
Contributor Author

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

Copy link
Contributor

@tahsinaislam tahsinaislam left a comment

Choose a reason for hiding this comment

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

looks great 🥳

@embarnard embarnard merged commit f59b5eb into main Sep 29, 2025
8 checks passed
@embarnard embarnard deleted the GYR1-811-archived-clients-should-not-trigger-external-hub-notifications branch September 29, 2025 19:30
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.

3 participants