Skip to content

Supermind expiring soon events #2432

Olivia Madrid requested to merge feat/supermind-expiring-email-notif-2432 into master

Ticket(s) / Related Merge Requests

#2432 (closed)

Summary of Changes

Add cli command to check for supermind requests expiring soon (aka 24 hours til expiry) and trigger an event for each one.

Testing Considerations

To test on sandbox,

kubectl exec -it deployment/feat-supermind-expiring-email-notif-2432-minds-engine-sandbox -- sh

source /vault/secrets/env && php /var/www/Minds/engine/cli.php Supermind SupermindRequestsExpiringSoon exec

source /vault/secrets/env && php /var/www/Minds/engine/cli.php EventStreams --subscription=Core\\Supermind\\SupermindEventStreamsSubscription

The command gets all existing supermind requests that:

  • have been created but not replied to
  • have not yet expired
  • are more than 6 days old
  • we haven't already sent a reminder email to

For all of those requests, it should send a reminder email to the supermind receiver.

Deployment Considerations

The cli command still needs to be called somewhere.

Regression Scope

Supermind emails

Platform Affected (web, mobile, etc)

Web? Both?

Developer Testing Completed

Run with fake data locally.

Screenshots / Screen Recording

n/a

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Mark Harding

Merge request reports