Commit Graph

315 Commits

Author SHA1 Message Date
mike12345567 5a3e287d2d Merge branch 'master' of github.com:Budibase/budibase into develop 2023-02-21 16:53:28 +00:00
melohagan 02ed5fd37a
Handle webhook errors (#9715) 2023-02-16 16:23:44 +00:00
Adria Navarro 59b1137060
Merge pull request #9419 from Budibase/feature/dependencies-image
Chore - use testcontainers
2023-02-06 09:09:07 +00:00
Martin McKeaveney f94dd598c4 merge 2023-02-05 22:11:37 +00:00
adrinr f64bf4e0d8 Replace beforeeach for before alls 2023-02-03 19:02:40 +00:00
melohagan 31eb4cf95d
Fix/automation update deletes relationship (#9468)
* Add padding to text field input

* Apply padding to modal binding input

* Support relationships in automation bindings

* Trim automation field keys

* Trim automation field name

* Empty string check

* Add checkbox for clearing relationships update row

* Added state for automation field metadata

* clearRelationships updateRow check

* Padding tweak
2023-01-31 10:11:56 +00:00
adrinr e11f1d1d44 Fix issues with parallel tests and self/cloud modes 2023-01-26 18:20:21 +00:00
mike12345567 d189fc82f8 Adding test cases as per PR comments. 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 4ac3102f2a Fix automation test 2023-01-26 18:20:21 +00:00
mike12345567 c99b4ae3a3 Adding test cases as per PR comments. 2023-01-25 18:27:58 +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
Peter Clement 9bf37b34ae
Server and Worker tests (#8928)
* automation unit tests

* row processor tests

* update executeQuery test

* update groups assertion

* some more worker tests

* plugin tests and tidying up

* linting

* temporarily disable group tests

* more tests

* fix import

* fix backup tests

* add pro mocks to worker

* check for app existence in import test

* test new tsconfig

* testing changes

* Pro test utils (#9020)

* Pro test utils changes

* Add test fixes

* Remove ts-ignore

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2022-12-12 22:02:32 +00:00
mike12345567 ab914bcca2 Final fixes after re-running all test suites. 2022-11-28 19:12:23 +00:00
mike12345567 482c130a2e Some fixes after re-running server tests. 2022-11-28 18:14:10 +00:00
mike12345567 4868083208 Fixes based on server build so far. 2022-11-26 15:10:41 +00:00
mike12345567 0a32126c5b Automation overhaul to Typescript, plus type updates. 2022-11-25 19:57:07 +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
mike12345567 cca1b59c76 Final server test fixes, after all updates to context/removal of context faking. 2022-11-15 19:04:39 +00:00
mike12345567 3035c3a3a1 Typescript conversions - trying to get all of context/db layer into TS. 2022-11-11 11:57:50 +00:00
Martin McKeaveney c2966025b4 merge with master 2022-10-31 13:44:23 +00:00
mike12345567 80d4220cb5 Adding backup queue to bullboard if enabled. 2022-10-26 18:50:40 +01:00
mike12345567 d32e4586c2 Refactoring a lot of content around webhooks to Typescript, as well as fixing webhooks and automation app IDs on import of new app. 2022-10-25 18:19:18 +01:00
Mel O'Hagan aceb7f7107 Unused import 2022-10-25 15:19:46 +01:00
Mel O'Hagan b21919f9b0 Handle multiple automation loop bindings 2022-10-25 15:19:07 +01:00
Rory Powell 5c80b2ca06 Startup fixes 2022-10-25 13:37:26 +01:00
mike12345567 a20ad3233e 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
mike12345567 3507704680 Fixes for cronjob stop - correctly handle this without stalled job handle. 2022-10-14 13:26:42 +01:00
mike12345567 94188771df Handling listeners as part of queue creation, rather than external part. 2022-10-13 17:55:05 +01:00
mike12345567 9c57300030 Renaming some queue to automationQueue, getting build working. 2022-10-13 17:39:26 +01:00
mike12345567 50ca437f03 Moving queue implementation into backend-core - so that pro can access. 2022-10-13 17:27:04 +01:00
mike12345567 33e31fe2e4 Refactoring more to Typescript, adding the ability to use the _find API of CouchDB. 2022-10-12 17:02:23 +01:00
Shumpei Kishi fb0a1468f7 Adding a validation check for undefined 2022-10-03 17:34:06 +09:00
Shumpei Kishi 12fe55a7f0 Fixing the validation logic to accept boolean false value. 2022-10-03 15:55:11 +09:00
Rory Powell 9af16738e5 Merge develop 2022-09-28 08:56:45 +01:00
Martin McKeaveney d0ad7bbb67 merge with master 2022-09-26 17:57:23 +01:00
Peter Clement 334ac0d512 Automation fixes 2022-09-23 13:35:27 +01:00
Mel O'Hagan a5571fc59a CC and BCC interface 2022-09-21 15:58:04 +01:00
mike12345567 dcada36111 Fix for #7431 - reboot didn't work at all previously which is why apps couldn't be published with it enabled, this is now a self host only feature, I've removed the ability to enable a reboot cron in the Cloud and it will not run the lookup/execution. 2022-09-07 17:05:17 +01:00
Rory Powell 6077814823 Merge branch 'develop' into user-fixes 2022-08-31 11:39:41 +01:00
Rory Powell ae3e4a7d6e Update shutdown logging 2022-08-31 10:47:41 +01:00
Martin McKeaveney 0089a07096 merge 2022-08-30 10:33:37 +01:00
Rory Powell c104a15122 Disable automation chaining in cloud 2022-08-23 12:35:53 +01:00
Rory Powell cbc4a65749 Disable recursive row update on cloud automations 2022-08-23 11:41:58 +01:00
melohagan bfe5b010da
Merge pull request #7364 from Budibase/bug/sev2/app-action-no-field-crash
Null safety for App Action no fields
2022-08-23 11:28:29 +01:00
Rory Powell 96c110abe6 enable stalled job disabling 2022-08-20 11:02:22 +01:00
Rory Powell b9c16331ce Add logging to all event listeners for automations + stalled handling stub 2022-08-19 23:14:19 +01:00
Rory Powell 65d4544cc5 Add support for NODE_DEBUG to app-service in kubernetes 2022-08-19 15:21:53 +01:00
Mel O'Hagan 326548c7fa tableId null safety 2022-08-19 14:57:15 +01:00
mike12345567 2fbf39947a Merge branch 'master' of github.com:Budibase/budibase into develop 2022-08-11 16:28:46 +01:00
Martin McKeaveney 25571d7751 pr comments 2022-08-10 16:26:10 +01:00