Dev: Make updates to domain invitation emails #2960
Labels
🔔 Notifications
related to notification (email) sent to users
blocked
Is dependent on another issue and cannot be worked
bundled
Parent ticket will be sprinted and this ticket is included in the parent
dev
issue is for the dev team
Feature: 🏢 Org Model
refinement
Milestone
Story
As a recipient of a domain invitation
I want the system to recognize whether I'm invited to multiple domains and if I'm already a user of the registrar
so that I'm only sent relevant information.
Acceptance Criteria
Make the following updates to the domain invitation email (applies to org model AND non-org model):
When invitations are sent for domains that are part of Org Model, double check that this AC from previous ticket #3019 is still intact
If the invitee is not part of the portfolio yet, send the portfolio invitation email AND the domain invitation email.
The above ACs apply to domain invitations send from the following:
On django admin, if a new domain invitation is created then send the same emails mentioned above (domain invitation and portfolio invitation if applicable) (the alert warning will be added to this table in Dev: Send emails when someone is added as a domain manager #2370 )
Error handling for non-unique user email:
When making a domain invitation for an existing user, check for non-unique user email and trigger error msg/log on DJA and on the form View. Send email, do not proceed with creating the user domain role.@dave-kennedy-ecs @abroddrick @rachidatecs discussed handling this edge case on the oidc sidePortfolio invites on existing user:
Additional Context
this will be added to the members page in #3295 , you can do these two in the same PR if desirable, it was just seperated in case someone wants to do them in separate PRs (and since it is a different area in the code/unit tests)
Issue Links
The text was updated successfully, but these errors were encountered: