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

170 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
4c73d279aa fix(migration): Unleash should not start if migration fails.
Closes #320
2020-02-20 08:34:10 +01:00
Ivar Conradi Østhus
e0f2866be6 Use HTTP_HOST env variable as default host address 2020-02-20 08:34:10 +01:00
Ivar Conradi Østhus
d8f8bf6fd9 Clean up using servers listening and error events 2020-02-20 08:34:10 +01:00
Ivar Conradi Østhus
d757993432 Use options object with server.listen 2020-02-20 08:34:10 +01:00
Ivar Conradi Østhus
378544f326 createApp should wait for server.listen callback 2020-02-20 08:34:10 +01:00
Ivar Conradi Østhus
4f808f13eb feat(bind): Added option to bind to http address.
Closes #318
2020-02-20 08:34:10 +01:00
Simen Bekkhus
027e2814a8 refactor: use body-parser bundled with express (#304) 2020-02-20 08:34:09 +01:00
Ivar Conradi Østhus
67ec4b58fe fix(store): DB should not override createdAt if set. 2020-02-20 08:34:08 +01:00
ivaosthu
c544f81fba Bugfix: more informative name validation errors
Will know tell the user if the toggle name is already
in use by an active feature toggle or an archived toggle.

Also brings lates unleash-frontend fix, which prevents an
invalid form from submitting.

closes: #290, #291
2020-02-20 08:34:07 +01:00
ivaosthu
d7c1360cc7 A bit of house-keeping 2020-02-20 08:34:07 +01:00
ivaosthu
b3704666bc Add sign-out route #288 2020-02-20 08:34:07 +01:00
ivaosthu
95d36b89d7 Use joi instead of assert 2020-02-20 08:34:06 +01:00
ivaosthu
77482bd7a7 Fix typo in simple-authentication.js 2020-02-20 08:34:06 +01:00
ivaosthu
f4feab89f3 Implement authentication support for Unleash UI.
Closes: #261, #233, #232, #231
2020-02-20 08:34:06 +01:00
ivaosthu
57df35f6a5 Fix pathname reporting in middlewares 2020-02-20 08:34:06 +01:00
ivaosthu
1695a35555 Add unit tests for archived toggles 2020-02-20 08:34:06 +01:00
ivaosthu
4999bb93cf Should not be allow creation of archived toggle
closes #284
2020-02-20 08:34:05 +01:00
ivaosthu
089268825f Fix typo in custom validator 2020-02-20 08:34:04 +01:00
ivaosthu
37f9ed9570 Implement cookie-session support.
Sessions will be required to solve admin-auth.

I also refactored a few middlewares into seperate
files to make the code easier to read.

closes #262
2020-02-20 08:34:04 +01:00
ivaosthu
5711c46cbf Add cookie-session dependency 2020-02-20 08:34:04 +01:00
Simen Bekkhus
e5e8f3bee9 Upgrade Log4JS (#274) 2020-02-20 08:34:03 +01:00
Simen Bekkhus
3aa871ca97 Update prettier and fix lint 2020-02-20 08:34:03 +01:00
Ivar
f093d609ae Use pkginfo to resolve unleash-server version
closes #268
2020-02-20 08:34:03 +01:00
ivaosthu
6642978fc7 Remove log-message in test 2020-02-20 08:34:03 +01:00
Ivar
5e1fd4ae8e Simplofy name validator
closes #271
2020-02-20 08:34:03 +01:00
Ivar
e679d5d975 Fix formatting 2020-02-20 08:34:00 +01:00
Martin Lehmann
c957aeba94 Fix feature name validation regex 2020-02-20 08:33:47 +01:00
ivaosthu
12ef0db1f1 Bugfix: use basUrl when logging actual request path 2020-02-20 08:33:47 +01:00
Clint Brown
3e7098578b Allow underscores in name validation 2020-02-20 08:33:47 +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
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
54ca4ffc77 Upgrade prom-client and add gc-stats 2020-02-20 08:33:46 +01:00
Simen Bekkhus
3b260abbfe Replace sinon with lolex 2020-02-20 08:33:46 +01:00
ivaosthu
e97a3820a2 Added validation of provided LoggerProvider 2020-02-20 08:33:33 +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
ivaosthu
f2cc426ed7 Fix assert 2020-02-20 08:33:33 +01:00
ivaosthu
f91a24eabe Add metrics validation to avoid NaN #253 2020-02-20 08:33:33 +01:00
ivaosthu
18afb520d0 Strip uknown fields in client requests. closes #245 2020-02-20 08:33:33 +01:00
ivaosthu
f826c837fd Disable x-powered-by express header 2020-02-20 08:33:33 +01:00
sveisvei
b137cf0eaa add editable tests 2020-02-20 08:33:16 +01:00
sveisvei
a9b783443b shoulda woulda 2020-02-20 08:33:16 +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
Simen Bekkhus
e1cc0b2e99 Upgrade prom-client and yargs 2020-02-20 08:30:51 +01:00
sveisvei
93bb1ac66d should expose one feature 2020-02-20 08:30:51 +01:00
sveisvei
0ae24c68e6 Refactor routes setup, move test files, cleanup legacy 2020-02-20 08:30:51 +01:00
sveisvei
71815a1320 Remove legacy data support 2020-02-20 08:30:51 +01:00
sveisvei
375a8b1d4f Prettier/lint 2020-02-20 08:30:50 +01:00