1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/src/lib/routes/admin-api
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
..
project fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
user feat: allows creation of PATs for other users (#2718) 2023-01-02 10:49:57 +00:00
addon.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
api-token.ts task: Make operations on the API Token store auditable. (#2531) 2022-11-28 10:56:34 +01:00
archive.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
client-metrics.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
config.test.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01:00
config.ts Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
constraints.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
context.test.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01:00
context.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
email.test.ts
email.ts refactor: add OpenAPI schema to feature types controller (#1684) 2022-06-09 13:17:13 +02:00
environments.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
event.ts feat: add count to event list (#2036) 2022-09-02 08:35:31 +02:00
events.test.ts Feat/exp flag loader (#1961) 2022-08-26 08:22:42 +02:00
export-import.ts Export features (#2905) 2023-01-17 13:10:20 +02:00
favorites.ts Add favorite events (#2572) 2022-11-30 14:26:17 +02:00
feature-type.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
feature.ts skip change request (#2598) 2022-12-05 15:38:17 +01:00
index.ts Import export (#2865) 2023-01-10 15:59:02 +02:00
instance-admin.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
maintenance.ts Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
metrics.test.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01:00
metrics.ts perf: Simplify queries to prometheus (#2706) 2022-12-19 17:06:59 +01:00
playground.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
playground.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
public-signup.test.ts Maintenance mode middleware (#2707) 2022-12-19 09:01:04 +02:00
public-signup.ts Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
state.ts Fix(export API): accept true and false as param values (#2349) 2022-11-08 15:25:02 +01:00
strategy.test.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01:00
strategy.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag-type.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
tag.test.ts Scheduler abstraction (#2829) 2023-01-11 16:15:53 +01:00
tag.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
user-admin.ts feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
user-feedback.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00
user-splash.ts docs: prep to add OpenAPI spec to Unleash docs (#1907) 2022-08-12 11:37:57 +02:00