Bootstrap instance level service accounts
What does this MR do and why?
- Add "Service Accounts" menu item to
Admin -> Settings -> Service Account
nav - Add controller, rails route and permissions logic. Only instance admins can see the nav item and URL
- Similar implementation pattern to !124779 (merged)
- Page loads empty spinner loading state follow-up MR will bootstrap Vue app
- Feature flagged behind
:service_accounts_crud
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
-
Navigate to admin area as an admin user -
Confirm you don't see 'Service Accounts" in Nav -
Confirm page not reachable https://gdk.test:3000/admin/application_settings/service_accounts/
-
Enable feature flag Feature.enable(:service_accounts_crud)
in a rails console -
Confirm you see 'Service Accounts" in Nav -
Confirm page reachable https://gdk.test:3000/admin/application_settings/service_accounts/
with empty spinner state -
404 is rendered for non admin users and not logged in users, tested in unit tests.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
![]() ![]() |
![]() ![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #509865 (closed)