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