1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src/lib/features
Fredrik Strand Oseberg f34d187cd9
Refactor/separate client and admin store (#5006)
This PR is the first step in separating the client and admin stores.
Currently our feature toggle services uses the client store to serve
multiple purposes. 

Admin API uses the feature toggle service to serve both the feature
toggle list and playground features, while the client API uses the
feature toggle service to serve client features. The admin API can
change often and have very different requirements than the client API,
which changes infrequently and generally keeps the same stable structure
for long periods of time. This architecture is error prone, because when
you need to make changes to the admin API, you can very easily affect
the client API.

I aim to put up a stone wall between the two APIs. Complete separation
between the two APIs, at the cost of some duplication.

In this PR I have created a feature oriented architecture for client
features and disconnected the client API from the feature toggle
service. It now goes through it's own service to it's own store. For
feature toggle service I have duplicated and replaced the functionality
that serves /api/admin/features, I have kept a lot of the ugliness in
the code and haven't removed anything in order to avoid breaking
changes.

Next steps: 
* Move playground to admin API
* Remove client-feature-toggle-store from feature-toggle-service
2023-10-12 13:58:23 +02:00
..
access refactor: prefer eventService.storeEvent methods (#4830) 2023-09-27 14:23:05 +01:00
change-request-access-service
client-feature-toggles Refactor/separate client and admin store (#5006) 2023-10-12 13:58:23 +02:00
dependent-features feat: export dependent feature toggles (#5007) 2023-10-12 12:56:10 +03:00
export-import-toggles fix: enable segment importing for oss (#5010) 2023-10-12 13:43:43 +03:00
feature-naming-pattern refactor: remove check for feature naming data object (#4745) 2023-09-15 12:51:47 +02:00
feature-toggle Refactor/separate client and admin store (#5006) 2023-10-12 13:58:23 +02:00
group refactor: prefer eventService.storeEvent methods (#4830) 2023-09-27 14:23:05 +01:00
instance-stats Refactor/move features to feature oriented architecture (#4994) 2023-10-11 09:38:57 +02:00
playground Refactor/move features to feature oriented architecture (#4994) 2023-10-11 09:38:57 +02:00
private-project feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
project Refactor/move features to feature oriented architecture (#4994) 2023-10-11 09:38:57 +02:00
segment Refactor/move features to feature oriented architecture (#4994) 2023-10-11 09:38:57 +02:00
index.ts feat: allow to delete dependencies when no orphans (#4952) 2023-10-06 13:39:16 +02:00