Commit Graph

57 Commits

Author SHA1 Message Date
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
Patrik Oldsberg a852c2f141 config,config-loader: fix lagging versions 2020-07-24 11:38:45 +02:00
Ivan Shmidt bcd7b2661a v0.1.1-alpha.16 2020-07-24 03:44:39 +02:00
Ivan Shmidt 415bdf42e1 v0.1.1-alpha.15 2020-07-22 13:44:33 +02:00
Ivan Shmidt 53dd867c02 fix(catalog): hmr in dev mode got incorrect module ref 2020-07-22 01:30:02 +02:00
Bilawal Hameed 491d1b70e1 Bump to v0.1.1-alpha.14 2020-07-15 11:49:02 +02:00
Patrik Oldsberg 6fdcc9f59a v0.1.1-alpha.13 2020-07-07 13:16:30 +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
Patrik Oldsberg dcaee07754 v0.1.1-alpha.12 2020-06-23 22:25:25 +02:00
Patrik Oldsberg 910057bc8a v0.1.1-alpha.11 2020-06-23 21:27:58 +02:00
Patrik Oldsberg 6300d4a917 v0.1.1-alpha.10 2020-06-23 16:08:05 +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
Fredrik Adelöw 38ba897857 v0.1.1-alpha.9 2020-06-17 15:24:54 +02:00
Patrik Oldsberg 6c25e61279 packages/backend-common: move express and cors types to deps 2020-06-17 09:41:13 +02:00
Patrik Oldsberg 76fd9f9401 packages,plugins: use backend:build for all backend packages + publish config and no tsconfig 2020-06-17 00:03:28 +02:00
Ivan Shmidt 9050b2011c fix: hmr memoize 2020-06-16 12:59:45 +02:00
Ivan Shmidt 016e2d8855 fix(backend-common): move some @types to devdeps for now 2020-06-16 09:49:31 +02:00
Ivan Shmidt 404bc724fb refactor(cli): split out bundling config for BE 2020-06-16 00:27:02 +02:00
Ivan Shmidt 417a4d538e feat: more clean hot hookz 2020-06-15 22:36:36 +02:00
Ivan Shmidt 9fe15e6726 feat: point all backend to src 2020-06-15 22:34:53 +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
Patrik Oldsberg dbc29358ed v0.1.1-alpha.8 2020-06-12 22:09:21 +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 c53bafc5f9 v0.1.1-alpha.7 2020-06-09 14:24:56 +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
Patrik Oldsberg d62c6748a0 v0.1.1-alpha.6 2020-05-20 10:49:53 +02:00
Marcus Eide 553bfddb8e Bump jest to 26.0.1 2020-05-19 14:22:14 +02:00
Patrik Oldsberg 682d9ce612 packages,plugins: point types to src/ for development + add pre/post back cli commands 2020-05-14 14:24:19 +02:00
Patrik Oldsberg 2bde9d3854 v0.1.1-alpha.5 2020-05-13 16:28:41 +02:00
Fredrik Adelöw 9114a08081 Rearrange ingestion and descriptor parsing 2020-05-13 10:34:53 +02:00
Fredrik Adelöw 1e8ad4b163 Bump TS to 3.9 2020-05-13 08:34:08 +02:00
Patrik Oldsberg 70040b22a7 drop support for src-relative imports 2020-05-06 16:48:55 +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