Skip to content

HAI-3538 Send a reminder email when a draft hanke has been unmodified for a long time#1134

Merged
umeetiusbaar merged 5 commits intodevfrom
HAI-3538/send-email-when-draft-hanke-long-time-unedited
Oct 15, 2025
Merged

HAI-3538 Send a reminder email when a draft hanke has been unmodified for a long time#1134
umeetiusbaar merged 5 commits intodevfrom
HAI-3538/send-email-when-draft-hanke-long-time-unedited

Conversation

@umeetiusbaar
Copy link
Copy Markdown
Contributor

@umeetiusbaar umeetiusbaar commented Oct 9, 2025

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

  • Bug fix
  • New feature
  • Other

Instructions for testing

Manual testing is possible like this:

  1. Have a DRAFT hanke
  2. Update hanke's modifiedat in 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;
  3. In .env, set the scheduler for this to trigger every 5 minutes: HAITATON_COMPLETIONS_UNMODIFIED_DRAFT_REMINDER_CRON='0 */5 * * * *'
  4. Start the backend with docker-compose: docker-compose up haitaton-hanke smtp4dev --build
  5. You should soonish get an email. Check http://localhost:3003/

Checklist:

… for 175 or 165 days (either limit, not both).
…odified for 175 or 165 days (either limit, not both).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 9, 2025

Test Results

  163 files   -   250      1 errors  162 suites   - 250   23s ⏱️ - 2m 27s
1 176 tests  - 1 398  1 176 ✅  - 1 398  0 💤 ±0  0 ❌ ±0 
1 265 runs   - 1 560  1 265 ✅  - 1 560  0 💤 ±0  0 ❌ ±0 

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).
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Oct 10, 2025

@umeetiusbaar umeetiusbaar merged commit b6887ed into dev Oct 15, 2025
3 of 5 checks passed
@umeetiusbaar umeetiusbaar deleted the HAI-3538/send-email-when-draft-hanke-long-time-unedited branch October 15, 2025 09:50
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