Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev: Send email when member has been removed from a portfolio #3288

Open
7 tasks
Katherine-Osos opened this issue Jan 2, 2025 · 2 comments
Open
7 tasks

Comments

@Katherine-Osos
Copy link
Contributor

Katherine-Osos commented Jan 2, 2025

Issue description

As a portfolio member
I want to be notified when I've been removed from the portfolio
so that I know I can no longer access it in the registrar.

Acceptance criteria

  • This new email should be sent to users when they're removed from a portfolio.
    • Registrar: This email should be sent if the person was removed via the registrar
    • Django admin: No email should be sent if the person was removed via Django admin, User Portfolio Permissions table.

Add static messaging in Django:

  • Add a static message to the top of the "Are you sure?" UserPortfolioPermissions deletion page that reads: "If you remove someone from a portfolio here, it will not send any emails when you click "save."
  • Add a static message to the top of the "Are you sure?" PortfolioInvitation deletion page that reads: "If you cancel the portfolio invitation here, it won't trigger any emails. It also won't remove the user's portfolio access if they already logged in. Go to the User Portfolio Permissions table if you want to remove the user from a portfolio."
    • Link to the " UserPortfolioPermissions" table in that message.
  • Use slim blue alert, placed right below the heading "Are you sure?" for both tables.

Additional context

Links to other issues

@Katherine-Osos
Copy link
Contributor Author

Katherine-Osos commented Jan 2, 2025

@abroddrick Note this new ticket related to emails; content is still pending done.

@abroddrick
Copy link
Contributor

abroddrick commented Jan 28, 2025

@Katherine-Osos so if a user is removed from the registrar and was an admin then: 1.) an email would be sent saying this user has been removed 2) an email would be sent to all other admins saying that an admin has been removed. So 2 different emails get sent, correct? Or should this email only be sent if the user is a non-admin member?

Adding refinement so I remember I asked a question here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🎯 Ready
Development

No branches or pull requests

2 participants