1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00
unleash.unleash/frontend/src/component/admin
Nuno Góis d63b3c69fe
feat: adapt user logic to better adapt to SAs (#2917)
https://linear.app/unleash/issue/2-579/improve-user-like-behaviour-for-service-accounts-accounts-concept

<img width="803" alt="image"
src="https://user-images.githubusercontent.com/14320932/213011584-75870595-988d-49bc-a7bf-cd1ffd146bca.png">

Makes SAs behave more like users. 

Even though they share the same `users` database table, the `is_service`
column distinguishes them. This PR makes the distinction a bit less
obvious by not filtering out SAs for some methods in the user store,
returning both account types and their respective account type
information so we can handle them properly on the UI.

We felt like this was a good enough approach for now, and a decent
compromise to move SAs forward. In the future, we may want to make a
full refactor with the `accounts` concept in mind, which we've
experimented with in the
[accounts-refactoring](https://github.com/Unleash/unleash/tree/accounts-refactoring)
branches (both OSS and Enterprise).
 
https://github.com/Unleash/unleash/pull/2918 - Moves this a bit further,
by introducing the account service and store.
2023-01-18 12:12:44 +00:00
..
api Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
apiToken Remove E flag (#2832) 2023-01-11 09:00:26 +02:00
auth Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
billing Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
cors Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
groups feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
instance-admin Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
invoice
maintenance Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
menu feat: service accounts (UI) (#2734) 2023-01-05 08:11:28 +00:00
network Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
projectRoles Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
serviceAccounts fix: SA unique token bug (#2901) 2023-01-16 13:10:08 +01:00
users Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
Admin.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
AdminRedirect.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
LazyAdmin.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
LazyAdminExport.tsx Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00