Martin McKeaveney
d4a0e44b31
merge
2023-02-05 22:11:37 +00:00
adrinr
420cb36ca7
Replace beforeeach for before alls
2023-02-03 19:02:40 +00:00
melohagan
919323b500
Fix/automation update deletes relationship ( #9468 )
...
* Add padding to text field input
* Apply padding to modal binding input
* Support relationships in automation bindings
* Trim automation field keys
* Trim automation field name
* Empty string check
* Add checkbox for clearing relationships update row
* Added state for automation field metadata
* clearRelationships updateRow check
* Padding tweak
2023-01-31 10:11:56 +00:00
adrinr
7027abeaa2
Fix issues with parallel tests and self/cloud modes
2023-01-26 18:20:21 +00:00
mike12345567
b38399cb74
Adding test cases as per PR comments.
2023-01-26 18:20:21 +00:00
Adria Navarro Redo
6a4fe1d5e6
Fix automation test
2023-01-26 18:20:21 +00:00
mike12345567
697cd8b4ea
Adding test cases as per PR comments.
2023-01-25 18:27:58 +00:00
Rory Powell
fba7ef26ad
Replace ts-jest with swc/jest ( #9289 )
...
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
Peter Clement
9d841bc947
Server and Worker tests ( #8928 )
...
* automation unit tests
* row processor tests
* update executeQuery test
* update groups assertion
* some more worker tests
* plugin tests and tidying up
* linting
* temporarily disable group tests
* more tests
* fix import
* fix backup tests
* add pro mocks to worker
* check for app existence in import test
* test new tsconfig
* testing changes
* Pro test utils (#9020 )
* Pro test utils changes
* Add test fixes
* Remove ts-ignore
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2022-12-12 22:02:32 +00:00
mike12345567
a02e9017ec
Final fixes after re-running all test suites.
2022-11-28 19:12:23 +00:00
mike12345567
3aeb6653c6
Some fixes after re-running server tests.
2022-11-28 18:14:10 +00:00
mike12345567
658f12281d
Fixes based on server build so far.
2022-11-26 15:10:41 +00:00
mike12345567
a3bb2e0d77
Automation overhaul to Typescript, plus type updates.
2022-11-25 19:57:07 +00:00
mike12345567
02ede5d067
Finally removing all usages of backend-core/ type imports from server, including some further typescript conversions.
2022-11-22 19:49:59 +00:00
mike12345567
c6366c573a
Final server test fixes, after all updates to context/removal of context faking.
2022-11-15 19:04:39 +00:00
mike12345567
bc94f20794
Typescript conversions - trying to get all of context/db layer into TS.
2022-11-11 11:57:50 +00:00
Martin McKeaveney
87717ebdf5
merge with master
2022-10-31 13:44:23 +00:00
mike12345567
51251b1fe2
Adding backup queue to bullboard if enabled.
2022-10-26 18:50:40 +01:00
mike12345567
a24694a4ea
Refactoring a lot of content around webhooks to Typescript, as well as fixing webhooks and automation app IDs on import of new app.
2022-10-25 18:19:18 +01:00
Mel O'Hagan
7166a48382
Unused import
2022-10-25 15:19:46 +01:00
Mel O'Hagan
e11f4932d3
Handle multiple automation loop bindings
2022-10-25 15:19:07 +01:00
Rory Powell
56456f3f6d
Startup fixes
2022-10-25 13:37:26 +01:00
mike12345567
0bd2a18e46
Main types and work for the CRUD operations of app backup backend in pro + the listeners to handle exporting apps from the server.
2022-10-14 19:24:03 +01:00
mike12345567
b702c7482a
Fixes for cronjob stop - correctly handle this without stalled job handle.
2022-10-14 13:26:42 +01:00
mike12345567
d620e54fdb
Handling listeners as part of queue creation, rather than external part.
2022-10-13 17:55:05 +01:00
mike12345567
b6ca14aa85
Renaming some queue to automationQueue, getting build working.
2022-10-13 17:39:26 +01:00
mike12345567
35525bfedd
Moving queue implementation into backend-core - so that pro can access.
2022-10-13 17:27:04 +01:00
mike12345567
8d7f40e443
Refactoring more to Typescript, adding the ability to use the _find API of CouchDB.
2022-10-12 17:02:23 +01:00
Shumpei Kishi
2f563f108a
Adding a validation check for undefined
2022-10-03 17:34:06 +09:00
Shumpei Kishi
8aee6c95d8
Fixing the validation logic to accept boolean false value.
2022-10-03 15:55:11 +09:00
Rory Powell
79226777b1
Merge develop
2022-09-28 08:56:45 +01:00
Martin McKeaveney
57bbf28119
merge with master
2022-09-26 17:57:23 +01:00
Peter Clement
f069ddb27e
Automation fixes
2022-09-23 13:35:27 +01:00
Mel O'Hagan
1b49f02092
CC and BCC interface
2022-09-21 15:58:04 +01:00
mike12345567
86c8618e8f
Fix for #7431 - reboot didn't work at all previously which is why apps couldn't be published with it enabled, this is now a self host only feature, I've removed the ability to enable a reboot cron in the Cloud and it will not run the lookup/execution.
2022-09-07 17:05:17 +01:00
Rory Powell
5f022e04a3
Merge branch 'develop' into user-fixes
2022-08-31 11:39:41 +01:00
Rory Powell
dd86875ea2
Update shutdown logging
2022-08-31 10:47:41 +01:00
Martin McKeaveney
02c93071ee
merge
2022-08-30 10:33:37 +01:00
Rory Powell
6cdcfe18c8
Disable automation chaining in cloud
2022-08-23 12:35:53 +01:00
Rory Powell
7275ec5f99
Disable recursive row update on cloud automations
2022-08-23 11:41:58 +01:00
melohagan
f56e72dffd
Merge pull request #7364 from Budibase/bug/sev2/app-action-no-field-crash
...
Null safety for App Action no fields
2022-08-23 11:28:29 +01:00
Rory Powell
28cdb16e08
enable stalled job disabling
2022-08-20 11:02:22 +01:00
Rory Powell
f273a6f779
Add logging to all event listeners for automations + stalled handling stub
2022-08-19 23:14:19 +01:00
Rory Powell
97cafac46c
Add support for NODE_DEBUG to app-service in kubernetes
2022-08-19 15:21:53 +01:00
Mel O'Hagan
ef7b7079b0
tableId null safety
2022-08-19 14:57:15 +01:00
mike12345567
1c7f860184
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-08-11 16:28:46 +01:00
Martin McKeaveney
b3ff94ea84
pr comments
2022-08-10 16:26:10 +01:00
Martin McKeaveney
b417521725
onEmptyFilter selection for automations
2022-08-10 15:38:08 +01:00
Andrew Kingston
7c96eb3bda
Fix crash when attempting to parse a nullish automation error
2022-08-08 16:44:00 +01:00
Michael Drury
be79114081
Merge pull request #6898 from Budibase/feature/automation-error-stop
...
CRON automation stop after a number of errors
2022-07-29 16:20:51 +01:00
Martin McKeaveney
c723deded3
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-07-29 15:45:27 +01:00
mike12345567
07f3897b55
Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-error-stop
2022-07-29 14:31:18 +01:00
mike12345567
348f7e2d1c
Fixing some issues with automations + lucene filtering (with string templating on the backend) as well as type coercion in the query rows action.
2022-07-28 13:39:11 +01:00
mike12345567
76ce26c6b5
Adding more logging to server log for cloud etc.
2022-07-28 11:14:06 +01:00
Rory Powell
1dc062a3fb
Merge branch 'master' into develop
2022-07-27 16:32:36 -04:00
mike12345567
3a4f2a7e66
Fixing issue discovered in #6813 - versioning of query rows was not correct in automations, was using old broken method.
2022-07-27 16:18:12 +01:00
mike12345567
e7010296ae
Fixing issue with test after update.
2022-07-26 16:13:41 +01:00
mike12345567
3fad32899f
Main body of updates to support disabling the cron, some cleanup of metadata at deployment to make sure they can be re-ran.
2022-07-25 20:45:29 +01:00
Michael Drury
07de5faa2d
Main bulk of logic around detecting cron recurring failure, still need to disable.
2022-07-20 22:38:06 +01:00
Peter Clement
ca41e88045
Merge remote-tracking branch 'origin/develop' into feat/user-groups-tab
2022-07-19 11:23:31 +01:00
mike12345567
c149139253
Fix for #6501 - don't fail to publish app when cron expression is empty in any automation, just don't publish that automation. Also adding an error to automation to make it clear an expression is required.
2022-07-15 14:15:16 +01:00
Peter Clement
819ce4e360
Merge remote-tracking branch 'origin/develop' into feat/user-groups-tab
2022-07-14 13:32:51 +01:00
Peter Clement
eadac09e1e
tidy up
2022-07-14 10:01:26 +01:00
Peter Clement
eff78240a6
improve performance of adding users and groups
2022-07-11 15:29:39 +01:00
Peter Clement
81d94577f4
add isAutomation to object
2022-07-08 12:16:27 +01:00
Peter Clement
cd0885f468
make auth check optional when caller is automation
2022-07-08 11:09:06 +01:00
mike12345567
d390bb9c20
Moving majority of automation logging functionality to pro.
2022-07-04 15:44:47 +01:00
mike12345567
355cb9c091
Update as per changes to pro SDK.
2022-07-04 11:43:18 +01:00
mike12345567
11f1e95cc0
Main body of PR comments - still need to move a bit to pro.
2022-07-04 11:12:08 +01:00
mike12345567
21a78d6fc8
Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs
2022-07-01 15:14:12 +01:00
mike12345567
9066b60267
Fixing test case issue.
2022-06-28 17:59:00 +01:00
mike12345567
74261661f1
Updating filter/condition action to show a stopped status rather than error, updating everything else to be aware of this.
2022-06-28 17:02:24 +01:00
mike12345567
55e744292d
Adding clear old history on read, if there is nothing to do this should add very little work.
2022-06-27 18:39:33 +01:00
mike12345567
5100d86752
Moving get of logs to pro.
2022-06-27 18:00:48 +01:00
mike12345567
9fd64307a9
Adding in management of time range to lookup automation logs in.
2022-06-24 18:11:19 +01:00
Peter Clement
0dcd7f3d63
fix use of loop item in javascript bindings
2022-06-23 16:09:35 +01:00
mike12345567
063540fe0a
Getting notifications working correctly, linking to errors in a better way, generally improving UI, getting some final touches here and there.
2022-06-22 20:23:18 +01:00
mike12345567
d8b091309e
Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs
2022-06-20 15:56:00 +01:00
mike12345567
76f6c3d34b
Fixing build issue.
2022-06-20 15:39:18 +01:00
Andrew Kingston
7bca02c28e
Merge pull request #6286 from Budibase/cheeks-fixes
...
App list updates + small stuff
2022-06-20 10:18:13 +01:00
mike12345567
5106214bc6
Adding metadata update with automation IDs and counts of errors which can be totalled in frontend, also moving to using production apps for history only.
2022-06-17 18:39:06 +01:00
mike12345567
5d82a39af3
Adding edit automation button.
2022-06-17 17:00:43 +01:00
mike12345567
fd40073280
Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs
2022-06-17 15:05:46 +01:00
mike12345567
64d8cda6a2
Adding mechanism to disable automation logging in self host.
2022-06-15 17:07:17 +01:00
mike12345567
c4ab4b5af8
Merge branch 'develop' of github.com:Budibase/budibase into feature/automation-logs
2022-06-15 15:08:48 +01:00
Andrew Kingston
ab9adc5cd5
Merge branch 'develop' of github.com:Budibase/budibase into cheeks-fixes
2022-06-15 09:02:35 +01:00
Rory Powell
4c73b6dda5
Merge branch 'master' into release
2022-06-14 17:25:11 +01:00
Andrew Kingston
d8c37eb0b1
Fix crash when running automations with an app action trigger without parameters
2022-06-13 10:56:50 +01:00
Mel O'Hagan
308abe1059
Use executeV2 External Data Connector
2022-06-09 11:13:52 +01:00
Rory Powell
361ffd224f
Merge branch 'release' into feature/event-backfill
2022-06-06 09:50:06 +01:00
mike12345567
fe84c0f21c
Adding pagination control to the API and to the frontend, as well as getting view working as expected, emitting different key combinations to be able to search by any pattern.
2022-06-01 22:39:51 +01:00
mike12345567
34759c7916
Adding real history to the history tab, getting storage to couch and retrieval + api working.
2022-06-01 16:01:06 +01:00
Martin McKeaveney
d57c4987fe
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-06-01 09:47:13 +01:00
mike12345567
702f4057bd
Progress towards using couchdb for automation logs, after testing redis and realising it won't work.
2022-05-31 19:52:35 +01:00
mike12345567
010059e29d
Merge branch 'master' of github.com:Budibase/budibase into develop
2022-05-31 14:59:57 +01:00
mike12345567
fa30457f2b
Fixing issue with server not shutting down correctly when an error occurs, making sure that everything clears up gracefully.
2022-05-30 21:22:06 +01:00
mike12345567
dae6a6b81c
Fixing minor issue with automation quota updates.
2022-05-30 14:06:42 +01:00
Rory Powell
857cd2d735
Merge branch 'develop' into feature/posthog-v2
2022-05-28 23:03:31 +01:00
mike12345567
723b96c5a5
Adding the ID inputs for the quota breakdown functionality.
2022-05-26 16:01:10 +01:00
Rory Powell
70fff5c7b9
Merge branch 'develop' into feature/posthog-v2
2022-05-23 09:04:00 +01:00
Mel O'Hagan
75a21974c6
Make 'to' field undefined if empty for consistent validation
2022-05-20 13:59:29 +01:00
Mel O'Hagan
ef2244fd20
Add limit placeholder for Automation queries
2022-05-11 11:25:53 +01:00
Rory Powell
e4257f1e04
Merge branch 'develop' into feature/posthog-v2
2022-05-05 08:47:06 +01:00
Peter Clement
45fd19583c
linting
2022-05-04 11:55:26 +01:00
Rory Powell
1caf4b1965
Merge branch 'develop' into feature/posthog-v2
2022-04-27 16:32:00 +01:00
mike12345567
3258aead45
Fixing issues with automation test cases running steps outside of a tenant.
2022-04-26 15:50:35 +01:00
Martin McKeaveney
9ca4dacbaa
merge with master
2022-04-26 10:21:45 +01:00
mike12345567
345bbf603c
Fixing issues with test cases - a lot of test cases didn't setup tenancy in any format, which now means that the API endpoints they call would not have access to a Global DB instance. Also had to disable the closing of the database in test as this was removing the database from memory, meaning future calls would find an empty database when they opened it.
2022-04-21 14:56:14 +01:00
Rory Powell
d2a4e0a934
Merge branch 'develop' into feature/licensing
2022-04-20 14:59:36 +01:00
Mel O'Hagan
611b170874
RevId should be optional for automation delete
2022-04-20 12:11:36 +01:00
Mel O'Hagan
c9523d2913
Prettier comma fix
2022-04-20 11:02:27 +01:00
Mel O'Hagan
8494f872af
Remove Row Rev from UI
2022-04-20 11:00:58 +01:00
mike12345567
192fb1307e
Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them.
2022-04-19 19:42:52 +01:00
Rory Powell
41144db055
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
2022-04-19 16:45:27 +01:00
Peter Clement
d997ab76da
update required string
2022-04-19 10:45:40 +01:00
Peter Clement
1000ef35e1
Improve handling of loop handlebars string replacement
2022-04-18 09:22:23 +01:00
Rory Powell
33719fcb09
Merge branch 'feature/licensing' into feature/posthog-v2
2022-04-12 17:12:46 +01:00
Rory Powell
03ba6d914f
Merge branch 'develop' into feature/licensing
2022-04-12 16:18:41 +01:00
Rory Powell
5ab9f1a9c5
Table CRUD events + add timekeeper for tests
2022-04-11 14:39:31 +01:00
Peter Clement
999199dcf6
Add handling for failure conditions
2022-04-11 10:26:59 +01:00
Peter Clement
b439e59137
Merge remote-tracking branch 'origin/develop' into feature/foreach-block
2022-04-07 22:32:44 +01:00
Rory Powell
ec4e9df4c2
Refactor automation tests to run independently
2022-04-06 12:34:31 +01:00
Martin McKeaveney
dbb81d9c1a
configure bash step to use automation query timeout
2022-04-06 10:43:08 +01:00
Rory Powell
b69445264d
Add additional logging to automations
2022-03-30 14:26:51 +01:00
Rory Powell
15b676ce1c
Remove remaining direct usage of CouchDB. Add common pouch config to backend-core
2022-03-29 16:03:44 +01:00
Peter Clement
006bf368bb
more parsing of output bindings
2022-03-29 10:29:51 +01:00
Peter Clement
73151722ec
update bindings to support looping
2022-03-28 10:01:56 +01:00
Peter Clement
7817d65eb3
Automation foreach block
2022-03-25 09:26:55 +00:00
Peter Clement
7a45d8dd23
Merge pull request #4976 from Budibase/fix/query-rows-automation-fix
...
Handle error when running a a Query Rows automation with a deleted column
2022-03-22 16:24:59 +00:00
Rory Powell
0a4b1eb552
Tests complete + backwards compatibility for deployment
2022-03-22 00:23:22 +00:00
Rory Powell
715d42d3e6
Merge branch 'develop' into feature/licensing
2022-03-21 17:13:16 +00:00
Rory Powell
627dd94550
Add trace to automation errors
2022-03-21 14:25:31 +00:00
Peter Clement
6fe202a429
Handle error when running an automation with a deleted column
2022-03-21 12:32:04 +00:00
Rory Powell
795b48bfb0
Published apps, automations and query count quotas
2022-03-20 01:13:54 +00:00
Rory Powell
661367333d
Add developer usage restrictions to SSO user creation
2022-03-18 08:01:31 +00:00
Rory Powell
7698e9293c
Self Host <-> Licensing integration
2022-03-09 21:16:22 +00:00
Rory Powell
eefe4ea2ad
Integrate usage quotas with licensing
2022-03-08 14:21:41 +00:00
mike12345567
c958e93aed
Fixing another issue raised by test cases.
2022-02-28 19:27:37 +00:00
mike12345567
4a31045233
Changing the API key modal to have a copy input which allows copying the API key easily.
2022-02-28 14:29:19 +00:00
Rene Pot
916cf2c8b1
linting
2022-02-23 16:56:51 +01:00
Rene Pot
bf6bc429d8
Rename filter to be condition
2022-02-23 15:07:05 +01:00
mike12345567
dbc048b365
Review comments, renaming deployed -> prod in terms of app IDs.
2022-01-31 17:42:51 +00:00
mike12345567
1095ad17c6
Adding comments to areas that need to keep using old db creation method.
2022-01-31 17:27:47 +00:00
Michael Drury
d3a90acc55
Final pass refactoring - need to test but all code in server converted.
2022-01-28 00:05:39 +00:00
mike12345567
d2fe119d90
Main body of work, refactoring most usages.
2022-01-27 18:18:31 +00:00
Rory Powell
604d316834
Add dryRun to automation row create and remove env conditional on delete
2022-01-18 15:53:55 +00:00
Rory Powell
8fc60af820
Calculate total rows in migration, centralise quota enabled logic and tidy to use env vars only
2022-01-17 12:44:53 +00:00
mike12345567
44f9ae0682
Fixing issue where any two automations steps of the same type executed in the same automation would have the same response output in the frontend, this was a visual bug. Also fixing an issue introduced by REST update that broke the query controller.
2022-01-11 17:14:04 +00:00
mike12345567
1327394784
Switching out @budibase/auth to @budibase/backend-core.
2022-01-10 19:33:00 +00:00
mike12345567
858ef084ad
Finishing up front-end, getting variable creation and management up and working from within the query schema/header menus.
2021-12-15 19:20:19 +00:00
mike12345567
da7153dd64
Removing outgoing webhook functionality from automations and adding XML response/sending, as well as form data/encoded data.
2021-12-14 17:59:02 +00:00
mike12345567
0f0770af32
Merge branch 'master' of github.com:Budibase/budibase into develop
2021-11-25 12:21:58 +00:00
mike12345567
047318fdf7
Updating bullboard to use the new koa version (supported).
2021-11-17 16:30:06 +00:00
mike12345567
bb8fe8e941
Adding a mechanism for disabling cron jobs when an app is unpublished.
2021-11-17 16:28:52 +00:00
mike12345567
e75a9d3d1d
Quick update, just to cover both queue add functions.
2021-11-16 19:02:55 +00:00
mike12345567
11debac115
Updating to manage completed events piling up, this will periodically clear out all events - repeats cannot be removed with the removeOnCompleted job option.
2021-11-16 18:58:24 +00:00
mike12345567
b34ca5b4a2
Quick fix for #3343 - error message did not make the problem obvious, so made sure error handler always outputs something useful.
2021-11-12 11:21:06 +00:00
mike12345567
9f4ff190c3
Fixing issues dsicovered by automation test cases, as well as disabling threading for test scenarios.
2021-11-11 16:20:30 +00:00
mike12345567
cca28ce255
Adding worker controls to both automations and queries.
2021-11-11 12:11:09 +00:00
mike12345567
88a729913c
Fixing an issue with webhooks, couldn't use them in development (like getting schema) and making sure trigger will always use production app #3143 .
2021-11-03 14:08:47 +00:00
mike12345567
ea6646f055
Fixing #3237 and #3235 - always apply headers on out going webhooks if they are specified and handle a range of response codes.
2021-11-03 13:13:22 +00:00
mike12345567
bdaf56fac7
Fixing issue with SQL tables and automations updating a row, also making error handling better across automations to make sure some sort of error message is always returned.
2021-10-19 17:00:54 +01:00
Michael Drury
ec82053d88
Merge pull request #3007 from Budibase/fix/3005
...
Fixing issues with filter step in automations breaking test flow
2021-10-15 14:03:52 +01:00
mike12345567
11b06b717e
Fixing issue #3005 - when a filter step is executed it now will fill in the history with a status describing that it stopped, this stops any errors from occurring.
2021-10-14 15:26:38 +01:00
mike12345567
9cece8b79e
Removing the ability to use the bash scripting action in automations in cloud.
2021-10-13 17:03:19 +01:00
Peter Clement
a746869418
Merge pull request #2984 from Budibase/bug/misc-automation-issues
...
Fixes for automation issues
2021-10-13 14:56:44 +01:00
Peter Clement
194eddbda4
some tidy up
2021-10-13 09:29:01 +01:00
Martin McKeaveney
ec26d5c738
SSL support for digitalocean, started utility function for BB logout, bunch of minor bug fixes
2021-10-12 16:13:54 +01:00
Peter Clement
e479ced4c8
fix webhook issue in automations
2021-10-12 11:00:49 +01:00
Peter Clement
abebe5de12
fix app action trigger
2021-10-11 19:38:43 +01:00
Martin McKeaveney
2da28ecc71
prevent SMTP fallback for automations
2021-09-27 16:28:39 +01:00
Martin McKeaveney
35d4eac78a
fallback SMTP configuration for cloud
2021-09-27 14:57:22 +01:00
Martin McKeaveney
6c7423e52e
ensure automation quotas are not incremented for test runs
2021-09-27 10:32:39 +01:00
Martin McKeaveney
c49b88b57a
automation runs quotas
2021-09-23 23:25:25 +01:00
Martin McKeaveney
4a2028c354
usageQuota middleware writing to couch
2021-09-23 22:40:14 +01:00
mike12345567
cf5b7b1a99
Fixing issues with automation steps found during testing.
2021-09-20 19:21:04 +01:00
Andrew Kingston
a6e48194f1
Merge branch 'master' of github.com:Budibase/budibase into develop
2021-09-20 10:33:18 +01:00
Martin McKeaveney
ed8a23a05d
enable bull automation queue to use full redis URLs
2021-09-17 18:46:27 +01:00
mike12345567
47acb7e69b
Fixes for #2634 - make sure string templates library handles conversion of raw JSON objects to stringified correctly.
2021-09-17 17:18:52 +01:00
Martin McKeaveney
86328a298c
bash automation stdout
2021-09-17 14:39:31 +01:00
Maurits Lourens
518f8fd55e
merge develop into branch
2021-09-16 22:15:09 +02:00
Martin McKeaveney
7864f75a14
Merge pull request #2244 from mslourens/headers_in_webhook_automation_step
...
add headers input in outgoing webhook automation step
2021-08-05 16:43:04 +01:00
mike12345567
46ea3f3e9e
Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants"
...
This reverts commit 4834b765be
, reversing
changes made to 2456e69483
.
2021-08-05 09:59:08 +01:00
Michael Drury
b86a6fddc9
Revert "Multi-tenancy/organisations"
2021-08-04 10:02:24 +01:00
Maurits Lourens
81b4f8f5d4
add try/catch block around JSON.parse, since user input can be incorrect formatted string
2021-08-03 22:53:18 +02:00
Maurits Lourens
3029178eeb
add headers input in outgoing webhook automation step
2021-08-03 22:39:01 +02:00
mike12345567
e7974f7e86
Implementing some changes to how context gets set for tenancy, after testing, as well as updating server.
2021-08-03 15:32:25 +01:00
mike12345567
358b2aef89
Merge branch 'develop' of github.com:Budibase/budibase into feature/multi-tenants
2021-07-19 17:35:48 +01:00
mike12345567
d6c47c5027
Changing how automations handle multi-tenancy.
2021-07-19 10:59:34 +01:00
Michael Drury
126bf74347
Fixing issue with update row after rows API changed.
2021-07-16 19:13:44 +01:00
mike12345567
912659a8ad
First version of multi-tenancy, work still to be done.
2021-07-15 17:57:02 +01:00
mike12345567
004f719dde
Renaming groups to workspaces.
2021-07-13 17:27:04 +01:00
mike12345567
96fd8ed947
Updating tests to use latest version of jest, which broke a lot of things, but was necessary to get proper ts-jest support.
2021-06-25 13:46:02 +01:00
mike12345567
2db995c906
Fixing test case and removing console.log.
2021-06-23 20:18:21 +01:00
mike12345567
c4cac4a0b1
Fixing some issues discovered with POSTing JSON.
2021-06-23 19:28:33 +01:00
Martin McKeaveney
597149228e
Merge branch 'master' of github.com:Budibase/budibase into feature/opinionated-sql
2021-06-21 11:14:27 +01:00
Martin McKeaveney
0f8b3c52be
lint ✨
2021-06-18 22:18:23 +01:00
mike12345567
9afd7fb57a
Linting.
2021-06-18 18:34:58 +01:00
mike12345567
347b2abf4f
Adding a server logging script for testing and updating automation script functionality so that you can use 'return trigger.row.firstName' and it'll function as expected.
2021-06-18 18:07:51 +01:00
mike12345567
38b880ac28
Fixing some issues I found with testing automations against external tables.
2021-06-18 18:05:31 +01:00
mike12345567
09bc70cc3d
Fixing a bunch of issues around automations.
2021-06-17 14:42:30 +01:00
mike12345567
615b207fbb
Formatting.
2021-06-16 18:39:59 +01:00
mike12345567
295c3ef1a3
Fixing automation integration and various components around forms.
2021-06-16 18:38:00 +01:00
mike12345567
6685ebaa7b
Fixing bulk deletion.
2021-06-11 19:54:47 +01:00
Martin McKeaveney
0c90f9ffc5
adding watchtower to docker config
2021-05-28 10:09:32 +01:00
Martin McKeaveney
5be2182fef
piping errors to stderr when timeout exceeded
2021-05-27 11:47:02 +01:00
Martin McKeaveney
7c4ec2f23a
execute bash commands in automations
2021-05-27 11:11:44 +01:00
Martin McKeaveney
0340c735e8
fix cron trigger output
2021-05-25 13:39:30 +01:00
Andrew Kingston
112ef65043
Merge pull request #1505 from Budibase/user-app-list
...
User home screen + tidy ups
2021-05-20 08:41:44 +01:00
mike12345567
4e9097862d
Updating user test cases.
2021-05-19 16:24:20 +01:00
mike12345567
f08b894e55
Adding admin only endpoint, removing the ability to create/delete global users from the app server and adding a global self user update.
2021-05-19 13:17:50 +01:00
Martin McKeaveney
72e18cd8d3
remove outputs from cron
2021-05-19 10:57:02 +01:00
Martin McKeaveney
a781239632
Adding cron presets to automations
2021-05-18 22:20:41 +01:00
Martin McKeaveney
c3dc5bae76
cron automation trigger end to end
2021-05-18 21:03:26 +01:00
mmckeaveney
025616d7cc
groundwork for cron automation trigger
2021-05-18 15:37:54 +00:00
mike12345567
cea82f9335
A general re-work of some parts of the auth lib, as well as moving roles/permissions around to make it possible to build an admin API which has role knowledge.
2021-05-14 15:43:41 +01:00
mike12345567
92cc0bc7cd
Updating to support SMTP email automation action, as well as some general work around from and subject which previously we'ren't fully implemented.
2021-05-11 15:08:59 +01:00
mike12345567
7736869148
Some updates, working towards supporting automation send smtp email also removing the styling template, adding to base.
2021-05-11 12:02:29 +01:00
mike12345567
ac89e5c713
Formatting.
2021-05-07 13:55:57 +01:00
mike12345567
1d435013b8
Fixing issues with bullboard and integrating the express app with our koa app (if prefix matches).
2021-05-07 12:24:51 +01:00
mike12345567
83c16a9f14
Formatting.
2021-05-05 17:49:53 +01:00
mike12345567
2ee4fd21e4
Updating testing system across the board after playing around with it, having the worker tests run when top level test is ran, fixing environment in worker when testing, removing the use of redis (replacing with ioredis-mock) when in test.
2021-05-05 17:49:34 +01:00
mike12345567
1cf778845a
Fixing issues with Redis/Bull and the integration with new redis module.
2021-05-04 18:13:44 +01:00
Martin McKeaveney
8ecb70a8f7
merge with next
2021-05-04 11:40:59 +01:00
Andrew Kingston
797e8a8b67
Add explicit prettier options
2021-05-04 11:32:22 +01:00
Martin McKeaveney
72ed644803
merge
2021-05-04 09:55:14 +01:00
Keviin Åberg Kultalahti
0afbf1649e
lint:fix
2021-05-03 09:31:09 +02:00
Martin McKeaveney
6d32d5f8b1
tidy up
2021-04-30 15:44:37 +01:00
Martin McKeaveney
784ac20dd8
external data connector block
2021-04-29 21:35:16 +01:00
Martin McKeaveney
b876e91ae6
merge with next
2021-04-29 11:45:47 +01:00
mike12345567
eaa89c824e
Updating the server to remove use of the email in the user ID.
2021-04-19 16:26:33 +01:00
mike12345567
a52f296d78
Merge branch 'next' of github.com:Budibase/budibase into feature/global-user-management
2021-04-13 10:26:40 +01:00
Martin McKeaveney
c02306e6fb
merge
2021-04-12 13:39:53 +01:00
mike12345567
d2a3dc4a2f
Some fixes for automations, removing password obsfucation in create user step as not useful and making update row work with correct row ID.
2021-04-12 11:53:37 +01:00
mike12345567
4f71e11c94
Updating some test cases to work with new system.
2021-04-09 17:33:21 +01:00
mike12345567
8cde219db9
First pass of global user configuration through existing user API with role mappings.
2021-04-08 16:58:33 +01:00
Martin McKeaveney
8f5fd32f74
scripting block
2021-03-26 14:56:34 +00:00
Martin McKeaveney
9c281baeb6
script block
2021-03-25 11:17:04 +00:00
mike12345567
d66af9f151
Getting rid of the CLOUD environment variable, this makes no sense anymore, now there is isDev() and isProd() which will work out the current state of the cluster.
2021-03-24 18:21:23 +00:00
mike12345567
34918013cb
Main work of file system refactor now complete, ready to test more fully - most test cases passing, need to look through them more thoroughly and make sure everything still makes sense.
2021-03-23 17:54:02 +00:00
mike12345567
794372987e
Adding more test cases for the controllers, tables and views weren't as well covered as required.
2021-03-15 16:36:38 +00:00
mike12345567
3406138f34
Finishing off automation test cases, above 90% coverage for automations codebase.
2021-03-15 14:11:13 +00:00
mike12345567
799168c6b8
Adding in all the automation step tests, beginning work on the general automation tests.
2021-03-12 15:32:16 +00:00
mike12345567
189a673c9c
Testing some of the automation actions (still a few to complete) and adding quick test case for the self host stuff.
2021-03-11 18:29:48 +00:00
Andrew Kingston
35e88390d5
Update icon for row updated trigger
2021-02-23 14:16:44 +00:00
Andrew Kingston
9013c493aa
Add new automation trigger for updating rows
2021-02-23 14:07:19 +00:00
Michael Drury
7647e346d4
Merge pull request #1125 from Budibase/feature/autocolumns
...
Feature/autocolumns
2021-02-17 17:18:12 +00:00
mike12345567
9b59b47d9e
Fixing issue #1050 - two issues found, one with running automations in self host throwing an error when trying to access cloud resources (Dynamo) and secondly the worker pool does not have access to resources in the main server instance, therefore need to re-init when running an external action (get manifest, to download the package).
2021-02-17 13:40:14 +00:00
mike12345567
feb7e2756f
WIP - start of auto columns like autonumber, createdBy, createdAt, updatedBy etc.
2021-02-10 16:10:39 +00:00
mike12345567
ce5ab5482b
Updating the string templating system to be capable of async operations.
2021-01-20 13:32:15 +00:00
mike12345567
5a7c0de397
Adding jest test cases to string templating library.
2021-01-19 17:29:38 +00:00
mike12345567
329b76590c
Updating to have real auto-completion on string templates library.
2021-01-19 15:29:49 +00:00
mike12345567
cdef4ead8c
Removing mention of mustache from the server package.
2021-01-15 14:38:10 +00:00
Michael Shanks
a878d7eb40
Trigger Automation from frontend actions
2021-01-08 17:25:06 +00:00
mike12345567
9a63252666
Fixing automations to use recurseMustache from utilities.
2020-12-08 11:47:33 +00:00
Martin McKeaveney
b7f628e250
lint
2020-12-08 11:23:06 +00:00
Martin McKeaveney
5f0aa7e584
Merge branch 'master' into feature/page-refactor
2020-12-08 10:48:14 +00:00
Martin McKeaveney
7fc7500fa3
merge with master
2020-12-07 21:32:45 +00:00
Martin McKeaveney
39473cb029
merge
2020-12-07 21:20:35 +00:00
mike12345567
837778c250
Fixing test case and also making sure that external trigger does what its expected to.
2020-12-07 17:55:35 +00:00
mike12345567
63f38ce99d
Making chaining of automations through different row creation/deletions possible.
2020-12-07 17:23:53 +00:00
Martin McKeaveney
f05d696ef7
email as default user identifier
2020-12-04 12:22:45 +00:00
mike12345567
1a9f1aed9b
Merge branch 'feature/security-update' of github.com:Budibase/budibase into feature/page-refactor
2020-12-02 13:26:57 +00:00
mike12345567
05225f7787
Changing the naming of access levels to be roles.
2020-12-02 13:20:56 +00:00
mike12345567
b55c4bc9c0
Merge branch 'master' of github.com:Budibase/budibase into feature/page-refactor
2020-11-30 11:47:08 +00:00
Martin McKeaveney
9a365a8359
fix create user automation
2020-11-25 15:11:33 +00:00
mike12345567
71ca88207d
Removing all reference to 'pages' in server source code, now to look at builder.
2020-11-23 15:46:26 +00:00
Michael Drury
a423664f4c
Large update, tests passing, have simplifed access level API, access levels and permissions are now totally separate.
2020-11-13 15:35:20 +00:00
mike12345567
6148128554
Tests failing but starting to progress.
2020-11-12 17:06:55 +00:00
Michael Drury
1f4e27eb13
WIP - this is working towards the permissions system but stopping here for the night, this is currently not functional.
2020-11-11 17:34:15 +00:00
mike12345567
5b2be03bc3
Renaming instanceId -> appId to reduce confusion through the system, there only is one ID now.
2020-10-29 10:28:27 +00:00
mike12345567
ea03d099b3
Initial work into multi-tenancy removal, experiencing issues with test cases at this point.
2020-10-28 20:35:06 +00:00
mike12345567
3d77163773
Switching from axios to node-fetch as per review.
2020-10-27 14:16:57 +00:00
mike12345567
e26f272746
Switching from mustache to handlebars for automations as allows configuring helpers, e.g. parsing object.
2020-10-27 13:19:38 +00:00
mike12345567
3ae82b95a3
Adding an outgoing webhook action, so that we have both incoming and outgoing ability.
2020-10-27 12:33:25 +00:00
mike12345567
c66541ad99
Joe-ifying some of the work on webhooks to make it a bit easier to understand and finished up some testing around it.
2020-10-26 16:04:02 +00:00
mike12345567
0d8ec8e03a
Some initial work towards webhooks, that generates schema similar to integromat.
2020-10-22 17:48:32 +01:00
mike12345567
de9c4ea3ee
Fixing some issues seen with cloudfront and adding a bit more UI around the deployment history as pending can be happening for some time.
2020-10-19 15:33:26 +01:00
mike12345567
5d49d529e3
Changing record -> row in this update, completing the update of renaming in the builder, this release needs further testing.
2020-10-09 19:10:28 +01:00
mike12345567
fdaa69ee7f
Renaming Model -> Table across the entire system, this is an unstable update and has not been tested fully yet.
2020-10-09 18:49:23 +01:00
mike12345567
c280586b9b
Merge branch 'master' of github.com:Budibase/budibase into api-usage-tracking
2020-10-09 11:21:26 +01:00
mike12345567
325e291222
Removing sanisation, instead just using it as a central path system.
2020-10-09 10:00:57 +01:00
mike12345567
552c31a53e
Updates for API usage after testing against local Dynamo.
2020-10-08 17:34:41 +01:00
mike12345567
922e214dca
Fixing up middleware to handle uploads, views, records, automation runs and users.
2020-10-07 17:56:47 +01:00
mike12345567
25cc60aa94
Merge branch 'master' of github.com:Budibase/budibase into linked-records
2020-10-07 14:48:20 +01:00
mike12345567
13c9be4ea3
Adding a basic sanitise path function and fixing up use cases of appId filesystem paths throughout the system.
2020-10-07 00:24:56 +01:00
Andrew Kingston
ea7e17ce60
Merge branch 'master' of github.com:Budibase/budibase into linked-records
2020-10-06 18:03:43 +01:00
mike12345567
196f0b380d
Minor update to remove send grid from the API component of the builder and make them part of the automation itself.
2020-10-05 17:45:31 +01:00
mike12345567
cb89f1199b
Fixing an issue with linked records showing up as models after id changes.
2020-10-02 16:49:36 +01:00
mike12345567
e43e0e100b
Some quick automation fixes.
2020-10-02 16:42:47 +01:00
mike12345567
4d8b1ecc10
Merge branch 'remove-views' of github.com:Budibase/budibase into linked-records
2020-10-02 14:49:23 +01:00
mike12345567
0db7768e5d
Adding jsdoc to the db utils and removing the views, this is a breaking change for existing apps.
2020-10-02 12:37:46 +01:00
Michael Drury
c7693d6e86
Purging the use of views where possible, this update should remove the use of by_type and all model views.
2020-10-01 17:22:08 +01:00
mike12345567
47b512be1c
Merge branch 'linked-records' of github.com:Budibase/budibase into linked-records
2020-09-25 18:05:38 +01:00
mike12345567
7e3715d88a
Some groundwork for the linked records, building up a much more in-depth emitter for models and records to drive the record cleanup.
2020-09-25 18:05:26 +01:00
Andrew Kingston
9bd1743ea0
Rename records to rows in automation definitions
2020-09-25 15:01:48 +01:00
mike12345567
19bb0481c6
Running linter to cleanup formatting.
2020-09-23 16:20:39 +01:00
mike12345567
6e1e5777b8
Extending the possible time the test case can wait for the record to be updated into the database (automation trigger) and adding JSdocs to automation utilities as per PR suggestions.
2020-09-23 16:16:24 +01:00
mike12345567
f4ec118679
Adding clean up of records based on the model schema to save and update records.
2020-09-23 13:34:11 +01:00
mike12345567
7f107fcf0a
Update to include update record internal action option, seems very useful rather than having to delete and re-create records every time.
2020-09-23 12:29:20 +01:00
mike12345567
8afbb40f36
Implementing type cleanup based on the input schema, specifically for booleans and numbers.
2020-09-23 11:54:15 +01:00
mike12345567
ad6002293e
Fixing an issue with the fill in of test data when triggering.
2020-09-22 15:25:26 +01:00
mike12345567
b4cdc15d50
Adding default options which will be used in the builder if no directory or bucket is specified as environment variables.
2020-09-22 14:37:09 +01:00
mike12345567
a1174d8942
Updating async action loading based on new structure of S3 and manifest.
2020-09-22 14:07:22 +01:00
mike12345567
406032b444
Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks
2020-09-22 13:00:04 +01:00
mike12345567
9c5b4b4211
Removing log statement.
2020-09-22 12:56:48 +01:00
mike12345567
1845a8c452
Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation
2020-09-22 12:00:54 +01:00
mike12345567
cdaa0c36a1
Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks
2020-09-21 15:06:52 +01:00
mike12345567
9d7710e371
Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation
2020-09-21 15:05:42 +01:00
mike12345567
eb494b4698
Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks
2020-09-21 14:51:48 +01:00
mike12345567
08e5e75dbb
Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation
2020-09-21 14:49:15 +01:00
mike12345567
5f064ade9d
Renaming workflows -> automate/automations, throughout the API and the builder itself.
2020-09-21 13:49:34 +01:00