Rory Powell
f153fb8e82
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
1dc3d44a44
Enable higher concurrency and resiliency in worker tests
2023-02-13 11:57:30 +00:00
adrinr
06ffca74cd
Cleanup
2023-02-03 19:23:36 +00:00
adrinr
8589ee24a8
Remove remaning faker refs
2023-02-01 17:19:56 +00:00
adrinr
d6da46a079
Use test-containers for backend-core tests
2023-01-27 11:43:36 +00:00
Rory Powell
0b2a445a9a
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
02ef58c7fc
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-29 12:22:56 +00:00
mike12345567
b5b74b9cad
General work after running some tests in CI - general refactoring as well.
2022-11-28 17:54:04 +00:00
Andrew Kingston
2a6ba0536f
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-25 11:24:57 +00:00
Andrew Kingston
92987ebfb8
Rename migration
2022-11-24 14:27:49 +00:00
mike12345567
6f6d000cb8
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
8d8e33a19e
Merge branch 'develop' of github.com:Budibase/budibase into side-panel
2022-11-21 10:30:25 +00:00
mike12345567
bf86640e9d
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-16 18:12:31 +00:00
mike12345567
806c7dd1af
Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch
2022-11-15 16:45:25 +00:00
Rory Powell
ad81adb30f
Merge branch 'develop' into subdomain-tenancy
2022-11-15 16:18:59 +00:00
Andrew Kingston
0935738fbd
Add migration to automatically convert legacy table settings into new action setting
2022-11-15 11:54:45 +00:00
Rory Powell
2212305f08
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
c356e0d152
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
bbc8965d55
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
ada0eb79bc
Update tenancy detection to honour any subdomain pattern according to platform url
2022-11-09 16:35:16 +00:00
Rory Powell
61aafa87cb
Create generic quota sync migration
2022-09-28 13:13:37 +01:00
Rory Powell
9af16738e5
Merge develop
2022-09-28 08:56:45 +01:00
mike12345567
ea6f580501
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
769f48f935
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
2022-04-19 16:45:27 +01:00
Rory Powell
65b0455313
Fix app list retrieval in migrations
2022-02-22 07:49:33 +00:00
Rory Powell
d673d27563
Respect custom tenantIds in run migrations endpoint
2022-02-21 15:27:51 +00:00
Rory Powell
d9ead48c59
Deprovision and local couch db url fix
2022-02-18 17:36:23 +00:00
Rory Powell
89fb5feeeb
Fix loop early exit
2022-01-28 11:32:28 +00:00
Rory Powell
e8e6fc549d
Add app db support + app url migration
2022-01-27 10:40:31 +00:00
Rory Powell
a66f14a289
Migrations 2.0
2022-01-24 10:48:59 +00:00
Rory Powell
94cb39829c
Support template and app import in quotas + logging
2022-01-18 15:37:16 +00:00
Rory Powell
747db3daa2
Refactor to allow for future quota migrations
2022-01-18 14:43:24 +00:00
Rory Powell
5671244274
Merge branch 'develop' into fix/sync-apps-reset-rows-quotas
2022-01-12 09:34:14 +00:00
mike12345567
b4f83fa867
Changing directory.
2022-01-10 19:30:35 +00:00