1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

21 Commits

Author SHA1 Message Date
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
Ivar Conradi Østhus
79fc089a35 fix: stateService undefined 2020-12-17 19:43:01 +01:00
Ivar Conradi Østhus
333601eaea
fix: Logout should not be xhr call (#576)
closes #520
2020-03-29 22:22:19 +02:00
ivaosthu
a8de54dd73 chore(modernize): Use base controller for all client controllers 2020-02-20 08:34:17 +01:00
ivaosthu
307b68a67e chore(modernize): cleanup api-def 2020-02-20 08:34:17 +01:00
ivaosthu
e4cfd54529 chore: Simplify client-controller constructor 2020-02-20 08:34:17 +01:00
ivaosthu
8913c4fac5 chore(modernize): Modernize ClientIndexController 2020-02-20 08:34:17 +01:00
ivaosthu
461011b894 chore(modernize): Modernize FeaturesController 2020-02-20 08:34:17 +01:00
ivaosthu
2dde9c4b95 chore(modernize): Modernize IndexController 2020-02-20 08:34:17 +01:00
ivaosthu
b870e209a9 chore(modernize): Modernize BackstageController 2020-02-20 08:34:17 +01:00
ivaosthu
3903015cbb chore(modernize): Modernize HealthCheckController 2020-02-20 08:34:17 +01:00
Ivar
f093d609ae Use pkginfo to resolve unleash-server version
closes #268
2020-02-20 08:34:03 +01:00
Ivar
d58289540c Include module version number in /api reponse 2020-02-20 08:33:46 +01:00
Ivar
6bc23f04da Added option to disable legacy routes. Closes #244 2020-02-20 08:33:46 +01:00
sveisvei
0ae24c68e6 Refactor routes setup, move test files, cleanup legacy 2020-02-20 08:30:51 +01:00
ivaosthu
8beb4b8876 Add simple API resource #191 2020-02-20 08:30:46 +01:00
ivaosthu
b8014fdddf Server Metrics with Prometheus
Implementation use internal eventBus to enable loose counting in the app.

read more at https://prometheus.io/

Closes #98
2020-02-20 08:30:40 +01:00
ivaosthu
90859701c6 remove all lerna stuff 2020-02-20 08:30:37 +01:00
sveisvei
7bacad7b90 use lerna for multipackaging 2020-02-20 08:30:26 +01:00
Ivar
b2e9f38965 Statefull modules should be injected from top 2020-02-20 08:30:25 +01:00
ivaosthu
0325cd92fb Move all routes to a routes folder 2020-02-20 08:30:24 +01:00