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

Add Portfolio invitation logic including retrieval and granting org members the correct permissions #2367

Closed
7 tasks
abroddrick opened this issue Jun 25, 2024 · 1 comment · Fixed by #2526
Closed
7 tasks
Assignees
Labels
data model Involves impact or changes to the databases/data models dev Feature: 🏢 Org Model

Comments

@abroddrick
Copy link
Contributor

abroddrick commented Jun 25, 2024

Issue description

For the org model we will need to add permissions to the individuals invited to the Org as well as adjust org permissions to current users (both non org and org members)

As a developer,
I want to be able to add a portfolio invitation for a given email address and, when that someone logs in with that email, that user portfolio role is created and the permissions added to the user.

Acceptance criteria

  • On django admin, a new invitation can be added to invite users to a portfolio via a portfolioInvitation table
  • the portfolio invitation table is based off of the miro (adjustments made based on findings is expected)
  • on login, the portfolioInvitations are checked (just like DomainInvitations). If the user has a record in that table that is not retrieved, the program marks it as retrieved after adding the portfolio to the User's record along with their permissions and portfolio roles
  • a user who logs in and has their portfolio invitation retrieved should now see the portfolio with the correct permissions that were granted in the invitation
  • If the user is already part of a different portfolio, log an error but do not add the user to this second portfolio, don't change their perms roles and do not mark the invitation as retrieved.

Additional acceptance criteria

  • Use multilist selects on PortfolioInvitationAdmin for roles and extra permissions
  • PortfolioInvitationAdmin is visible to analysts and admins IF waffle flag is turned on

Additional context

No response

Links to other issues

@abroddrick
Copy link
Contributor Author

Adding myself to review and update this

@abroddrick abroddrick assigned rachidatecs and unassigned abroddrick Jul 23, 2024
rachidatecs added a commit that referenced this issue Aug 2, 2024
Issue #2367: Portfolio invitation backend - MIGRATION - [BOB]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Involves impact or changes to the databases/data models dev Feature: 🏢 Org Model
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants