[engine] Boost v3 emails minds#3610
Ticket(s) / Related Merge Requests
Closes minds#3610 (closed)
Summary of Changes
Emails for different stages of boost.
Testing Considerations
To test you will need to have access to Vitess and change the boosts state manually before running the CLI commands below - remember to interpolate the GUID of one of your boosts linked to an account that you have the email for:
Useful Queries
# don't run these immediately, run them when needed and interpolate your user guid
# use this to find a boosts guid if you have just made it and don't know the id.
SELECT * FROM boosts WHERE entity_guid=1447294202441371653
# use this to check the state of your boost after making changes
SELECT * FROM boosts WHERE guid=1459507044271788039;
# set status as per instructions in next codeblock
UPDATE boosts SET status = 1 WHERE guid=1459507044271788039;
# set target suitability as per instructions in the next codeblock
UPDATE boosts SET target_suitability = 2 WHERE guid=1459507044271788039;
CLI commands
# This needs to be running in a seperate shell while running other commands below.
# !!!DO NOT EXIT THE SHELL WITHOUT CANCELLING THE PROCESS - IF YOU DO PLEASE LET ME KNOW ASAP!!!!!!
source /vault/secrets/env && php /var/www/Minds/engine/cli.php EventStreams --subscription=Core\\Boost\\V3\\EventStreams\\BoostEmailEventStreamSubscription
# change state to 9
php cli.php Boost triggerActionEvent --boostGuid=1459492480176099341 --eventType='complete'
# change state to 3 and target_suitability to 2
php cli.php Boost triggerActionEvent --boostGuid=1459492480176099341 --eventType='reject' --rejectionReason=990
# change state to 3 and target_suitability to 1
php cli.php Boost triggerActionEvent --boostGuid=1459492480176099341 --eventType='reject' --rejectionReason=990
# change state to 2
php cli.php Boost triggerActionEvent --boostGuid=1459492480176099341 --eventType='accept'
# change state to 1
php cli.php Boost triggerActionEvent --boostGuid=1459492480176099341 --eventType='create'
Note - images may not load properly - they may not load at all because the URL is sandbox - my changes doesn't touch this area - it is just something that happens when testing emails.
Deployment Considerations
Contains changes for !1212 (merged) so that should likely be merged first.
Has attached helm chart to handle runner config
Other than that needs deploying to runners.
Regression Scope
Email and notification flow.
Platform Affected (web, mobile, etc)
Engine
Developer Testing Completed
Manual, PHPSpec.
Screenshots / Screen Recording
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 Ben