Use sent status on notifications that were sent instead of sending
#1342
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.
Do not merge / do not close PR yet
This requires changes in the admin as well. Merging this without the admin changes could break how we properly report the statistics in the admin UI and reports.
We are keeping this PR opened until research gets back on the user experience output of such changes.
Summary | Résumé
Exploring the option to use the
SENTstatus for the notifications after it went through the AWS provider.At the moment, the current code base for emails complete skip the
SENTstatus. TheSENDINGstatus is set instead when the notifications are sent to the AWS provider. Upon receiving the receipt, the status then becomesDELIVEREDstatus.This lead to some confusion to know the real status of the notifications, especially as it gets carried up through the UI where users see that many of their notifications that were actually sent are still with a
SENDINGstatus despite it was really sent, but did not have a receipt yet and might never because there is a certain percentage that never will (around 1%-3% of sent notifications).Looking on the GDS side, they have a similar logic to what our current code base reflect.
Test instructions | Instructions pour tester la modification
More to come with this...
Unresolved questions / Out of scope | Questions non résolues ou hors sujet
SENTstatus set earlier?Reviewer checklist | Liste de vérification du réviseur
This is a suggested checklist of questions reviewers might ask during their
review | Voici une suggestion de liste de vérification comprenant des questions
que les réviseurs pourraient poser pendant leur examen :
langues officielles?
une baisse de la quantité de code couvert par les tests automatisés?
fonctionnalité existante?
que ça devrait être divisé en de plus petites demandes de tirage (« pull
requests ») afin de réduire le risque lié aux modifications?
modification de la politique de confidentialité?
préoccupations liées à la sécurité?
façon importante la performance?
risque d’utiliser des dépendances ajoutées?
setup, etc.) | Faudra-t-il mettre à jour la documentation à la suite de ce
changement (fichier README, etc.)?