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

2189 dashboard operations tile #2200

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Conversation

marcellmueller
Copy link
Contributor

@marcellmueller marcellmueller commented Sep 13, 2024

#2189

Conditionally show the Operations and Users & Access Requests tiles based on the User Operator status. The Users & Access Requests weren't part of this issue though it was suggested to take care of that in this as well.

Make sure to reset the db/load the new fixtures to test:
make reset_db && make run

User has User Operator

  • Log in as bc-cas-user
  • BCIERS dashboard Administration tile has Operations & Users and access requests link
Screenshot 2024-09-19 at 8 10 26 AM
  • Click Administration tile
  • Administration dashboard has Operations tile & Users and access requests tile:
Screenshot 2024-09-19 at 8 15 18 AM

User does no have User Operator

  • Log in as bc-cas-dev-secondary
  • BCIERS dashboard Administration tile does not have Operations & Users and access requests link
Screenshot 2024-09-19 at 8 18 15 AM
  • Click Administration tile
    -- Administration dashboard does not have Operations & Users and access requests tile:
Screenshot 2024-09-19 at 8 18 36 AM
  • Click Select an Operator
  • Search for and select Operator 3
  • Request access to this operator
  • Approve User Operator in the database:
psql
\c registration
UPDATE erc.user_operator SET status='Approved' WHERE user_id='279c80cf-5781-4c28-8727-40a133d17c0d' AND operator_id='438eff6c-d2e7-40ab-8220-29d3a86ef314';
  • Navigate to BCIERS dashboard
  • Administration tile has Operations and Users and access requests:
Screenshot 2024-09-19 at 8 23 32 AM
  • Click Administration tile
  • Administration dashboard has Operations and Users and access requests tile:
Screenshot 2024-09-19 at 8 23 26 AM

@marcellmueller marcellmueller marked this pull request as ready for review September 17, 2024 15:03
@marcellmueller marcellmueller force-pushed the 2189-dashboard-operations-tile branch 2 times, most recently from 5b38f6e to 79715b2 Compare September 18, 2024 16:27
@marcellmueller marcellmueller merged commit 479d0a5 into develop Sep 19, 2024
43 checks passed
@marcellmueller marcellmueller deleted the 2189-dashboard-operations-tile branch September 19, 2024 17:08
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