1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib
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
..
__snapshots__ feat: initial status box implementation (#2913) 2023-01-18 10:10:41 +01:00
addons feat: add error logs for addons (#2739) 2023-01-11 09:13:22 +01:00
db feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
error Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
middleware feat: report app names only if below a threshold (#2737) 2023-01-12 11:26:59 +01:00
openapi feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
proxy Fix crashing search bars (#2765) 2022-12-28 12:35:27 +02:00
routes feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
schema fix: enforce weight precision to 1 decimal (#2749) 2023-01-05 12:39:18 +01:00
services feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
types feat: adapt user logic to better adapt to SAs (#2917) 2023-01-18 12:12:44 +00:00
util Fix crashing search bars (#2765) 2022-12-28 12:35:27 +02:00
app.test.ts feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
app.ts feat: report app names only if below a threshold (#2737) 2023-01-12 11:26:59 +01:00
create-config.test.ts If baseUriPath is set format it, but if it's not, don't override default with empty string (#2118) 2022-11-08 15:29:14 +01:00
create-config.ts Remove E flag (#2832) 2023-01-11 09:00:26 +02:00
default-custom-auth-deny-all.ts refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
event-hook.test.ts fix: convert event-hook.test.js to typescript 2021-09-14 19:34:35 +02:00
event-hook.ts fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
internals.ts Define exports for enterprise (#2435) 2022-11-17 13:02:40 +02:00
logger.test.ts fix: convert more tests to typescript 2021-09-14 20:30:37 +02:00
logger.ts feat: add option for LOG_LEVEL (#803) 2021-04-23 15:31:12 +02:00
metric-events.ts fix: refactor event types 2021-04-29 10:21:29 +02:00
metrics.test.ts feat: expose number of registered applications metric (#2692) 2022-12-16 11:16:51 +00:00
metrics.ts feat: expose number of registered applications metric (#2692) 2022-12-16 11:16:51 +00:00
server-impl.test.ts fix: Do not call store function in constructor 2022-09-15 09:48:14 +02:00
server-impl.ts Fix/remove settings cache (#2694) 2022-12-14 17:35:22 +01:00