1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00
Commit graph

298 commits

Author SHA1 Message Date
mike12345567 02bae53b27 Removing the ability to use the bash scripting action in automations in cloud. 2021-10-13 17:03:19 +01:00
Peter Clement 4cdc96a0f6
Merge pull request #2984 from Budibase/bug/misc-automation-issues
Fixes for automation issues
2021-10-13 14:56:44 +01:00
Peter Clement 2105fb31db some tidy up 2021-10-13 09:29:01 +01:00
Martin McKeaveney 14370c81b9 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 6f708ec86b fix webhook issue in automations 2021-10-12 11:00:49 +01:00
Peter Clement a8829d9adb fix app action trigger 2021-10-11 19:38:43 +01:00
Martin McKeaveney 30f60d9bae prevent SMTP fallback for automations 2021-09-27 16:28:39 +01:00
Martin McKeaveney 5b1ae778da fallback SMTP configuration for cloud 2021-09-27 14:57:22 +01:00
Martin McKeaveney 9cb20bcda2 ensure automation quotas are not incremented for test runs 2021-09-27 10:32:39 +01:00
Martin McKeaveney b161be85ae automation runs quotas 2021-09-23 23:25:25 +01:00
Martin McKeaveney 85c6fac8f5 usageQuota middleware writing to couch 2021-09-23 22:40:14 +01:00
mike12345567 0651b874ac Fixing issues with automation steps found during testing. 2021-09-20 19:21:04 +01:00
Andrew Kingston a59c2db8ea Merge branch 'master' of github.com:Budibase/budibase into develop 2021-09-20 10:33:18 +01:00
Martin McKeaveney 57fcf40de9 enable bull automation queue to use full redis URLs 2021-09-17 18:46:27 +01:00
mike12345567 38e6956b19 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 c2c5d70b89 bash automation stdout 2021-09-17 14:39:31 +01:00
Maurits Lourens 104a84d19b merge develop into branch 2021-09-16 22:15:09 +02:00
Martin McKeaveney 01e1b61722
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 42f08f97cc Revert "Merge pull request #2253 from Budibase/revert-2076-feature/multi-tenants"
This reverts commit 0d2e2314d4, reversing
changes made to 1beca4ee96.
2021-08-05 09:59:08 +01:00
Michael Drury f37946d47e
Revert "Multi-tenancy/organisations" 2021-08-04 10:02:24 +01:00
Maurits Lourens 915c786474 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 c8a4fc55ce add headers input in outgoing webhook automation step 2021-08-03 22:39:01 +02:00
mike12345567 54e765a182 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 99fe16d169 Merge branch 'develop' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-19 17:35:48 +01:00
mike12345567 1252fbdf38 Changing how automations handle multi-tenancy. 2021-07-19 10:59:34 +01:00
Michael Drury db559e738b Fixing issue with update row after rows API changed. 2021-07-16 19:13:44 +01:00
mike12345567 5ffe3c7935 First version of multi-tenancy, work still to be done. 2021-07-15 17:57:02 +01:00
mike12345567 e296a67b50 Renaming groups to workspaces. 2021-07-13 17:27:04 +01:00
mike12345567 19da122425 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 bfc4a7cc7b Fixing test case and removing console.log. 2021-06-23 20:18:21 +01:00
mike12345567 1dbc56adf4 Fixing some issues discovered with POSTing JSON. 2021-06-23 19:28:33 +01:00
Martin McKeaveney f85fad5a4d Merge branch 'master' of github.com:Budibase/budibase into feature/opinionated-sql 2021-06-21 11:14:27 +01:00
Martin McKeaveney 6982c0f717 lint 2021-06-18 22:18:23 +01:00
mike12345567 1badf70f46 Linting. 2021-06-18 18:34:58 +01:00
mike12345567 94daa3d4b5 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 3f1b95218e Fixing some issues I found with testing automations against external tables. 2021-06-18 18:05:31 +01:00
mike12345567 6bc99e140c Fixing a bunch of issues around automations. 2021-06-17 14:42:30 +01:00
mike12345567 d22f608c6f Formatting. 2021-06-16 18:39:59 +01:00
mike12345567 7408eb945b Fixing automation integration and various components around forms. 2021-06-16 18:38:00 +01:00
mike12345567 9719e26de2 Fixing bulk deletion. 2021-06-11 19:54:47 +01:00
Martin McKeaveney a453f6cac2 adding watchtower to docker config 2021-05-28 10:09:32 +01:00
Martin McKeaveney f5d829015a piping errors to stderr when timeout exceeded 2021-05-27 11:47:02 +01:00
Martin McKeaveney afe525fb0f execute bash commands in automations 2021-05-27 11:11:44 +01:00
Martin McKeaveney b372f4cf1e fix cron trigger output 2021-05-25 13:39:30 +01:00
Andrew Kingston 13b3133c31
Merge pull request #1505 from Budibase/user-app-list
User home screen + tidy ups
2021-05-20 08:41:44 +01:00
mike12345567 ed63d1d8f2 Updating user test cases. 2021-05-19 16:24:20 +01:00
mike12345567 1956d9765e 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 2683b2c03a remove outputs from cron 2021-05-19 10:57:02 +01:00
Martin McKeaveney 50701c74f4 Adding cron presets to automations 2021-05-18 22:20:41 +01:00
Martin McKeaveney 4b77c75cbb cron automation trigger end to end 2021-05-18 21:03:26 +01:00
mmckeaveney 7c3b3f78a7 groundwork for cron automation trigger 2021-05-18 15:37:54 +00:00
mike12345567 2d0122f7d6 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 8faa9554ed 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 7d78d7b15a 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 634cba509d Formatting. 2021-05-07 13:55:57 +01:00
mike12345567 ad02e56887 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 44db8cf9ec Formatting. 2021-05-05 17:49:53 +01:00
mike12345567 96f036b720 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 66341473ca Fixing issues with Redis/Bull and the integration with new redis module. 2021-05-04 18:13:44 +01:00
Martin McKeaveney a4cc4191b4 merge with next 2021-05-04 11:40:59 +01:00
Andrew Kingston 556236ebce Add explicit prettier options 2021-05-04 11:32:22 +01:00
Martin McKeaveney 4618dfd2d1 merge 2021-05-04 09:55:14 +01:00
Keviin Åberg Kultalahti 4ec2e7d01f lint:fix 2021-05-03 09:31:09 +02:00
Martin McKeaveney da25d8b6e5 tidy up 2021-04-30 15:44:37 +01:00
Martin McKeaveney 2dbcfe3ed1 external data connector block 2021-04-29 21:35:16 +01:00
Martin McKeaveney b4051dfed6 merge with next 2021-04-29 11:45:47 +01:00
mike12345567 ade007482c Updating the server to remove use of the email in the user ID. 2021-04-19 16:26:33 +01:00
mike12345567 46b975186c Merge branch 'next' of github.com:Budibase/budibase into feature/global-user-management 2021-04-13 10:26:40 +01:00
Martin McKeaveney 9eb6b541e9 merge 2021-04-12 13:39:53 +01:00
mike12345567 08ce2b0557 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 dccd559b56 Updating some test cases to work with new system. 2021-04-09 17:33:21 +01:00
mike12345567 792114ef46 First pass of global user configuration through existing user API with role mappings. 2021-04-08 16:58:33 +01:00
Martin McKeaveney 33fe760959 scripting block 2021-03-26 14:56:34 +00:00
Martin McKeaveney 28c544490c script block 2021-03-25 11:17:04 +00:00
mike12345567 73cf53d149 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 19b5b41953 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 e8c000dd51 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 ece948e4ef Finishing off automation test cases, above 90% coverage for automations codebase. 2021-03-15 14:11:13 +00:00
mike12345567 b63599d024 Adding in all the automation step tests, beginning work on the general automation tests. 2021-03-12 15:32:16 +00:00
mike12345567 571ac3cf06 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 c47ef73a4a Update icon for row updated trigger 2021-02-23 14:16:44 +00:00
Andrew Kingston 19566d9b7d Add new automation trigger for updating rows 2021-02-23 14:07:19 +00:00
Michael Drury 4ca768a6b3
Merge pull request #1125 from Budibase/feature/autocolumns
Feature/autocolumns
2021-02-17 17:18:12 +00:00
mike12345567 1f92d09d7f 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 f4a503d015 WIP - start of auto columns like autonumber, createdBy, createdAt, updatedBy etc. 2021-02-10 16:10:39 +00:00
mike12345567 3f6d9e21e0 Updating the string templating system to be capable of async operations. 2021-01-20 13:32:15 +00:00
mike12345567 e8ef03bb1c Adding jest test cases to string templating library. 2021-01-19 17:29:38 +00:00
mike12345567 759a106d2d Updating to have real auto-completion on string templates library. 2021-01-19 15:29:49 +00:00
mike12345567 67cc893670 Removing mention of mustache from the server package. 2021-01-15 14:38:10 +00:00
Michael Shanks b2daff6285 Trigger Automation from frontend actions 2021-01-08 17:25:06 +00:00
mike12345567 130f69caf5 Fixing automations to use recurseMustache from utilities. 2020-12-08 11:47:33 +00:00
Martin McKeaveney 71fa39ef7e lint 2020-12-08 11:23:06 +00:00
Martin McKeaveney 642437e5be
Merge branch 'master' into feature/page-refactor 2020-12-08 10:48:14 +00:00
Martin McKeaveney efe50230e7 merge with master 2020-12-07 21:32:45 +00:00
Martin McKeaveney d8aa699bfa merge 2020-12-07 21:20:35 +00:00
mike12345567 8a57f61607 Fixing test case and also making sure that external trigger does what its expected to. 2020-12-07 17:55:35 +00:00
mike12345567 5c084599ec Making chaining of automations through different row creation/deletions possible. 2020-12-07 17:23:53 +00:00
Martin McKeaveney d6b00d5ebe email as default user identifier 2020-12-04 12:22:45 +00:00
mike12345567 c832ed36d4 Merge branch 'feature/security-update' of github.com:Budibase/budibase into feature/page-refactor 2020-12-02 13:26:57 +00:00
mike12345567 05d5feb9fd Changing the naming of access levels to be roles. 2020-12-02 13:20:56 +00:00
mike12345567 9b5734b1de Merge branch 'master' of github.com:Budibase/budibase into feature/page-refactor 2020-11-30 11:47:08 +00:00
Martin McKeaveney 619dec21dc fix create user automation 2020-11-25 15:11:33 +00:00
mike12345567 8ff9635cd1 Removing all reference to 'pages' in server source code, now to look at builder. 2020-11-23 15:46:26 +00:00
Michael Drury 63b08e42aa 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 2472168477 Tests failing but starting to progress. 2020-11-12 17:06:55 +00:00
Michael Drury 4852ecf96a 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 d587bad363 Renaming instanceId -> appId to reduce confusion through the system, there only is one ID now. 2020-10-29 10:28:27 +00:00
mike12345567 d79be3c854 Initial work into multi-tenancy removal, experiencing issues with test cases at this point. 2020-10-28 20:35:06 +00:00
mike12345567 306c36c384 Switching from axios to node-fetch as per review. 2020-10-27 14:16:57 +00:00
mike12345567 37b643b6c6 Switching from mustache to handlebars for automations as allows configuring helpers, e.g. parsing object. 2020-10-27 13:19:38 +00:00
mike12345567 9b629d49b5 Adding an outgoing webhook action, so that we have both incoming and outgoing ability. 2020-10-27 12:33:25 +00:00
mike12345567 533e502143 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 a967645a21 Some initial work towards webhooks, that generates schema similar to integromat. 2020-10-22 17:48:32 +01:00
mike12345567 c319054c30 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 d90c1e3dd3 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 bb3370e742 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 844383631e Merge branch 'master' of github.com:Budibase/budibase into api-usage-tracking 2020-10-09 11:21:26 +01:00
mike12345567 ba758905cc Removing sanisation, instead just using it as a central path system. 2020-10-09 10:00:57 +01:00
mike12345567 b400a06027 Updates for API usage after testing against local Dynamo. 2020-10-08 17:34:41 +01:00
mike12345567 f2b7d85b6e Fixing up middleware to handle uploads, views, records, automation runs and users. 2020-10-07 17:56:47 +01:00
mike12345567 17a4b058b5 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-07 14:48:20 +01:00
mike12345567 691ea16998 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 c80f9e9da2 Merge branch 'master' of github.com:Budibase/budibase into linked-records 2020-10-06 18:03:43 +01:00
mike12345567 f3c4144072 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 5540fa226c Fixing an issue with linked records showing up as models after id changes. 2020-10-02 16:49:36 +01:00
mike12345567 4fbccfcc92 Some quick automation fixes. 2020-10-02 16:42:47 +01:00
mike12345567 6b222ffbf0 Merge branch 'remove-views' of github.com:Budibase/budibase into linked-records 2020-10-02 14:49:23 +01:00
mike12345567 2aff68b245 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 0a80abfd0e 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 a20ffd4c17 Merge branch 'linked-records' of github.com:Budibase/budibase into linked-records 2020-09-25 18:05:38 +01:00
mike12345567 b24ff486d8 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 24097184df Rename records to rows in automation definitions 2020-09-25 15:01:48 +01:00
mike12345567 8765c185af Running linter to cleanup formatting. 2020-09-23 16:20:39 +01:00
mike12345567 58f643bc30 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 5773107516 Adding clean up of records based on the model schema to save and update records. 2020-09-23 13:34:11 +01:00
mike12345567 0a665e05c8 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 93611d5d83 Implementing type cleanup based on the input schema, specifically for booleans and numbers. 2020-09-23 11:54:15 +01:00
mike12345567 dfe3257993 Fixing an issue with the fill in of test data when triggering. 2020-09-22 15:25:26 +01:00
mike12345567 8fe50febc4 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 b1e1e06895 Updating async action loading based on new structure of S3 and manifest. 2020-09-22 14:07:22 +01:00
mike12345567 0c5f30a60b Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks 2020-09-22 13:00:04 +01:00
mike12345567 cef65a3d9a Removing log statement. 2020-09-22 12:56:48 +01:00
mike12345567 d6213912fd Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation 2020-09-22 12:00:54 +01:00
mike12345567 fdc653add8 Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks 2020-09-21 15:06:52 +01:00
mike12345567 aee21a75c6 Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation 2020-09-21 15:05:42 +01:00
mike12345567 37180a9d7f Merge branch 'rename-workflow-automation' of github.com:Budibase/budibase into async-workflow-blocks 2020-09-21 14:51:48 +01:00
mike12345567 088c7440b6 Merge branch 'contextual-workflows' of github.com:Budibase/budibase into rename-workflow-automation 2020-09-21 14:49:15 +01:00
mike12345567 88d22baf1a Renaming workflows -> automate/automations, throughout the API and the builder itself. 2020-09-21 13:49:34 +01:00