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

dm-4749 add user roles to report #863

Merged
merged 5 commits into from
May 9, 2024

Conversation

PhilipDeFraties
Copy link
Collaborator

@PhilipDeFraties PhilipDeFraties commented Apr 26, 2024

JIRA issue link

https://agile6.atlassian.net/browse/DM-4749

Description - what does this code do?

  • Adds "Admin" and "PageGroup Editor Roles" to both the csv export and show configuration for admin/users

Testing done - how did you test it/steps on how can another person can test it

  1. As admin, add a user to a few page_groups
  2. Verify that when you "view" a user from the admin/users page (/admin/users/{id}) you see the "PageGroup Editor Roles" row with the names of the page_groups the user is an editor for listed
  3. Also verify there is an "Admin" role that populates with AA's "yes" or "no" colored boxes indicating the presence of an :admin role for the user.
  4. Go back to the admin/users pages and utilize "Download: CSV" button to the bottom left of the index
  5. Verify the output includes 2 columns coinciding with the new rows from step 2, but for the "Admin" value there will populate "TRUE" or "FALSE". Verify the rest of the columns are "Email", "Last sign in at", "Created at", "Sign in count", "First name", "Last name", "Job title".

Screenshots, Gifs, Videos from application (if applicable)

Screenshot 2024-04-26 at 2 43 15 PM Screenshot 2024-04-26 at 2 57 49 PM

Link to mock-ups/mock ups (image file if you have it) (if applicable)

Acceptance criteria

  • [ ]

Definition of done

  • Unit tests written (if applicable)
  • e2e/accessibility tests written (if applicable)
  • Events are logged appropriately
  • Documentation has been updated, if applicable
  • A link has been provided to the originating JIRA issue
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs

adds "Admin" and "PageGroup Editor Roles" rows to show config block
adds csv block with selected columns and added "Admin" and "PageGroup Editor Roles" columns
returns page_group names for "PageGroup Editor Roles" row and column in show and csv configs
@PhilipDeFraties PhilipDeFraties self-assigned this Apr 26, 2024
@PhilipDeFraties PhilipDeFraties marked this pull request as ready for review April 26, 2024 20:58
Copy link

github-actions bot commented May 9, 2024

Code Scanning Policy Findings

Your repository contains unresolved code scanning alerts. Policy requires that all code scanning alerts of critical severity be resolved within 30 days.

In the future, if your repository contains unresolved code scanning alerts older than 30 days, you will not be able to merge this pull request.

Learn more about how to triage and remediate these alerts in the GitHub Code Scanning documentation.

If this pull request remediates these alerts, after your pull requests CodeQL scan has completed, follow this link to re-run the policy check and select Re-run all jobs at the top of the page: https://github.com/department-of-veterans-affairs/diffusion-marketplace/actions/runs/9023935996

You may also re-run this required check by simply commenting on this pull request with the following command:
/actions-bot rerun-required-workflows

Alert NumberURLAgePolicy Violation
336Link13 DaysNo
335Link13 DaysNo

@PhilipDeFraties PhilipDeFraties merged commit be11d06 into master May 9, 2024
4 of 5 checks passed
@PhilipDeFraties PhilipDeFraties deleted the dm-4749-add-user-roles-to-export branch May 9, 2024 22:11
PhilipDeFraties added a commit that referenced this pull request May 9, 2024
* update admin/users

adds "Admin" and "PageGroup Editor Roles" rows to show config block

* update admin/users

adds csv block with selected columns and added "Admin" and "PageGroup Editor Roles" columns

* update admin/users

returns page_group names for "PageGroup Editor Roles" row and column in show and csv configs

* update comment in admin/users form

* update admin_spec feature test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants