1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/lib
Christopher Kolstad c17a1980a2
Add service layer
This simplifies stores to just be storage interaction, they no longer react to events.

Controllers now call services and awaits the result from the call.

When the service calls are returned the database is updated.
This simplifies testing dramatically, cause you know that your state is
updated when returned from a call, rather than hoping the store has
picked up the event (which really was a command) and reacted to it.

Events are still emitted from eventStore, so other parts of the app can
react to events as they're being sent out.

As part of the move to services, we now also emit an application-created
event when we see a new client application.

Fixes: #685
Fixes: #595
2021-01-21 10:59:19 +01:00
..
db Add service layer 2021-01-21 10:59:19 +01:00
error feat: Add technical support for projects 2020-11-23 21:47:51 +01:00
middleware fix: add support for basic auth with simple-auth (#659) 2020-12-03 21:29:01 +01:00
routes Add service layer 2021-01-21 10:59:19 +01:00
services Add service layer 2021-01-21 10:59:19 +01:00
util fix: version should be part of ui-config (#616) 2020-08-03 13:34:10 +02:00
app.js fix: stateService undefined 2020-12-17 19:43:01 +01:00
app.test.js
authentication-required.js fix: add 'options' field to AuthenticationRequired 2020-05-14 22:32:33 +02:00
event-differ.js Add service layer 2021-01-21 10:59:19 +01:00
event-differ.test.js
event-hook.js
event-hook.test.js
event-type.js Add service layer 2021-01-21 10:59:19 +01:00
events.js
extract-user.js fix: add user-store (#590) 2020-05-12 23:05:26 +02:00
logger.js
logger.test.js
metrics-helper.js
metrics.js feat: add stop() method to gracefully terminate unleash (#665) 2020-12-16 14:49:11 +01:00
metrics.test.js feat: add stop() method to gracefully terminate unleash (#665) 2020-12-16 14:49:11 +01:00
missing-permission.js
options.js feat: First draft of admin Open API specification (OAS) (#652) 2020-12-03 21:09:16 +01:00
options.test.js feat: Add support for explicitly set database version. (#654) 2020-11-20 11:37:56 +01:00
permissions.js feat: Add technical support for projects 2020-11-23 21:47:51 +01:00
server-impl.js fix: stateService undefined 2020-12-17 19:43:01 +01:00
server-impl.test.js feat: Adds last-seen dat on toggles 2020-12-22 11:05:00 +01:00
timer.js
timer.test.js
user.js fix: replace @hapi/joi with joi 2020-07-31 22:15:09 +02:00
user.test.js fix: add user-store (#590) 2020-05-12 23:05:26 +02:00