1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00
Commit graph

220 commits

Author SHA1 Message Date
Peter Clement
0e229c9b2e
Update automation test builder to support branching (#14387)
* add branch step definition

* update automation test builder to support branching

* rename Automation test builder

* example test

* pr comments
2024-08-15 16:07:42 +00:00
Peter Clement
f15847a40f
More automation typing in preparation for branching (#14378)
* More typing for automations

* undo test updates

* remove casting of loop step and add more types

* remove unused type

* pro

* Update types and fix ts issues

* add branching types

* remove any cast

---------

Co-authored-by: Adria Navarro <adria@budibase.com>
2024-08-14 21:39:39 +01:00
Adria Navarro
80ff963082 Remove unnecessary coercion 2024-08-07 17:01:59 +02:00
Adria Navarro
b9c1aa05b0 Add todo for types 2024-08-06 09:10:41 +02:00
Peter Clement
8539f6d853
Add helper function / builder for creating Automations for tests and improved types (#14220)
* basic class for generating and running an automation

* change filename

* add to existing tests

* remove dupe tests

* add types to automation steps

* add types to triggers

* update tests and typing

* fix types

* typo

* move all step schema types do types folder

* updated types

* typing pr comments

* remove unused param

* some more typing and tests

* more typing

* improve type map

* fix broken type

* this will surely fix my issue
2024-07-31 22:18:00 +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
cd98882127
Move secrets into backend-core. 2024-07-03 16:30:23 +01: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
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
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
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
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
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
217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +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
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
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
Peter Clement
bbdd3f017f Merge remote-tracking branch 'origin/master' into feat/automation-features 2024-01-11 10:56:45 +00:00
Peter Clement
78ef231e03 fix issue with being able to select any automation to trigger 2024-01-10 16:34:52 +00:00
Peter Clement
8d4010cc54 set condition outputs 2024-01-09 20:32:12 +00:00
melohagan
59ca41d837
Support number array binding filtering in automations (#12708)
* Support number array binding filtering in automations

* Remove ts-ignore

* Fix action trigger array test input

* Unit tests

* Refactor

* lint
2024-01-09 10:25:36 +00:00
Peter Clement
1437ce2e66 some small ux updates 2024-01-03 15:28:07 +00:00
Peter Clement
734ad2c1ae further work for triggering automations from other automations 2024-01-03 11:59:15 +00:00
Peter Clement
49676f2cae recomitting trigger another automation work 2023-12-30 18:51:08 +00:00
melohagan
3697ff3efc
Support Barcode, BigInt and User column types in automations (#12610)
* Support barcode and bigint in automations

* Support users in LinkedRowSelector

* Fix clear relationships if empty

* Make sure clearRelationships is initialised to false

* Revert yarn lock

* Refactor

* Refactor
2023-12-19 10:26:28 +00:00
melohagan
b4e0d98973 Add bindings support to meeting start / end dates (#11759)
* Deprecate zapier+make values1..5

* Allow dates in meeting invite to be bindable

* Add DrawerBindableSlot component

* Show calendar icon

* refactor

* Use cancel icon

* Disable cancel for JS bindings

* WIP

* WIP

* WIP

* Fix linkedIds svelte binding

* Label and icon update

* Handle arrays

* Support text area

* Add reactivity to text area icon

* Support boolean

* JSON support

* Remove rowControl

* Allow boolean field to have three states

* lint

* Refactor

---------

Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
2023-09-29 09:15:36 +00:00
melohagan
b57a8c1130 Move when filter empty option into filter drawer (#11262)
* Add when filter empty dropdown

* Add unit tests

* "fix" typescript issue

* Add empty filter check for external

* Add unit test

* Hide empty filter option for custom query

* Make onEmptyFilter optional

* Fix unit tests

* Remove onEmptyFilter automation input

* Remove unused var

* Refactor

* Fix path

* Fix type issue

* Fix types
2023-08-17 13:31:52 +01:00
melohagan
c0578d4cc2 Send meeting invite via automation email smtp (#10787)
* Pass calendar props into sendSmtpEmail

* Add calendar event to message

* Add Checkbox and DatePicker automation field UI

* Add URL prop

* Add url to sendSmtpEmail unit test

* Refactor

* Code review comments

* Make location optional

* Add EmailInvite type

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2023-06-08 14:25:35 +01:00
Rory Powell
abbd8c5c8b Merge branch 'master' into develop 2023-06-05 23:19:43 +01:00
Peter Clement
5a73b02827 update feature array to be an object 2023-05-26 11:02:47 +01:00
Peter Clement
70dfd9e8e5 Merge remote-tracking branch 'origin/develop' into feature/sync-automations 2023-05-26 09:26:51 +01:00