Commit Graph

27190 Commits

Author SHA1 Message Date
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
Dean 94c7f50f6e Merge remote-tracking branch 'origin/master' into dean-fixes 2024-07-18 10:11:02 +01:00
Dean 6b1d16420e Improves error handling around grid relationship cell when handling invalid requests 2024-07-18 09:49:35 +01:00
Adria Navarro f57d8a6147 Fix jest circular references 2024-07-17 17:46:48 +02:00
Sam Rose aea9cda8f5
wip 2024-07-17 15:45:35 +01:00
Adria Navarro 88aa0fc9cf Fix types 2024-07-17 16:40:19 +02:00
Adria Navarro 812afdb85e Fix tests (breaking because of mutating objects...) 2024-07-17 16:28:46 +02:00
Andrew Kingston 2473b82ba5
Revert to using solid border colours 2024-07-17 15:06:06 +01:00
Andrew Kingston 94fec5b62b
Update how grid blocks handle visible columns to ensure conditions work on hidden columns 2024-07-17 12:45:31 +01:00
Adria Navarro 166d8fac5e Use relative paths 2024-07-17 13:43:25 +02:00
Andrew Kingston 7faa6188c4
Improve support for formula columns when using table conditional colouring 2024-07-17 12:33:05 +01:00
Adria Navarro 53d6219b79 Extract find and fetch 2024-07-17 13:32:45 +02:00
Adria Navarro dc47037dbb Move update and remove 2024-07-17 13:26:40 +02:00
Adria Navarro 373aeac00f Move automation creation to sdk 2024-07-17 13:10:19 +02:00
Adria Navarro 13c6ad9924 More tests 2024-07-17 12:30:31 +02:00
Adria Navarro 371a3ad8ec Ensure unique on updates 2024-07-17 12:26:36 +02:00
Adria Navarro 8297a58270 Ensure unique names 2024-07-17 12:18:09 +02:00
Adria Navarro c51d2cd431 Trims names 2024-07-17 12:16:14 +02:00
Adria Navarro 7fb13b757b Use .string instead of .work 2024-07-17 11:52:29 +02:00
Andrew Kingston 1fd4b983e5
Update comments 2024-07-17 10:39:56 +01:00
Adria Navarro b1cfdc4f25 Clean code 2024-07-17 11:15:55 +02:00
Adria Navarro 9a7470a943
Merge branch 'master' into BUDI-8428/row-action-crud 2024-07-17 11:08:23 +02:00
Andrew Kingston 62d43bc183
Merge branch 'table-improvements-2' of github.com:Budibase/budibase into conditional-table-colours 2024-07-17 08:06:03 +01:00
Andrew Kingston 4575dd300f
Update table border colour to work better with coloured cells 2024-07-16 16:47:11 +01:00
Andrew Kingston 479e3247df
Remove logs 2024-07-16 14:11:29 +01:00
Andrew Kingston 2338783f22
Fix error when another user updates a row not inside our grid 2024-07-16 14:10:19 +01:00
Andrew Kingston d6a10e2dab
Add row metadata to button column 2024-07-16 14:03:12 +01:00
Andrew Kingston ee984b6a19
Update table conditions to apply both row and cell conditions via same configuration 2024-07-16 14:01:50 +01:00
deanhannigan 17026d888e
Merge branch 'master' into table-improvements-2 2024-07-16 09:04:39 +01:00
Sam Rose 372153bc97
Accommodate time values in datetime coercion. 2024-07-15 17:27:03 +01:00
Sam Rose dc913385f6
Merge branch 'master' of github.com:budibase/budibase into budi-8434-default-value-row-processing 2024-07-15 16:48:36 +01:00
Sam Rose 9542c497de
Create a test for required column with default value. 2024-07-15 16:46:20 +01:00
Sam Rose e39a5b0d7e
Add test for creating a row through views. 2024-07-15 16:44:43 +01:00
Sam Rose 18acaccfcb
Current User binding and tests. 2024-07-15 16:26:15 +01:00
Sam Rose 17575177fe
Merge branch 'master' into less-greater-than-equal-tests 2024-07-15 14:53:59 +01:00
Conor Webb ab679ac85d
Add the option to use bindable inputs in your confirmations (#14138)
Co-authored-by: deanhannigan <deanhannigan@gmail.com>
2024-07-15 13:01:08 +00:00
Andrew Kingston c1f7bbcf9f
Merge branch 'master' of github.com:Budibase/budibase into conditional-table-colours 2024-07-15 13:58:39 +01:00
deanhannigan bc40d20206
Merge branch 'master' into fix/app-title-alignment 2024-07-15 12:21:01 +01:00
Sam Rose ee0c4187c8
Better error handling of invalid default values. 2024-07-15 12:09:01 +01:00
Andrew Kingston 1a434e82db
Merge branch 'master' into table-improvements-2 2024-07-15 12:08:52 +01:00
Dean 0a50ab284f Title text alignment was not being saved to the app metadata. 2024-07-15 11:12:26 +01:00
Sam Rose 297e9003ca
Support bindings in default values. 2024-07-15 11:10:30 +01:00
Sam Rose 12911db06e
Process primitive default values. 2024-07-15 10:43:58 +01:00
Sam Rose 43de204ca2
Default values failing test. 2024-07-15 09:58:31 +01:00
deanhannigan 8acfcc5c2d
Merge branch 'master' into dean-fixes 2024-07-15 09:17:56 +01:00
mike12345567 19ff925dec Adding test cases for less than/greater than or equal to, there was no test cases confirming these definitely work. Also aligning the test cases with how the frontend performs these tests today. 2024-07-12 18:09:29 +01:00
mike12345567 745a05fe8d Updating how the 'merging' is handled, don't include the in-memory representation if it exists on disk in Couch, prefer that. 2024-07-12 13:54:55 +01:00
mike12345567 79c292538c There is a risk with default tables that the schema may exist in the DB as well as existing in memory - in this case we should merge the schemas to make sure that all possible attributes from the in memory representation, and the on disk version (which may have been updated by the user) have been captured in the SQLite schema. 2024-07-12 13:51:06 +01:00
Adria Navarro 1c69cfaeda Fix initialisation 2024-07-12 12:32:36 +02:00
Adria Navarro f06d0a5cd6 Clean 2024-07-12 12:17:37 +02:00
Adria Navarro 50c8449f4b Add extra test 2024-07-12 12:17:37 +02:00
Adria Navarro 99b4aae7de
Merge branch 'master' into BUDI-8428/row-action-crud 2024-07-12 11:53:12 +02:00
Adria Navarro 0e8d216e22 Unify newid 2024-07-12 11:36:18 +02:00
Adria Navarro b44397d027 Dont return couch fields 2024-07-12 11:29:00 +02:00
Adria Navarro c0a0e860fa
Merge branch 'master' into return-unauthorized-instead-of-forbidden 2024-07-12 11:07:11 +02:00
Sam Rose 4c4e7c12de
Fix a very rare flake in row.spec.ts. 2024-07-12 09:39:38 +01:00
Adria Navarro 1f2dab71eb
Merge branch 'master' into return-unauthorized-instead-of-forbidden 2024-07-12 01:34:17 +02:00
mike12345567 9129e47dd9 PR comment 2. 2024-07-11 17:09:41 +01:00
mike12345567 5b1850d28f PR comments. 2024-07-11 16:41:12 +01:00
Dean b9aec43397 Merge remote-tracking branch 'origin/master' into dean-fixes 2024-07-11 16:40:39 +01:00
Dean ae4279bc58 Remove Attachment and Signature from filters. Add _id support for DynamicFilter. Removed _rev from filters 2024-07-11 16:39:49 +01:00
mike12345567 1e189450c0 Switching to regex. 2024-07-11 16:38:30 +01:00
mike12345567 6db0379504 Resync if it is found that a table or column is missing, this was previously done for specific cases but have expanded to cover all, but only retry once (not get into an infinite loop). 2024-07-11 16:35:57 +01:00
Adria Navarro 2035713b9c Implement delete 2024-07-11 17:33:40 +02:00
Adria Navarro ba2d6fd73b Renames 2024-07-11 17:16:14 +02:00
Adria Navarro 9ff3d8cf77 Add extra tests 2024-07-11 17:14:14 +02:00
Adria Navarro d03a0ebb68 Implement update 2024-07-11 17:08:57 +02:00
Sam Rose c374b26e39
Merge branch 'master' into fix-mysql-flake 2024-07-11 15:59:57 +01:00
Adria Navarro 1be14f5a05
Merge branch 'master' into return-unauthorized-instead-of-forbidden 2024-07-11 16:59:34 +02:00
Adria Navarro 17fc605e4f Persist as object instead of array 2024-07-11 16:57:32 +02:00
Sam Rose db9e0e7d38
Fix fun flake in MySQL / MariaDB. 2024-07-11 15:54:52 +01:00
Sam Rose e70e7eeb1d
Merge branch 'master' into fix-flake 2024-07-11 15:08:59 +01:00
Adria Navarro de04a6f76d Change id 2024-07-11 15:34:48 +02:00
Adria Navarro 3bcbb57baa Add id to each individual action 2024-07-11 15:32:25 +02:00
Adria Navarro 65d7656097 Unify newid 2024-07-11 15:27:48 +02:00
Adria Navarro 97e6f84641
Merge branch 'master' into BUDI-8449/when-return-all-table-rows-is-selected-the-is-in-filter 2024-07-11 15:13:27 +02:00
Adria Navarro 2ff11d1a12 Fix NoEmptyFilterStrings 2024-07-11 15:04:11 +02:00
Sam Rose d530909c3b
Fix a flake in the redis.spec.ts file. 2024-07-11 13:58:28 +01:00
Adria Navarro e3705f1e87
Merge branch 'master' into BUDI-8449/when-return-all-table-rows-is-selected-the-is-in-filter 2024-07-11 14:40:40 +02:00
Adria Navarro 9fb9c08aab Merge duplicated code 2024-07-11 14:36:51 +02:00
mike12345567 8d308b591a Enabled SQS in self-host/development (single tenancy) as long as the SQS_ENABLED flag has been set, tenants don't need to be specified as there are no tenants. 2024-07-11 13:33:56 +01:00
Adria Navarro 55c72c7150 Add tests 2024-07-11 14:12:43 +02:00
mike12345567 73881e9895 Only default the CouchDB SQL URL if we are in dev, otherwise attempt to work out what it is based on the main CouchDB URL (as this should work in all default production environments). 2024-07-11 11:11:28 +01:00
Adria Navarro 2d8361d6fd Always return when table exists 2024-07-11 11:06:36 +02:00
Adria Navarro c565e35b53 Implement find 2024-07-11 10:59:11 +02:00
Adria Navarro fac9c35bce Simplify tests 2024-07-11 10:46:29 +02:00
Dean 8e0f422ffe PR feedback 2024-07-11 09:34:11 +01:00
Adria Navarro 645abea2cd Add extra tests 2024-07-11 10:19:11 +02:00
Adria Navarro 0831b7cf3f Add extra tests 2024-07-11 10:13:28 +02:00
deanhannigan de76c61db2
Merge branch 'master' into feature/automation-grouping 2024-07-11 09:06:32 +01:00
Adria Navarro 7dbfcc398e Implement create 2024-07-11 10:04:25 +02:00
deanhannigan aa0e77beda
Merge branch 'master' into fix/automations-ux 2024-07-11 09:02:38 +01:00
Sam Rose 56c6742a0e
Create a way to enable SQS for all tenants. 2024-07-10 15:22:18 +01:00
Adria Navarro 063eeeb6df Fix 2024-07-10 15:49:13 +02:00
Adria Navarro fe31f88cc8 Add validation 2024-07-10 15:48:16 +02:00
Adria Navarro bf161d9d93 More types 2024-07-10 15:41:55 +02:00
Adria Navarro c1eafe5b28 Fix 2024-07-10 14:05:21 +02:00
Adria Navarro 0c2024bf6a Basic get 2024-07-10 13:56:41 +02:00
Adria Navarro de2938799b Initial test 2024-07-10 13:47:34 +02:00
Adria Navarro 38718968b0 Basic implementation 2024-07-10 13:47:34 +02:00