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

37 Commits

Author SHA1 Message Date
Simen Bekkhus
3aa871ca97 Update prettier and fix lint 2020-02-20 08:34:03 +01:00
Ivar
e679d5d975 Fix formatting 2020-02-20 08:34:00 +01:00
Ivar
eb346756d2 Clean up intervals.
We use intervals in three places and we could probably organise them
better in the future. As long as they all do unref they do not form
any issues for us and I will just let them be as is for now.

This closes #186
2020-02-20 08:33:46 +01:00
Simen Bekkhus
3b260abbfe Replace sinon with lolex 2020-02-20 08:33:46 +01:00
ivaosthu
f5e9ca3bbe Implement support for logger provider.
This allows the users of 'unleash-server' to programatically
change the logger implemnentation. #175
2020-02-20 08:33:33 +01:00
sveisvei
ae245293f4 protection against edit on built in strategies 2020-02-20 08:30:52 +01:00
Ivar
915158212c Add support for sdkVersion in client registration 2020-02-20 08:30:52 +01:00
sveisvei
1131440535 auto disable, and do not serve archived toggle 2020-02-20 08:30:52 +01:00
sveisvei
375a8b1d4f Prettier/lint 2020-02-20 08:30:50 +01:00
sveisvei
1d3faca238 fix lint 2020-02-20 08:30:45 +01:00
ivaosthu
79de8fb7ed Added api for updating a strategy
relates to #184
2020-02-20 08:30:43 +01:00
ivaosthu
ba5810506f Fix failing tests 2020-02-20 08:30:43 +01:00
ivaosthu
97f6731140 Strategy list should be sorted by name 2020-02-20 08:30:43 +01:00
sveisvei
d160fe933f serve with metadata 2020-02-20 08:30:43 +01:00
ivaosthu
51442a6cc4 Remove client_strategies table
We can just have a strategies column in the client_applications
table. This solves all our needs, and thus avoids the need
for an extra table.
2020-02-20 08:30:42 +01:00
ivaosthu
8764b952b3 A client-register should upsert client_applications table 2020-02-20 08:30:42 +01:00
sveisvei
5ad5127f81 fix lint and mock 2020-02-20 08:30:42 +01:00
sveisvei
3a6e7d02ef client applications 2020-02-20 08:30:42 +01:00
sveisvei
066fe5fdd2 recieve togglename to archive or revive via path 2020-02-20 08:30:42 +01:00
sveisvei
92111890d9 uppercase event type key constants 2020-02-20 08:30:42 +01:00
Ivar Conradi Østhus
377ad43bab Delete app.js 2020-02-20 08:30:42 +01:00
ivaosthu
9c6fad83c2 Added enpoint for fetching application implementing a strategy
`/api/client/applications?strategyName=foo` now returns list of
apps implementing that strategy!
2020-02-20 08:30:42 +01:00
ivaosthu
b12a188faf amend prev commit 2020-02-20 08:30:42 +01:00
ivaosthu
6cdffb22d0 fix strateiges format for /client/applications 2020-02-20 08:30:42 +01:00
sveisvei
a1303f4c42 only log if num of cleaned is above 0 2020-02-20 08:30:41 +01:00
sveisvei
f425597640 fix lint 2020-02-20 08:30:41 +01:00
ivaosthu
7057d11553 replace commander with yargs 2020-02-20 08:30:41 +01:00
ivaosthu
f1a24be0e2 minor cleanup 2020-02-20 08:30:40 +01:00
sveisvei
e55378e1c4 Better client informations from the API.
Impelements:
- http://unleash.host.com/api/client/seen-toggles
- http://unleash.host.com/api/metrics/feature-toggles
- http://localhost:4242/api/client/applications
- http://localhost:4242/api/client/applications/:appName
2020-02-20 08:30:40 +01:00
sveisvei
cad07cc6ec use options obj 2020-02-20 08:30:39 +01:00
ivaosthu
14deebae1f options to specify different db-schema 2020-02-20 08:30:38 +01:00
ivaosthu
5735b0931a Cleanup route/metrics a bit 2020-02-20 08:30:38 +01:00
ivaosthu
46bc109ff9 fix tests 2020-02-20 08:30:37 +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