Commit Graph

35 Commits

Author SHA1 Message Date
Patrik Oldsberg a37aa1d994 config-loader: pass in env as an option 2020-08-07 11:32:06 +02:00
Patrik Oldsberg 811328ed1f config-loader: use multiple config roots 2020-08-07 10:48:28 +02:00
Patrik Oldsberg 62222b543c config-loader,backend-common: refactor config loading to pass in path and use common util for backend 2020-08-03 21:24:44 +02:00
Andrew Thauer bd62f98070 fix: logger comment for errorhandler options 2020-07-27 07:46:33 -04:00
Patrik Oldsberg ea129d5bbd Merge pull request #1592 from andrewthauer/backend-status-checks
[Backend-Common] Add backend status check handler middleware
2020-07-27 12:53:47 +02:00
Andrew Thauer fa8e220f5c feat: ensure errors are logged in errorHandler
This adds winson logging for any 500 errors
2020-07-26 21:01:02 -04:00
Andrew Thauer 2a482bd3ef add status check router 2020-07-26 16:11:38 -04:00
Andrew Thauer 88e3581ebc feat: add backend status check handler middleware
The statusCheckHandler is a simple express middleware that helps
implement healthcheck/readiness endpoints. It can provided an optional
status function that should return a promise that resolves in either
true or false. The response will be either a 200 or 503 respectively.
Any errors that occur will be forwarded to next.
2020-07-26 15:27:00 -04:00
Ivan Shmidt 53dd867c02 fix(catalog): hmr in dev mode got incorrect module ref 2020-07-22 01:30:02 +02:00
Fredrik Adelöw 7389f326d9 chore: add import/newline-after-import lint rule 2020-07-02 11:25:04 +02:00
blam 17c6030ca0 feat(scaffolder): finally managed to get typescript to play nice with the new stage approach 2020-06-27 03:41:06 +02:00
blam 85d1fbaf3c chore(backend-common): expose a create logger function 2020-06-24 13:57:19 +02:00
blam f42a541ade chore(backend-common): Fixing the headers sent issue so we dont send the response twice 2020-06-24 11:18:58 +02:00
Fredrik Adelöw 07bc1a68a1 Merge pull request #1373 from spotify/freben/backend-config
feat(backend-common): base backend config
2020-06-22 14:48:38 +02:00
Fredrik Adelöw 609eea997a chore(backend-common): just tweaked the structure of useHotMemoize 2020-06-22 13:07:26 +02:00
Patrik Oldsberg 8127491b8b backend-common: change useHotCleanup to clean up on parents being disposed as well 2020-06-21 14:23:49 +02:00
Fredrik Adelöw 026b9547b9 address comments 2020-06-18 20:52:25 +02:00
Fredrik Adelöw 324b0a767a feat(backend-common): base backend config 2020-06-18 16:37:10 +02:00
Ivan Shmidt 9050b2011c fix: hmr memoize 2020-06-16 12:59:45 +02:00
Ivan Shmidt 417a4d538e feat: more clean hot hookz 2020-06-15 22:36:36 +02:00
Ivan Shmidt 0c27fc1a7b Merge branch 'master' of github.com:spotify/backstage into shmidt-i/backend-hmr-2 2020-06-15 15:46:23 +02:00
Patrik Oldsberg 3bdcc175d9 packages/backend-common: import winston as namespace 2020-06-14 13:44:32 +02:00
Ivan Shmidt a1a60ad9d1 feat: hmr logic for the backend 2020-06-11 02:51:06 +02:00
Fredrik Adelöw 709cc4004d feat(backend-common): add common code for service shell 2020-06-09 15:10:37 +02:00
Patrik Oldsberg 6a6a901a2b preparations for isolated TS modules 2020-05-28 18:37:13 +02:00
Fredrik Adelöw 44844af0bd Store entities completely in the database 2020-05-25 14:12:05 +02:00
Fredrik Adelöw 5961be5861 Simplify logger creation in tests 2020-05-06 13:30:58 +02:00
Fredrik Adelöw 1401141505 Forgot to add the error tests 2020-05-05 16:52:31 +02:00
Fredrik Adelöw 9724084186 It's InputError then 2020-05-04 16:42:40 +02:00
Fredrik Adelöw 129991fcfd Even denser errors 2020-05-04 16:34:17 +02:00
Fredrik Adelöw e5529c249b Better errors 2020-05-04 16:06:02 +02:00
Fredrik Adelöw 1b4b98cd05 Show stack in dev 2020-05-04 16:06:02 +02:00
Fredrik Adelöw 48b4a86a97 [backend] use common error types 2020-05-04 16:06:02 +02:00
Fredrik Adelöw fd0d4150f0 Address comments 2020-04-30 10:53:49 +02:00
Fredrik Adelöw 77d48d8794 Add a backend-common package with common concerns such as logging 2020-04-29 11:32:30 +02:00