1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
Ivar Østhus
5f37d6bf16 #34 added a mock for the strategies templeates 2020-02-20 08:30:13 +01:00
Gard Rimestad
d2a09d89b9 Adding events api 2020-02-20 08:30:12 +01:00
Ivar Conradi Østhus
d2cbbb3125 Implemented a simple fethcer to replace httpclient 2020-02-20 08:30:11 +01:00
Jari Bakken
afc60a43fb Show newest features first 2020-02-20 08:30:10 +01:00
Ivar Conradi Østhus
f68cd65a9a amend 2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
bd8aecc664 Patch events should update features. 2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
7e48350b83 #18 Use real-db instead of dbMock to fetch feature toggles. 2020-02-20 08:30:09 +01:00
Jari Bakken
d1f4b65c51 Fail fast if DB is not configured 2020-02-20 08:30:09 +01:00
Jari Bakken
3fc8131a43 Simplify DB setup / migrations 2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
ed418bc687 Added fix where we mock database 2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
03086cdd86 18 store feature when featureCreated-event is emitted 2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
826f9d56e2 #18 storing events when they are created.
Also introduced mockery to mock db-access. Here we probably
need better modularisation and/or better dependecy management
(injecting of deps?).
2020-02-20 08:30:09 +01:00
Ivar Conradi Østhus
a1b0deaba0 Fixed failing validations 2020-02-20 08:30:08 +01:00
Ivar Conradi Østhus
6715d0c4a0 #18 reading db-config from DATABASE_URL or ini-file 2020-02-20 08:30:08 +01:00
svelovla
8033a231e4 #12 added featureDb which recieves events feature-events and should update projection 2020-02-20 08:30:08 +01:00
Ivar Conradi Østhus
60d2132c42 Fixed jshint complaints 2020-02-20 08:30:08 +01:00
Ivar Conradi Østhus
303d091d7d EventStore should return a promise 2020-02-20 08:30:08 +01:00
Ivar Conradi Østhus
1c864bead4 refactored eventStore 2020-02-20 08:30:08 +01:00
Ivar Conradi Østhus
03edb7601b renamed api to feature-api 2020-02-20 08:30:08 +01:00
andsandv
3dd35fcf71 Rename eventRepository to eventStore 2020-02-20 08:30:08 +01:00
andsandv
f4fd92d254 #13 Sending in a patch request when updating enabled flag 2020-02-20 08:30:08 +01:00
svelovla
6047f9494e #18 eventRepository can now emit events
There is an example in eventRepositorySpec on how to listen on events.
2020-02-20 08:30:08 +01:00
svelovla
4c003b7a20 changed 'status' to 'enabled': true|false in mock data 2020-02-20 08:30:07 +01:00
Jari Bakken
784a471a06 Add descriptions to featuresMock 2020-02-20 08:30:07 +01:00
svelovla
b575f646eb #18 feature-update event example 2020-02-20 08:30:07 +01:00
Ivar Conradi Østhus
dc54d8504a improved unleash-server api 2020-02-20 08:30:07 +01:00
svelovla
2ca8291eac #18 any-db-postgres, dbPool.js 2020-02-20 08:30:07 +01:00
Jari Bakken
f7fb65329c Move mock feature data behind a naive db interface. 2020-02-20 08:30:07 +01:00
svelovla
290a124aef #8 mocked api respons 2020-02-20 08:30:06 +01:00
ivaosthu
4a84149b63 Closes #16 - Initial express based server setup.
To start server locally:
npm run start-dev

To execute tests:
npm test
2020-02-20 08:30:06 +01:00