HAI-3538 Send a reminder email when a draft hanke has been unmodified for a long time#1134
Merged
umeetiusbaar merged 5 commits intodevfrom Oct 15, 2025
Conversation
… for 175 or 165 days (either limit, not both).
…odified for 175 or 165 days (either limit, not both).
Test Results 163 files - 250 1 errors 162 suites - 250 23s ⏱️ - 2m 27s For more details on these parsing errors, see this check. Results for commit 125ecf7. ± Comparison against base commit 7911517. ♻️ This comment has been updated with latest results. |
…een unmodified for 175 or 165 days (either limit, not both).
…e has been unmodified for 175 or 165 days (either limit, not both).
|
kujalpegofore
approved these changes
Oct 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Send a reminder email when a draft hanke has been unmodified for 175 or 165 days (either limit, not both).
Jira Issue: https://helsinkisolutionoffice.atlassian.net/browse/HAI-3538
Type of change
Instructions for testing
Manual testing is possible like this:
modifiedatin the database to be old enough (at least 165 days old):update hanke set modifiedat='2024-10-09 11:28:49.215104' where id=2;HAITATON_COMPLETIONS_UNMODIFIED_DRAFT_REMINDER_CRON='0 */5 * * * *'docker-compose up haitaton-hanke smtp4dev --buildChecklist:
or other location: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/HAI/pages/8189902867/S+hk+posti-ilmoitukset+k+ytt+j+lle (edited some subjects of emails to be in sync with the implementation. Mainly not having hanke name in the subject, just the hanketunnus)