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
mike12345567
38ff7debb4
Linting.
2024-06-03 12:08:54 +01:00
mike12345567
26a0801b75
Linting.
2024-06-03 10:15:16 +01:00
mike12345567
4a1f24d0d8
Fixing an issue with default parameters not being passed into dynamic parameters.
2024-05-31 16:08:10 +01:00
Peter Clement
2149b7dc57
fix issue where automation meta fields were being overridden
2024-04-11 11:31:26 +01:00
Sam Rose
a8ae839186
Tidy up function rename.
2024-04-03 17:03:10 +01:00
Sam Rose
869ed4256e
Merge master.
2024-03-25 14:13:48 +00:00
mike12345567
5b1db96129
Fixing typing issue.
2024-03-22 12:05:55 +00:00
Sam Rose
08fecca9f2
Delete query.seq.spec.ts
2024-03-22 12:00:26 +00:00
mike12345567
f4f7ac42ec
Adding test cases for interpolation of SQL, confirming that the context correctly gets cleaned up before passing into bindings.
2024-03-22 11:40:44 +00:00
mike12345567
c32163a9be
Initial fix for defaulting parameters, switch to null rather than strings, this is important for prepared statements/SQL queries.
2024-03-21 18:26:35 +00:00
Andrew Kingston
c25ea7a9d7
Fix external triggers not getting snippet context
2024-03-13 09:42:31 +00:00
Andrew Kingston
8b71c2731b
Merge branch 'cheeks-lab-day-binding-eval' of github.com:Budibase/budibase into cheeks-snippets-poc
2024-03-11 16:16:29 +00:00
mike12345567
507fa2b417
Quick fix for #12502 - the schema was never updating in the UI no matter what was input despite the response - cleaned up the key parsing a little on the backend and made sure there is simply one schema that the frontend always uses, respecting whatever the backend responds with.
2024-03-08 16:50:59 +00:00
Andrew Kingston
2189e3ee0f
Fix duped import
2024-03-01 15:26:02 +00:00
Andrew Kingston
b7b1e95eb8
Add working PoC of snippets for both polyfilled vm and isolated-vm
2024-03-01 15:25:40 +00:00
mike12345567
c03a4b0792
Addressing PR comments.
2024-02-23 11:48:10 +00:00
melohagan
0c9d13c79a
Dynamic schema generation for query arrays: bug fix and refactor ( #13082 )
...
* Bug fix and refactor
* lint
* Refactor
* refactor
* lint
* type fixes
* Unit test fix and refactor
* refactor
* Make name option for preview, required for query
* Refactor unit tests
* Fix test
* update account-portal
* Revert "update account-portal"
This reverts commit e378f8d702
.
* simplify set iteration
* comment
2024-02-21 15:33:13 +00:00
Adria Navarro
b9afe1b926
Remove vm2 wrapper
2024-02-20 12:33:19 +01:00
Sam Rose
93b18b81e0
Fix re-used context in JS runner.
2024-02-20 10:49:45 +00:00
Adria Navarro
85052ca361
Fix query
2024-02-19 19:34:15 +01:00
mike12345567
87d60ca5f2
Removing env vars to disable isolated-vm usage.
2024-02-19 17:55:04 +00:00
Adria Navarro
ae7a978998
Fix tests
2024-02-19 17:27:01 +01:00
Adria Navarro
09dbc694fa
Fix imports
2024-02-19 17:01:27 +01:00
Adria Navarro
ce76329be8
Merge branch 'wrap-existing-runners' into reenable-isolatedvm
2024-02-19 16:52:59 +01:00
Adria Navarro
1367cf3636
Use wrappers
2024-02-19 16:18:56 +01:00
mike12345567
28e3e8d6ed
Merge branch 'master' of github.com:Budibase/budibase into reenable-isolatedvm
2024-02-16 11:06:05 +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
Adria Navarro
6f6100e7a2
Use isolated-vm
2024-02-12 18:07:17 +01:00
Adria Navarro
6823b23ac4
Init jsrunners on threads
2024-02-12 16:59:14 +01:00
Adria Navarro
c42a8969c8
Fix build
2024-02-09 16:55:58 +01:00
Adria Navarro
599860b558
Use bson only for mongo
2024-02-07 10:58:43 +01:00
Adria Navarro
716e642d08
Types
2024-02-07 10:58:43 +01: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
669b0743ac
Typing improvements around automation loop tests.
2024-01-30 10:00:44 +00:00
mike12345567
35a3d663ba
Comments on PR - some small changes.
2024-01-24 12:33:29 +00:00
mike12345567
db7c2c804b
Updating query responses to follow the same form consistently.
2024-01-19 18:13:12 +00:00
Sam Rose
642b75e0ae
Revert "Remove all custom tracing to see if it's the cause of the memory leak."
2024-01-02 11:36:32 +00:00
Sam Rose
3c0901f530
Remove all custom tracing to see if it's the cause of the memory leak.
2023-12-21 11:06:05 +00:00
Sam Rose
406410d916
Add DataDog tracing to automations.
2023-12-19 15:57:56 +00:00
Adria Navarro
db2c20e3ae
eslint import/newline-after-import
2023-11-20 21:52:29 +01:00
Adria Navarro
92f411bf77
Prettier
2023-11-20 21:48:49 +01:00
Adria Navarro
4d27ff1dc0
eslint import/no-duplicates
2023-11-20 21:48:49 +01:00
Sam Rose
e3a4c34f8d
Pass types through context callbacks.
2023-11-08 16:17:24 +00:00
mike12345567
96327eaef1
Quick fix for REST schema being updated by user, when the request is sent again/query performed again user updates are lost - this means that changes are maintained across runs.
2023-09-29 13:17:14 +01:00
mike12345567
2f115b5b64
Quick fix for automation timing.
2023-09-07 15:27:52 +01:00
mike12345567
c6223ca935
Linting.
2023-09-05 12:33:01 +01:00
mike12345567
d096f359d7
Revert "Revert "Merge branch 'develop' into master""
...
This reverts commit 3265042025
.
2023-09-05 12:28:56 +01:00