You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The list of domains on portfolio domains management pages gets different lists for members and an invites.
If it's an invite (ie email), we retrieve the domains from the domain invitations that intersect the email and portfolio.
if it's a member (ie User), we get the domains from the user domain roles that intersect the user and the portfolio. In this case, we are missing any potential domains that user is invited to.
Expected Behavior
The domain list for a member should include any domains that member is invited to.
Steps to Reproduce
Go to Django admin domain invitation table
Add a domain invite to an existing portfolio User.
Check the domains list for that user.
It does not include the domain added through the invite.
Environment
No response
Additional Context
Suggested solution:
When going to the Domain assignment tab, if the user is an existing member, then we retrieve any “invited” domain invitations and generate the user domain roles. This is done prior to getting all user domain roles for the page, thus when we query for user domain roles we should then have all domains this person can manage.
Issue Links
No response
The text was updated successfully, but these errors were encountered:
rachidatecs
changed the title
Portfolio member domains list does not include invited domains
Portfolio member domains list missing domain invites for existing members
Dec 16, 2024
Removing refinement: I verified this is a real issue, and added a solution. Realistically, this should only happen if an analyst/superuser creates domain invitations for an existing user instead of user domain roles AND someone happens to visit this page before the "invited user" logs in to retrieve their invitations
Current Behavior
The list of domains on portfolio domains management pages gets different lists for members and an invites.
If it's an invite (ie email), we retrieve the domains from the domain invitations that intersect the email and portfolio.
if it's a member (ie User), we get the domains from the user domain roles that intersect the user and the portfolio. In this case, we are missing any potential domains that user is invited to.
Expected Behavior
The domain list for a member should include any domains that member is invited to.
Steps to Reproduce
Environment
No response
Additional Context
Suggested solution:
When going to the Domain assignment tab, if the user is an existing member, then we retrieve any “invited” domain invitations and generate the user domain roles. This is done prior to getting all user domain roles for the page, thus when we query for user domain roles we should then have all domains this person can manage.
Issue Links
No response
The text was updated successfully, but these errors were encountered: