1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00
Commit graph

85 commits

Author SHA1 Message Date
mike12345567
86150c58ce Fixing issue with BB_ADMIN environment variables for user creation introduced by user password becoming optional. Adding a test case as well to cover this to avoid it breaking in future. 2024-04-05 12:14:51 +01:00
Sam Rose
7ac2449201
Working on typing TestConfiguration.ts. 2024-02-28 10:08:42 +00:00
Sam Rose
30abf188a3
Bail out if server startup fails. 2024-02-16 15:13:26 +00:00
mike12345567
d9df2d34c8 Adding Koa API back in when automation feature only enabled, so that health check can still be provided, but rest of API is disabled. 2023-12-13 11:23:46 +00:00
Adria Navarro
db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
Adria Navarro
ea1853c78c Remove sentry from the backend 2023-10-18 10:51:09 +02:00
Adria Navarro
beb3136312 Fix sentry import 2023-10-17 10:59:46 +02:00
mike12345567
3b19c8410f Comments. 2023-08-21 15:31:35 +01:00
mike12345567
4c6c0f3002 Quick fix based on tests. 2023-08-17 16:51:11 +01:00
mike12345567
95b8a4ea10 Adding feature flagging, the option to only start the automations, or the API, meaning we can split the service if needed. 2023-08-17 16:39:25 +01:00
mike12345567
72438f531d Update for worker, get builder endpoints working for app builders. 2023-07-28 15:39:59 +01:00
Adria Navarro
7bd0078210 Clean code 2023-06-19 17:55:47 +01:00
Andrew Kingston
5e480a1527 Use socker.io redis adapter to broadcast events to all server instances 2023-05-25 08:48:56 +01:00
Andrew Kingston
0ee63417c1 Merge branch 'develop' of github.com:Budibase/budibase into spreadsheet-integration 2023-04-11 17:36:28 +01:00
Rory Powell
976b3a55ca Update logging to support dd trace attributes (#10086)
* Update logging middleware to integrate with pino for console logging

* Remove elastic apm references, use updated core middlewares

* Remove redundant LOG_LEVEL definitions

* Remove no longer needed jest logging overrides

* lint

* Backwards compat between console log helpers and pino

* Configurable DISABLE_HTTP_LOGGING

* Don't log 4xx as errors

* Remove redundant ENABLE_4XX_HTTP_LOGGING

* Cleanup migrations and event logging

* Improve bb-alert logging

* Add DISABLE_HTTP_LOGGING to helm chart

* Add ops endpoints for testing

* Disable http logging in dev

* Backwards compatible tracing implementation

* Naming update on http logging env var

* lint

* Update packages/backend-core/src/environment.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Merge

* Lint

* Fix console.warn failing mock by replacing with alerts mock instead

* Lint

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
Andrew Kingston
e0e5ca7a3c Merge branch 'develop' of github.com:Budibase/budibase into spreadsheet-integration 2023-03-28 15:47:53 +01:00
mike12345567
cf5316ec8d General fixes for open handles, attempting to find and close all issues in server which are stopping shutdown of Jest suite. 2023-03-27 19:38:49 +01:00
Andrew Kingston
36c953443f Add WIP initial multi-user websocket implementation for sheets 2023-03-05 18:57:05 +00:00
mike12345567
58fab29fb4 Main body of PR comments. 2023-02-24 13:32:45 +00:00
mike12345567
22f42ef898 Adding new mechanism to get the ipAddress and userAgent of call for audit logs. 2023-02-21 19:14:57 +00:00
mike12345567
ef30c03fa6 Merge branch 'develop' of github.com:Budibase/budibase into feature/audit-logs 2023-02-21 17:26:24 +00:00
mike12345567
6d83ea9bec Adding in event auditing to server/worker. 2023-02-15 18:03:55 +00:00
Jonny McCullagh
c5bc0d4ffb add datadog apm (#9693)
* add datadog apm

* datadog init not start

* extra env vars for DD APM

* add datadog apm

* datadog init not start

* extra env vars for DD APM

* add datadog apm

* remove space

* Enable typescript integration with apm agents

* Fix typo

---------

Co-authored-by: Jonny <Jonny McCullagh>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2023-02-15 16:28:20 +00:00
mike12345567
3f7f66257d Merge branch 'master' of github.com:Budibase/budibase into develop 2023-02-14 17:57:23 +00:00
mike12345567
015f95aa6d Quick fix to add the ability to update the app-service HTTP MB max limits. 2023-02-14 16:40:57 +00:00
Adria Navarro
9703564283 Add onClose back in tests 2023-02-04 20:30:12 +00:00
Adria Navarro
c78038f059 Dont close server on tests 2023-02-04 18:51:10 +00:00
adrinr
b2813db5db Handle db creation race conditions 2023-01-31 16:15:11 +00:00
adrinr
d160430ac8 Start race condition 2023-01-30 18:51:22 +00:00
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