1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
Commit graph

452 commits

Author SHA1 Message Date
Dean
3a10c57651 Merge commit 2024-06-13 16:56:25 +01:00
Conor Webb
3c74d29cf6
Added the ability to disable automations (#13667)
* Added disabling functionality for automations

* Removed external trigger automations that are disabled from selectable bindings

* Added new popover option for disabling automations

* Added toggle UI Inside automation screen

* Added subtle styling to automation list for disabled functionality.

* Fixed linting error

* Removed duplicate bbui import

* Fixed store function spacing

* Fixed linting issues.

* Added the requested changes to how disable is handled.

* Fixed linting issues.

* Minor UI tweaks based on feedback.

* Added logic to prevent crons type automations from running when disabled.

* Removing webhook disable, causes trigger url to be re-generated.

* Add unit test to ensure disabled automations are filtered out of the active queue

* Fixed lint issues

* Reverted disabled unit test

* Added error throw for disabled automations

* Add test for when a disabled automation gets triggered

* Added try, catch for trigger function - error handling

* Fixed linting issues
2024-05-20 15:13:08 +01:00
Dean
37dd75823f PR feedback, signature to signature single 2024-05-17 17:04:15 +01:00
Dean
166206f185 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-15 16:35:31 +01:00
mike12345567
906e7686d6 Removing messaging check - not important. 2024-05-15 12:14:21 +01:00
Dean
55e7ea55f7 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-14 14:48:09 +01:00
mike12345567
39147b80b6 PR comments. 2024-05-14 11:23:50 +01:00
mike12345567
5b5e7e47a2 Fixing some issues with updating rows with attachments, there were some UI bugs that had been raised (undefined being displayed) and the uploading from a URL was not working as expected, due to the stream not matching the expected format of the S3 SDK - this has been fixed by converting the stream to a true readable stream with . 2024-05-13 18:11:40 +01:00
Dean
0589a6a730 Refactored signature from previous array implementation to the new single approach. Added support for automations 2024-05-13 16:19:02 +01:00
Adria Navarro
9696f19ead Fix test 2024-05-13 12:23:56 +02:00
Dean
6b409166ee Updated expected error message in tests 2024-05-10 15:08:15 +01:00
Peter Clement
db273bcd36
Support attachment columns in Automations (#13567)
* base work to support attachments in create / update row

* handle single attachment column

* fix tests

* pro

* fix some types

* handle case where file exists in storage

* improve attacment processing

* refactor slightly and ensure correct url is used for existing attachments

* add test

* Fixing a build issue.

* update tests

* some lint

* remove cursed backend-core test util

* addressing pr comments

* refactoring nasty automationUtils upload code

* remove uneeded check

* use basneeame for fallback filename

* add a test to ensure coverage of single attachment column type

* fail early when fetching object metadata

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2024-05-09 14:30:56 +01:00
Sam Rose
4722fd1cab
Fix queryRows.spec.ts 2024-05-07 17:16:47 +01:00
Peter Clement
a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
Adria Navarro
ec93ea59c1 Remove // eslint-disable-next-line @typescript-eslint/no-unused-vars 2024-04-17 12:17:03 +02:00
Sam Rose
193d40f86c
Fix some tests. 2024-04-03 15:40:10 +01:00
Sam Rose
5e6a9d2176
Convert executeQuery.spec.js to TypeScript and make it hit real databases. 2024-03-22 14:41:09 +00:00
Sam Rose
217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +00:00
Sam Rose
5d42804020
Migrate some of RowAPI, WIP 2024-03-01 15:20:07 +00:00
Gerard Burns
de0414afbe
Update Svelte Major Version to 4 (#13036)
* update svelte versions

* temporarilly disable svelte warnings

* change bbap version pointed to

* remove sub module specifying svelte version

* point at updated account-portal

* add type declaration for svelte in the server

* add svelte transformer for server jest tests

* remove svelte from bbui package.json

* get builder tests working

* linting fixes

* prettier fixes

* fix server test

* fix another server test

* fix server serverlog test

* account-portal-version

* pin master version of pro

* revert hbs doc file in server to use triple braces, ensures nothing gets escaped
2024-02-22 13:19:29 +00:00
Michael Drury
e03cd4af56
Merge branch 'master' into fix/budi-8010 2024-02-15 13:28:07 +00:00
melohagan
649dafba47
n8n automation action integration (#12992)
* Add n8n automation action

* Add authorization header support

* add unit tests

* Replace test.com with example.com

* Add HttpMethod enum to types

* fix unit test

* Add required field label asterisk
2024-02-15 13:05:03 +00:00
mike12345567
ea5d04e1d3 Addressing PR comments. 2024-02-14 17:15:42 +00:00
mike12345567
cfd1c98c85 Updating timeouts for automations, making it easier to manage/find the various timeout limits. Also adding a new environment variable AUTOMATION_THREAD_TIMEOUT which can be used to control how long automations can run for. 2024-02-14 11:44:07 +00:00
mike12345567
169fec29c6 Some quick fixes, making sure that automation queries respect timeout, they will timeout within the usual range. 2024-02-13 18:21:41 +00:00
Peter Clement
2660149fea move constant to shared-core 2024-02-13 15:14:03 +00:00
mike12345567
8bf79c5f10 Adding some basic cron validation to publishing, currently the error is not explained if it is hit - still need some frontend for this, but this now means that an error is provided to users when attempting to publish, and we can re-use this validation in the automation UI. Need to have both backend and frontend validation as invalid CRONs will already exist, backend makes sure these are error'd on. 2024-02-09 18:04:40 +00:00
Adria Navarro
573096e869
Merge branch 'master' into revert-12934-revert-12930-revert-12929-revert-12769-isolated-vm 2024-02-08 18:15:36 +01:00
Sam Rose
8e9db069e5
Remove all uses of test.com in the code, replace them with example.com and create a lint rule to prevent this in future. 2024-02-08 16:32:14 +00:00
Adria Navarro
8dfcc3aeb1
Revert "Revert "Migrate from vm to isolated-vm"" 2024-02-02 12:02:09 +01:00
Sam Rose
332a201ae7
Revert "Migrate from vm to isolated-vm" 2024-02-02 09:51:46 +00:00
mike12345567
2ec4fd5d67 Fixing executeScript test cases to cover the issue we experienced, make sure context is correctly accessible. 2024-02-01 16:11:44 +00:00
Michael Drury
b69559566a
Merge branch 'master' into string-split-check 2024-01-30 11:38:03 +00:00
Sam Rose
b3c949b091
Fix case where if a binding returned an int it would throw an error. 2024-01-30 11:06:09 +00:00
Sam Rose
72d63d0c00
Rename executeSynchronously to be a bit less confusing, as it does not execute synchronously. 2024-01-30 10:57:25 +00:00
Sam Rose
456817ee7b
More loop step typing improvements. 2024-01-30 10:37:23 +00:00
Sam Rose
67a848bb86
Fix tests. 2024-01-30 10:23:11 +00:00
Sam Rose
669b0743ac
Typing improvements around automation loop tests. 2024-01-30 10:00:44 +00:00
Sam Rose
2bfa4c6f91
Mild refactor of stringSplit to make it easier to understand. 2024-01-29 17:43:08 +00:00
Sam Rose
b5672d676f
Add a check to stringSplit that gives a nicer error message is a non-string is passed. 2024-01-29 17:38:52 +00:00
Adria Navarro
d806029075
Merge branch 'master' into remove_test_flakiness 2024-01-29 15:21:24 +01:00
Adria Navarro
cb53d31833 Renames 2024-01-26 10:56:38 +01:00
mike12345567
ccc751d09c A quick refactor to get rid of the old 'FieldTypes' enumeration, considering how core it is to all data handling in Budibase, the fact we had both 'FieldType' and 'FieldTypes' was confusing - righting this fully. 2024-01-24 16:58:13 +00:00
Peter Clement
c36f7c61c0 Merge remote-tracking branch 'origin/master' into feat/automation-ux 2024-01-17 09:58:59 +00:00
Peter Clement
61b34b3ead mock out pro call 2024-01-16 16:58:13 +00:00
Peter Clement
2b73bf381e fix tests 2024-01-16 16:22:11 +00:00
Peter Clement
44a9c3fe86 another missed name 2024-01-15 10:47:10 +00:00
Peter Clement
41051a8d69 more naming 2024-01-15 10:16:13 +00:00
Peter Clement
394a8c4d94 more naming updates 2024-01-15 10:11:16 +00:00
Peter Clement
601ec35549 rename instance of trigger step to triggerAutomationRun 2024-01-15 10:00:37 +00:00