-
Notifications
You must be signed in to change notification settings - Fork 18
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
#2729: Update Add a Domain Manager page - [ES] #2857
Conversation
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
@@ -23,6 +23,15 @@ class InvalidDomainError(ValueError): | |||
pass | |||
|
|||
|
|||
class OutsideOrgMemberError(ValueError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete this error class and all references to it once we allow users to be members of multiple orgs as per the ticket ACs
🥳 Successfully deployed to developer sandbox es. |
src/registrar/views/domain.py
Outdated
@@ -831,6 +857,8 @@ def _send_domain_invitation_email(self, email: str, requestor: User, add_success | |||
"requestor_email": requestor_email, | |||
}, | |||
) | |||
if add_success: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this into the try statement since we shouldn't be sending emails if we do run into Exceptions that aren't EmailSendingError - feel free to let me know if there was a reason we did this previously though!
class OutsideOrgMemberError(ValueError): | ||
""" | ||
Error raised when an org member tries adding a user from a different .gov org. | ||
To be deleted when users can be members of multiple orgs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the comment here too! great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HTML file looks good and follows the Figma design:
Running into some issues with getting the suggested error with the organization_feature flag on (users from 2nd portfolio, approved user), and even with the organization_feature flag off (still unable to add any user as domain manager). I turned off the disable_email_sending flag as well even though the emails I'm using are on the allow list, so something may be funky with the errors.py file I'm assuming 😭
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
🥳 Successfully deployed to developer sandbox es. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Erin! The content on the Domain managers page (both org model + non-org model) needs to be updated. Please refer to this section of the content document for this page. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for bringing to attention the new content @gabydisarli! Just updated content with the following Add a domain manager - domain view |
🥳 Successfully deployed to developer sandbox es. |
Thanks for making these content updates, Erin! On the domain managers page, can you remove the final line of the last bullet points |
Can we change this text to: |
@gabydisarli good catches and thank you! Just pushed those content fixes and the updates should be deployed on getgov-es soon! |
🥳 Successfully deployed to developer sandbox es. |
Ticket
Resolves #2729
Changes
Context for reviewers
Setup
Testing that users cannot add users who are domain managers/invited to other organizations
Go to getgov-es and set up at least the following items:
Testing Other ACs
Code Review Verification Steps
As the original developer, I have
Satisfied acceptance criteria and met development standards
Ensured code standards are met (Original Developer)
Validated user-facing changes (if applicable)
As a code reviewer, I have
Reviewed, tested, and left feedback about the changes
Ensured code standards are met (Code reviewer)
Validated user-facing changes as a developer
New pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
Checked keyboard navigability
Meets all designs and user flows provided by design/product
Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
Tested with multiple browsers, the suggestion is to use ones that the developer didn't (check off which ones were used)
(Rarely needed) Tested as both an analyst and applicant user
Note: Multiple code reviewers can share the checklists above, a second reviewers should not make a duplicate checklist
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
Checked keyboard navigability
Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
Tested with multiple browsers (check off which ones were used)
(Rarely needed) Tested as both an analyst and applicant user
Screenshots