Commit Graph

56 Commits

Author SHA1 Message Date
Rory Powell e5e767f18d Correlation id's and log context (#7232)
* Correlation id's and log context

* fix build

* Remove redundant fields from LoggingProcessor.ts

* Only log correlation id when present e.g. this is not present on startup / shutdown / automations
2023-01-11 20:39:33 +00:00
Rory Powell fba7ef26ad Replace ts-jest with swc/jest (#9289)
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
mike12345567 d6e9380c06 General work after running some tests in CI - general refactoring as well. 2022-11-28 17:54:04 +00:00
mike12345567 658f12281d Fixes based on server build so far. 2022-11-26 15:10:41 +00:00
mike12345567 02ede5d067 Finally removing all usages of backend-core/ type imports from server, including some further typescript conversions. 2022-11-22 19:49:59 +00:00
mike12345567 3d98acc28a Minor test rework after improving startup, a lot of mocks weren't being used correctly. 2022-10-27 15:15:08 +01:00
mike12345567 51251b1fe2 Adding backup queue to bullboard if enabled. 2022-10-26 18:50:40 +01:00
Rory Powell 56456f3f6d Startup fixes 2022-10-25 13:37:26 +01:00
Rory Powell 39c83d8fb1 Move backup processing into pro 2022-10-24 15:28:43 +01:00
mike12345567 0bd2a18e46 Main types and work for the CRUD operations of app backup backend in pro + the listeners to handle exporting apps from the server. 2022-10-14 19:24:03 +01:00
Martin McKeaveney ddc585fad3 Merge branch 'develop' into qa/qa-core-jest 2022-09-15 01:18:58 +01:00
Andrew Kingston 4c301e962f Refactor server websocket dependency tree to fix jest tests 2022-09-13 09:54:25 +01:00
Martin McKeaveney c3f15b5af2 QA Core repo, and Jest API tests running end to end 2022-09-05 18:28:53 +01:00
Andrew Kingston d989e346ca Merge branch 'plugins-dev-experience' of github.com:Budibase/budibase into plugins-dev-experience-websocket 2022-09-01 14:39:30 +01:00
mike12345567 320cbfada3 Merge branch 'develop' of github.com:Budibase/budibase into plugins-dev-experience 2022-08-31 15:53:32 +01:00
Rory Powell 5f022e04a3 Merge branch 'develop' into user-fixes 2022-08-31 11:39:41 +01:00
Rory Powell dd86875ea2 Update shutdown logging 2022-08-31 10:47:41 +01:00
Rory Powell 368b48719c Conditionally enable elastic apm 2022-08-30 10:59:27 +01:00
Andrew Kingston c1822ecac6 Clean up websocket initialisation 2022-08-22 18:24:34 +01:00
Andrew Kingston 36b067a600 Merge branch 'plugins-dev-experience' of github.com:Budibase/budibase into plugins-dev-experience-websocket 2022-08-22 17:54:14 +01:00
Andrew Kingston 2c87d6e340 Initial work on websockets 2022-08-19 11:09:20 +01:00
mike12345567 38e97c7cdb Adding check to make sure build/watch occurs inside a plugin directory. 2022-08-18 13:29:49 +01:00
Andrew Kingston 2d5d22c914 Add sanity checks to plugin watcher 2022-08-18 12:22:32 +01:00
Andrew Kingston 249b960ff6 Treat any tarball as plugins when watching plugins directory 2022-08-18 11:23:24 +01:00
Michael Drury 63742ec7f0 Adding watch command to CLI. 2022-08-16 16:27:03 +01:00
Andrew Kingston 468e840a0c Only watch plugins in single tenant envs 2022-08-16 14:02:51 +00:00
Andrew Kingston 6093da79d6 Add hot reloading for component plugins via watched plugin directory 2022-08-15 22:23:45 +01:00
mike12345567 cfe3db835b Updating pino logging to remove health check spam. 2022-08-04 20:23:45 +01:00
mike12345567 c758e7e698 Removing un-used, dist import which broke build, updating yarn locks. 2022-07-14 16:49:20 +01:00
Martin McKeaveney fd184dd1b5 PR comments 2022-07-04 18:11:40 +01:00
Andrew Kingston e9d20abb0d Wrap admin user creation in a try/catch to provider better info in case of an error 2022-06-30 11:40:52 +01:00
Andrew Kingston 467cc27f47 Add env vars to automatically create initial admin user on first run 2022-06-30 11:28:52 +01:00
Rory Powell 361ffd224f Merge branch 'release' into feature/event-backfill 2022-06-06 09:50:06 +01:00
mike12345567 f1c81436cc Review comments and test fix. 2022-05-31 10:16:22 +01:00
mike12345567 e00e3c8660 Adding checking for zlib error, to try and stop if it occurs. 2022-05-30 21:54:24 +01:00
Rory Powell a9ab8b2629 Lots of failure handling and caching 2022-05-30 21:46:08 +01:00
mike12345567 b19882902b Adding process exits. 2022-05-30 21:24:23 +01:00
mike12345567 fa30457f2b Fixing issue with server not shutting down correctly when an error occurs, making sure that everything clears up gracefully. 2022-05-30 21:22:06 +01:00
Rory Powell c0d6fa34a4 Identity tenant and installation groups, property updates 2022-05-28 21:38:22 +01:00
Rory Powell 3c1b13083c Installation identities, upgrade / downgrade events, filling in more event properties 2022-05-26 23:57:14 +01:00
Rory Powell 8e885075b6 handlers -> publishers and analtics -> processors 2022-05-10 10:33:59 +01:00
Rory Powell 1f56d31ebb App backfill (wip) 2022-05-05 08:32:14 +01:00
Martin McKeaveney 9ca4dacbaa merge with master 2022-04-26 10:21:45 +01:00
Rory Powell 41144db055 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
Rory Powell 15b676ce1c Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-03-29 16:03:44 +01:00
Rory Powell 75d5c0c0b9 Merge branch 'feature/licensing' into feature/posthog-v2 2022-03-28 09:47:34 +01:00
Rory Powell 3e5e95a9c1 Add analytics to backend-core. Update server posthog usage 2022-03-25 13:04:34 +00:00
Rory Powell eefe4ea2ad Integrate usage quotas with licensing 2022-03-08 14:21:41 +00:00
Rory Powell a81041bc40 Add shared licensing cache 2022-03-03 13:37:04 +00:00
Rory Powell ba57813674 Integrate with standard release pipeline 2022-02-16 10:08:49 +00:00