Skip to content

Show the deletion date in deletion notice subjects - #6882

Merged
vinibrsl merged 2 commits into
masterfrom
deletion-date
Nov 13, 2026
Merged

vinibrsl merged 2 commits into
masterfrom
deletion-date

Conversation

@metmarkosaric

@metmarkosaric metmarkosaric commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Changes

The deletion notice emails stated a fixed number of days in the subject, for example "will be deleted in 5 days". This was wrong when the email went out late. Some teams got the "5 days" email only 3 days before deletion. The date in the body was always correct, but some people missed it.

The subject now states the deletion date:

Final notice: your Plausible dashboards and stats will be deleted on 19 Oct 2026

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@metmarkosaric
metmarkosaric marked this pull request as ready for review November 13, 2026 07:54
@vinibrsl vinibrsl changed the title deletion date in the subject Show the deletion date in deletion notice subjects Nov 13, 2026
`SendDeletionNotificationsTest` still asserted the old "deleted in N days"
subjects, so CI failed:

    test/workers/send_deletion_notifications_test.exs:151

The `refute_email_delivered_with` cases matched the old subject too. They
would pass without checking anything. They now match the new subject
prefix with a regex.

This commit also drops the extra subject test in `email_test.exs`. The
two updated tests already assert the exact subject with the date.

`DeletionSchedule.first_notice_before_deletion_days/0` had no callers left
after the subject change, so this commit removes it.
@vinibrsl
vinibrsl added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit 8e5982c Nov 13, 2026
24 checks passed
@vinibrsl
vinibrsl deleted the deletion-date branch November 13, 2026 20:22
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