1
0
Fork 0
mirror of synced 2024-09-21 11:53:49 +12:00
Commit graph

478 commits

Author SHA1 Message Date
Adria Navarro
2e47410979 Reuse trigger 2024-07-24 17:11:03 +02:00
Peter Clement
7fd55fe27d
Automation trigger filtering (#14123)
* backend for triggering automation based on filters

* frontend for handling triggering automations on filter / old row

* lint and bug fix

* fix issue with test header

* make test data optional

* improve safety on trigger gate

* add support for running trigger with filter if no change happened but filter matches

* update var naming to actually make sense

* tests

* fix lint

* improve gating for shouldTrigger check

* remove unecessary cast

* unecessary tableId check

* frontend text updates

* resolving comments

* pro

* Update packages/types/src/documents/app/automation.ts

Co-authored-by: Sam Rose <hello@samwho.dev>

* link out to docs for trigger filtering

* fix pro

* more pr comments

* use getAppId

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-07-18 10:38:15 +01:00
Adria Navarro
f57d8a6147 Fix jest circular references 2024-07-17 17:46:48 +02:00
Adria Navarro
0e8d216e22 Unify newid 2024-07-12 11:36:18 +02:00
Dean
87b53ca452 Removed dupe import 2024-07-04 15:26:15 +01:00
Dean
3a1a600b91 PR feedback 2024-07-04 15:19:56 +01:00
Dean
a4a472b2d8 Squash the oldRow variable to avoid issues when serialising. Added a try/catch when queuing automations in dev 2024-07-04 12:13:58 +01:00
Dean
3c32c08ca8 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-07-03 17:17:08 +01:00
Sam Rose
3a74df0a4a
Fix tests. 2024-07-03 17:04:31 +01:00
Sam Rose
cd98882127
Move secrets into backend-core. 2024-07-03 16:30:23 +01:00
Dean
da91991cc1 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-07-03 10:43:20 +01:00
Peter Clement
9809bf1a91
Fix an issue where null values were causing an error in automation loops (#14083)
* fixes an issue where nulls weren't being handled correctly in loops

* remove log

* update recursive gate to be more specific

* use lodash for object check
2024-07-03 09:07:44 +00:00
Dean
b6d7715831 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-27 12:49:26 +01:00
Peter Clement
cf11009e24
Update OpenAI dependency to fix 400 errors (#14033)
* Update OpenAI dependency to fix 400 errors

* add some optional chaining for safety

* add caret

* fix tests
2024-06-27 12:17:48 +01:00
Dean
2243314314 Defaulting to null in the updateRow step causes issues in row mapping. Switching back to empty string 2024-06-27 09:10:28 +01:00
Dean
d10ef7b795 Alter logic for field config checks causing test issues 2024-06-26 15:34:00 +01:00
Dean
21c335caab Lint and tidying up 2024-06-26 14:29:42 +01:00
Dean
ed0f60d5d7 Added an app trigger update parser that will clean the testdata for the automation on save. Old values were not cleaned out. Added some padding to the PropField labels. General fixes 2024-06-26 11:10:15 +01:00
Dean
5ff8b03378 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-25 12:05:31 +01:00
Dean
e9985adcd4 Updates and refactoring of Automation flows 2024-06-25 11:52:11 +01:00
Peter Clement
1fa18ccfce
Some automation fixes and refactoring (#13870)
* fix issue where booleans were being parsed to null

* refactor looping out of automations

* clean out execute function in orchestrator of looping code

* re-add accidentally deleted file

* remove spec file

* remove log

* move code back into main automation thread

* account portal update

---------

Co-authored-by: Adria Navarro <adria@budibase.com>
Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-06-25 11:17:14 +01:00
Dean
d50a8e0746 Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update 2024-06-20 10:43:33 +01:00
Peter Clement
2b96cbcad7
Expose old row binding in automations (#13931)
* expose old row through the emitter

* accidentally added oldRow to step

* fix row fetch in external datasources

* add test for new / old row comparison

* add testing for old row update event

* allow function overloading in test files

* update tests per comments

* handle event race condition

* update test data modal to account for old row output

* switch icon positioning
2024-06-18 13:45:58 +01:00
Sam Rose
f3c82cbf38
Ensure that sort order is always lowercased. 2024-06-14 11:00:34 +01:00
Dean
3a10c57651 Merge commit 2024-06-13 16:56:25 +01:00
mike12345567
739ac5d03c Putting a better startup process in place for app migrations and adding them to bullboard as well. 2024-06-10 21:37:01 +01:00
Peter Clement
9a2de11203
Allow users to only specify a binding when adding attachments (#13819)
* add ability for user to toggle bindable input for attachment

* error handling for missing keys

* improve error handling for smtp attachments

* remove log

* add test

* fixing some pr comments

* update test
2024-06-07 08:35:18 +00: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