-
Notifications
You must be signed in to change notification settings - Fork 19
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
#2737: Members csv report - [MEOWARD] #3083
Conversation
🥳 Successfully deployed to developer sandbox za. |
🥳 Successfully deployed to developer sandbox za. |
🥳 Successfully deployed to developer sandbox za. |
🥳 Successfully deployed to developer sandbox za. |
change_message="Created invitation", | ||
action_time=timezone.make_aware(datetime(2023, 4, 12)), | ||
) | ||
|
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.
Curious to know why you used LogEntry in these tests?
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.
For the Invited by
field! PortfolioInvitation doesn't have a creator
-- so the way to grab that without adding that to the DB is to look through our audit logs and see who was responsible for creating that record
Q, | ||
Value, | ||
When, | ||
) |
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.
I like this update! it makes it more readable
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.
LGTM!
Co-authored-by: Alysia Broddrick <[email protected]>
…e.get.gov into za/2737-members-csv-report
🥳 Successfully deployed to developer sandbox za. |
Ticket
Resolves #2737
Changes
Context for reviewers
This PR adds a export as csv button on the members page. The data on this report will be similar to that which is returned via the table, but we also include "invited by" and "invitation date" which pull from the audit log to grab this information from the PortfolioInvitation.
The member table and member csv report pull from three tables: PortfolioInvitation, UserPortfolioPermission, and DomainInvitation. The content from these three tables (Primarily PortfolioInvitation / UserPortfolioPermission) are threaded together using django annotations.
Setup
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
Validated user-facing changes as a developer
Note: Multiple code reviewers can share the checklists above, a second reviewer should not make a duplicate checklist. All checks should be checked before approving, even those labeled N/A.
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
References
Screenshots