Sam Rose
509950d368
Fix tests.
2024-12-09 09:35:01 +00:00
Martin McKeaveney
4a6e1b7192
fix all cases of lint rule
2024-04-10 17:39:12 +01:00
Sam Rose
217b39c232
Reenable no-unused-vars
2024-03-20 11:46:39 +00:00
mike12345567
ada052e043
Merging in develop - fixing some test cases which broke in the process.
2023-04-12 10:56:21 +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
mike12345567
24fc72657d
Fixing all broken test cases after breaking out context fully from jestSetup/backend-core jest loading.
2023-03-30 16:35:25 +01:00
mike12345567
47897c8afa
Basic moving around of assets.
2023-03-30 16:07:59 +01:00
mike12345567
b787fafb32
Removing skip setup, tests depend on this behaviour - will update in separate PR.
2023-03-01 19:45:59 +00:00
mike12345567
5b150e7748
Removing migration change and fixing #9738 - making sure that exports with excludeRows enabled don't include attachments.
2023-03-01 19:43:40 +00:00
mike12345567
923e9d8ec4
Adding in test check.
2023-03-01 19:17:45 +00:00
mike12345567
eba18a4159
Fix for #9739 - there was an issue with the mango syntax, when working with multi attachment columns it was using an AND comparator instead of OR, it should be searching for rows that contain any attachment column, not all attachment columns.
2023-03-01 19:01:13 +00:00
Rory Powell
940de8b6a0
Run CI steps in parallel ( #9760 )
...
* Parallel CI
* Add build to integration test
* Add checkout to top of each run
* Revert branch update for ci job
* Experiment with --runInBand for CI
* Fix intermittent backend-core migration test failure
* Fix hanging worker redis connection
* Update naming from reset to newTenant
2023-02-21 17:13:24 +00:00
Rory Powell
ae9979929a
Enable higher concurrency and resiliency in worker tests
2023-02-13 11:57:30 +00:00
adrinr
11a7742d90
Cleanup
2023-02-03 19:23:36 +00:00
adrinr
79ee85dab3
Remove remaning faker refs
2023-02-01 17:19:56 +00:00
adrinr
e4c898c327
Use test-containers for backend-core tests
2023-01-27 11:43:36 +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
Andrew Kingston
8567ae70af
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-29 12:22:56 +00:00
mike12345567
d6e9380c06
General work after running some tests in CI - general refactoring as well.
2022-11-28 17:54:04 +00:00
Andrew Kingston
abedb5d9eb
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-25 11:24:57 +00:00
Andrew Kingston
cd24c408fe
Rename migration
2022-11-24 14:27:49 +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
Andrew Kingston
c58067a589
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-21 10:30:25 +00:00
mike12345567
29dd98a7fc
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-16 18:12:31 +00:00
mike12345567
e7e2d91fef
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-15 16:45:25 +00:00
Rory Powell
1612044dc1
Merge branch 'develop' into subdomain-tenancy
2022-11-15 16:18:59 +00:00
Andrew Kingston
2b42b21b3a
Add migration to automatically convert legacy table settings into new action setting
2022-11-15 11:54:45 +00:00
Rory Powell
9973f2e161
Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates
2022-11-14 22:55:47 +00:00
mike12345567
45e7ef61ef
Re-building the context module to use a single object, meaning we can create new context frames and copy over whatever exists, then update.
2022-11-10 16:38:32 +00:00
mike12345567
c744d23832
Major update - removing the use of context for PouchDB instances, swapping knowledge of PouchDB to the PouchLike structure that replaces it.
2022-11-09 16:53:42 +00:00
Rory Powell
6783fd713e
Update tenancy detection to honour any subdomain pattern according to platform url
2022-11-09 16:35:16 +00:00
Rory Powell
d87e3904ae
Create generic quota sync migration
2022-09-28 13:13:37 +01:00
Rory Powell
79226777b1
Merge develop
2022-09-28 08:56:45 +01:00
mike12345567
192fb1307e
Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them.
2022-04-19 19:42:52 +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
53c0e37f83
Fix app list retrieval in migrations
2022-02-22 07:49:33 +00:00
Rory Powell
ed9c6c4ec8
Respect custom tenantIds in run migrations endpoint
2022-02-21 15:27:51 +00:00
Rory Powell
02c0c49594
Deprovision and local couch db url fix
2022-02-18 17:36:23 +00:00
Rory Powell
e001376e6d
Fix loop early exit
2022-01-28 11:32:28 +00:00
Rory Powell
767354ad60
Add app db support + app url migration
2022-01-27 10:40:31 +00:00
Rory Powell
3fdce44d56
Migrations 2.0
2022-01-24 10:48:59 +00:00
Rory Powell
fc043e116d
Support template and app import in quotas + logging
2022-01-18 15:37:16 +00:00
Rory Powell
439fa9a010
Refactor to allow for future quota migrations
2022-01-18 14:43:24 +00:00
Rory Powell
e58bd14dcc
Merge branch 'develop' into fix/sync-apps-reset-rows-quotas
2022-01-12 09:34:14 +00:00
mike12345567
12ae9993ca
Changing directory.
2022-01-10 19:30:35 +00:00