Skip to content

CV2-6724 : Sunset Check notification - #2447

Open
melsawy wants to merge 9 commits into
epic/CV2-6735-check-sunsetfrom
CV2-6724-send-sunsetting-emails-to-non-3-pf-cs-non-partners-check-workspaces
Open

CV2-6724 : Sunset Check notification#2447
melsawy wants to merge 9 commits into
epic/CV2-6735-check-sunsetfrom
CV2-6724-send-sunsetting-emails-to-non-3-pf-cs-non-partners-check-workspaces

Conversation

@melsawy

@melsawy melsawy commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Description

Send notification emails to workspace admins based on workspace usage, with separate messaging for high-usage and low-usage workspaces, using the copy from the Jessie shared documents.

References: CV2-6724

How to test?

Sent mails to Caio and Jessie

Checklist

  • I have performed a self-review of my code and ensured that it is safe and runnable, that code coverage has not decreased, and that there are no new Code Climate issues. I have also followed Meedan's internal coding guidelines.

@melsawy
melsawy changed the base branch from develop to epic/CV2-6735-check-sunset August 24, 2026 12:20
@melsawy

melsawy commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

@caiosba FYI, I forwarded the emails to Jessie to get her feedback before merging the PR.

@melsawy
melsawy marked this pull request as ready for review August 27, 2026 06:31
@melsawy
melsawy requested a review from caiosba August 27, 2026 06:31

@caiosba caiosba left a comment

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.

Sawy, while reviewing this, I was thinking about one thing... I don't think we should automatically send the download link to all admins. My suggestion is to send only the notification, and then send the download link only to users who request it (or even better, display the link on Check upon login), once we confirm that the requester is still a legit admin of that workspace.

My main concern is exposing the data more than necessary when probably only a few users will actually require it.

Let's discuss this with Jessie.

Comment thread app/mailers/sunset_mailer.rb Outdated
@name = user.name
# Set subject based on type (notify or download)
subject_type = type == 'download' ? 'download' : 'notify'
subject = I18n.t("mail_sunset.#{subject_type}_subject", app_name: CheckConfig.get('app_name'), workspace: workspace)

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.

Since the email body is not translated, I don't think we need to translate the title.

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.

2 participants