1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
Commit Graph

39 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
58f36d03ea fix: add keepAliveTimeout option 2020-07-13 21:40:22 +02:00
Jakob Heuser
d2a3e72bd8
Feat: Adds server.create() (#606) 2020-06-17 08:03:02 +02:00
Ivar Conradi Østhus
5600b3fd61 fix: we are not ready for node 14 2020-05-02 09:12:36 +02:00
Ivar Conradi Østhus
770336e181 fix: add missing await for node 14 2020-05-02 09:00:08 +02:00
Ivar Conradi Østhus
924edc8109 fix: expose evaluated config and permissions object
To make it easier to extend unleash we should expose
evaluated configuration.
2020-04-28 08:20:29 +02:00
Ivar Conradi Østhus
d01c9d2dac
fix: use airbnb lint rules directly (#583)
This drops usage of finn-eslint rules as they are no
longer maintained.
2020-04-14 22:29:11 +02:00
Ivar Conradi Østhus
b912768923
feat: move secrets to settings (#577)
* feat: move secrets to settings

* feat: Add better support for detailed db options.

Added db field in options to allow better control of
db-options. Especially important to allow special chars
in database password which might lead to an invaid url
when defined as a database-url.

* fix: integrate logger with knex logger

* fix: remove secret option from all examples

* fix: more options.js unit tests

* fix: added settings-store e2e tests
2020-04-13 22:38:46 +02:00
Ivar Conradi Østhus
aac12fbee8
fix: metrics for toggle count and version (#565) 2020-02-28 14:50:32 +01:00
Shobhit Khandelwal
80a4d41f0f fix: Add option to disable database migrations #526 (#527)
Closes #526
2020-02-20 08:34:31 +01:00
Moritz Johner
d0f57a68b2 feat: add db query latency metrics (#473)
* feat: add db metrics
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>

* fix: use base unit

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
2020-02-20 08:34:27 +01:00
Ran Magen
d917e8018f feat: add option and functionality that allows a user to hook into feature mutations (#457)
* Add option and functionality that allows a user to hook into feature mutations.

* Fix function argument to include the entire event.
2020-02-20 08:34:26 +01:00
Ran Magen
79741f78e5 fix: Add DATABASE_URL_FILE for loading a db url from a file (#455) 2020-02-20 08:34:26 +01:00
ivaosthu
ccaab0c47b fix: LogProvider as option injected to unleash.
Instead of instructing users to do static calls
in to Unleash, she should instead be allwed to
specify the log provider as an option to Unleash.

This commit introduces the "getLogger" option,
a function responsible for creating a logger.
2020-02-20 08:34:24 +01:00
ivaosthu
ccce6056dd Fix: Add support for IPC connections.
Read this for more details:
https://nodejs.org/api/net.html#net_identifying_paths_for_ipc_connections
2020-02-20 08:34:23 +01:00
Benjamin Ludewig
a06d2c04bb Refactored state-service, schemas, added e2e tests #395 2020-02-20 08:34:22 +01:00
Benjamin Ludewig
9065c5ee88 feat: Added import & export through stateService #395 2020-02-20 08:34:22 +01:00
ivaosthu
8b9f9dbd2c fix: Database migrator does use the databaseSchema option
closes #387
2020-02-20 08:34:19 +01:00
ivaosthu
2dde9c4b95 chore(modernize): Modernize IndexController 2020-02-20 08:34:17 +01:00
ivaosthu
3903015cbb chore(modernize): Modernize HealthCheckController 2020-02-20 08:34:17 +01:00
Benjamin Ludewig
822d718a9b Add prometheus compatible feature metrics endpoint 2020-02-20 08:34:16 +01:00
ivaosthu
bc359c2b82 feat(metrics): Expose toggle updates to prometheus
closes #323
2020-02-20 08:34:11 +01:00
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
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
ivaosthu
f4feab89f3 Implement authentication support for Unleash UI.
Closes: #261, #233, #232, #231
2020-02-20 08:34:06 +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
375a8b1d4f Prettier/lint 2020-02-20 08:30:50 +01:00
sveisvei
6e4a22bf54 use object.assign and pass along options 2020-02-20 08:30:50 +01:00
sveisvei
fa6c28de8f pass along hooks, add test to server impl 2020-02-20 08:30:50 +01:00
Simen Bekkhus
21e0522116 Remove uncaught exception logging
This is the responsibility of the app
2020-02-20 08:30:48 +01:00
sveisvei
f425597640 fix lint 2020-02-20 08:30:41 +01:00
ivaosthu
d4d63af2b0 Option to disable request logging.
Because all request details are available via
prometheus there is no need to also log all requests.

This solves #164 but we should still replace log4j with something else.
2020-02-20 08:30:41 +01:00
ivaosthu
7057d11553 replace commander with yargs 2020-02-20 08:30:41 +01:00
ivaosthu
8e6bcafa24 Server Metrics: add response time and status codes 2020-02-20 08:30:40 +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
sveisvei
68ac0c71c9 fix typ0 2020-02-20 08:30:39 +01:00
sveisvei
1dab39f0f9 move app and server-impl into lib folder 2020-02-20 08:30:39 +01:00