1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00
Commit graph

265 commits

Author SHA1 Message Date
mike12345567 06a32ed357 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
Rory Powell 64d73e2f96 Merge branch 'develop' into feature/posthog-v2 2022-05-28 23:03:31 +01:00
Rory Powell 80a82bbcc3 Merge branch 'develop' into feature/posthog-v2 2022-05-23 09:04:00 +01:00
Mel O'Hagan 4d2159f354 Make 'to' field undefined if empty for consistent validation 2022-05-20 13:59:29 +01:00
Mel O'Hagan d6142b777e Add limit placeholder for Automation queries 2022-05-11 11:25:53 +01:00
Rory Powell 3e254e46bb Merge branch 'develop' into feature/posthog-v2 2022-05-05 08:47:06 +01:00
Peter Clement 8c031b9d35 linting 2022-05-04 11:55:26 +01:00
Rory Powell bd33c827eb Merge branch 'develop' into feature/posthog-v2 2022-04-27 16:32:00 +01:00
mike12345567 95d8a4b939 Fixing issues with automation test cases running steps outside of a tenant. 2022-04-26 15:50:35 +01:00
Martin McKeaveney e01ef9bdfb merge with master 2022-04-26 10:21:45 +01:00
mike12345567 fe846f86a5 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 2269bf677b Merge branch 'develop' into feature/licensing 2022-04-20 14:59:36 +01:00
Mel O'Hagan ec235a4e5c RevId should be optional for automation delete 2022-04-20 12:11:36 +01:00
Mel O'Hagan 8858a416ef Prettier comma fix 2022-04-20 11:02:27 +01:00
Mel O'Hagan f0d7b15916 Remove Row Rev from UI 2022-04-20 11:00:58 +01:00
mike12345567 ea6f580501 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 769f48f935 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
Peter Clement c7db0538c7 update required string 2022-04-19 10:45:40 +01:00
Peter Clement ef90021b05 Improve handling of loop handlebars string replacement 2022-04-18 09:22:23 +01:00
Rory Powell 23b68660c2 Merge branch 'feature/licensing' into feature/posthog-v2 2022-04-12 17:12:46 +01:00
Rory Powell dd740df387 Merge branch 'develop' into feature/licensing 2022-04-12 16:18:41 +01:00
Rory Powell 2c682d3507 Table CRUD events + add timekeeper for tests 2022-04-11 14:39:31 +01:00
Peter Clement b58b84776e Add handling for failure conditions 2022-04-11 10:26:59 +01:00
Peter Clement 53c676672a Merge remote-tracking branch 'origin/develop' into feature/foreach-block 2022-04-07 22:32:44 +01:00
Rory Powell 1a131f3e19 Refactor automation tests to run independently 2022-04-06 12:34:31 +01:00
Martin McKeaveney 09694e0045 configure bash step to use automation query timeout 2022-04-06 10:43:08 +01:00
Rory Powell 5da441cf55 Add additional logging to automations 2022-03-30 14:26:51 +01:00
Rory Powell 4ad846f116 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-03-29 16:03:44 +01:00
Peter Clement 2381048c0f more parsing of output bindings 2022-03-29 10:29:51 +01:00
Peter Clement 6ccf744557 update bindings to support looping 2022-03-28 10:01:56 +01:00
Peter Clement 554cefe997 Automation foreach block 2022-03-25 09:26:55 +00:00
Peter Clement bda860693f
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 180e37b9f1 Tests complete + backwards compatibility for deployment 2022-03-22 00:23:22 +00:00
Rory Powell bf9f5488fc Merge branch 'develop' into feature/licensing 2022-03-21 17:13:16 +00:00
Rory Powell 78321a72b1 Add trace to automation errors 2022-03-21 14:25:31 +00:00
Peter Clement 496e4d5e87 Handle error when running an automation with a deleted column 2022-03-21 12:32:04 +00:00
Rory Powell 336f0ff4a0 Published apps, automations and query count quotas 2022-03-20 01:13:54 +00:00
Rory Powell 62b360b9ea Add developer usage restrictions to SSO user creation 2022-03-18 08:01:31 +00:00
Rory Powell ccf2fe3d01 Self Host <-> Licensing integration 2022-03-09 21:16:22 +00:00
Rory Powell d6092b9133 Integrate usage quotas with licensing 2022-03-08 14:21:41 +00:00
mike12345567 e9d344952b Fixing another issue raised by test cases. 2022-02-28 19:27:37 +00:00
mike12345567 6415abb3d4 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 b28d69e21e linting 2022-02-23 16:56:51 +01:00
Rene Pot 933030054a Rename filter to be condition 2022-02-23 15:07:05 +01:00
mike12345567 03b4b29b01 Review comments, renaming deployed -> prod in terms of app IDs. 2022-01-31 17:42:51 +00:00
mike12345567 225674d0a4 Adding comments to areas that need to keep using old db creation method. 2022-01-31 17:27:47 +00:00
Michael Drury 91c2a40c89 Final pass refactoring - need to test but all code in server converted. 2022-01-28 00:05:39 +00:00
mike12345567 40c6eb2007 Main body of work, refactoring most usages. 2022-01-27 18:18:31 +00:00
Rory Powell c6877ff636 Add dryRun to automation row create and remove env conditional on delete 2022-01-18 15:53:55 +00:00
Rory Powell 66a84e8fe6 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 4378a3a657 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 836a2f5863 Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
mike12345567 0a6754b13c 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 53dba1cccb 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 831ef53319 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-11-25 12:21:58 +00:00
mike12345567 32f4a87f95 Updating bullboard to use the new koa version (supported). 2021-11-17 16:30:06 +00:00
mike12345567 494e042dd8 Adding a mechanism for disabling cron jobs when an app is unpublished. 2021-11-17 16:28:52 +00:00
mike12345567 3fdfc95298 Quick update, just to cover both queue add functions. 2021-11-16 19:02:55 +00:00
mike12345567 ba4c79895f 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 7a23df361d 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 2dee1d6cff Fixing issues dsicovered by automation test cases, as well as disabling threading for test scenarios. 2021-11-11 16:20:30 +00:00
mike12345567 82dac5c588 Adding worker controls to both automations and queries. 2021-11-11 12:11:09 +00:00
mike12345567 9ce1866fab 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 62613f6a74 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 99f8bf1244 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 5e16f65d6b
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 6a8bf943a8 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 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