Commit Graph

2065 Commits

Author SHA1 Message Date
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
Martin McKeaveney 2b05b2c17b error message fixes 2021-10-19 16:52:55 +01:00
Michael Drury 2612725beb
Merge pull request #3091 from Budibase/fix/table-perms
Fixing table permissions issue
2021-10-19 16:45:41 +01:00
mike12345567 3631a799c3 Fixing issue with permissions, if some permissions have already been set for a role an error would be thrown which would break the UI and make it impossible to setup permissions for other tables. 2021-10-19 16:19:48 +01:00
mike12345567 d20eb464b0 Fixes issue #2417 in the backend, looks for fields which could contain a key value and if they do it will resolve them down to the ID field value. 2021-10-18 17:54:34 +01:00
Andrew Kingston 8817230bf1 Refactor app exports to allow a streaming realtime backup, and tidy up 2021-10-18 12:08:12 +01:00
Rory Powell f0fa60049d
Merge pull request #2975 from Budibase/no-access-role
No access role / public by default
2021-10-18 11:08:45 +01:00
Peter Clement 07264da6de
Merge pull request #3038 from Budibase/fix/data-section-issues
Add check for missing _rev
2021-10-18 10:13:40 +01:00
Peter Clement 1618e668ed add check for missing _rev 2021-10-18 09:51:13 +01:00
Peter Clement d9a2ba6e96
Merge pull request #3032 from Budibase/fix/data-section-issues
Potential fix for issues with updating and saving rows and columns
2021-10-18 09:34:49 +01:00
Michael Drury 34d5bca7c6
Merge pull request #3025 from Budibase/fix/quick-fixes
Fixing refresh on wrong password and setting hard SQL limits
2021-10-18 09:20:29 +01:00
Peter Clement 29796c3490 Potential fix for issues with updating and saving rows and columns 2021-10-17 21:23:30 +01:00
mike12345567 89be613c40 Setting a hard limit on how many rows can be returned by the SQL plus queries. 2021-10-15 17:52:06 +01:00
Andrew Kingston 2fbb048b0b
Merge pull request #3019 from Budibase/fix/large-csv-import
Fix performance of importing large CSVs
2021-10-15 15:49:11 +01:00
Andrew Kingston 2bef8a036d Lint 2021-10-15 14:57:01 +01:00
Andrew Kingston a1ed5d2605 Remove linkRows processing when importing CSVs 2021-10-15 14:31:45 +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
Andrew Kingston 27a1342531
Merge pull request #3002 from Budibase/js-binding-drawer
JavaScript bindings
2021-10-15 11:37:25 +01:00
mike12345567 33e5946f59 Fixing an issue with mongo test failing in Node 16 due to unhandled promise rejections. 2021-10-14 16:37:11 +01:00
mike12345567 2d94d93f5b Fixing some issues which were causing errors during the cypress test runs, such as not redirect /api/system/ requests to the worker. 2021-10-14 16:25:07 +01:00
mike12345567 ef8804d6f9 Fixing some issues which were causing errors during the cypress test runs, such as not redirect /api/system/ requests to the worker. 2021-10-14 16:17:20 +01:00
mike12345567 c5bc8fdd08 Fixing some issues which were causing errors during the cypress test runs, such as not redirect /api/system/ requests to the worker. 2021-10-14 16:16:20 +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 eb25e81072 Fixes #2998 the templates API call will no longer fail if no internet, will simply return an empty array. 2021-10-14 14:18:41 +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
mike12345567 e21016960e Merge branch 'develop' of github.com:Budibase/budibase into feature/query-transformers 2021-10-13 16:47:41 +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
Martin McKeaveney d9bfacf956 merge 2021-10-13 14:18:56 +01:00
mike12345567 cd1f48b920 Fixing some issues found with query while testing. 2021-10-13 13:22:13 +01:00
Peter Clement bf3075c15c Merge remote-tracking branch 'origin/develop' into bug/misc-automation-issues 2021-10-13 12:39:05 +01:00
Peter Clement 2105fb31db some tidy up 2021-10-13 09:29:01 +01:00
Martin McKeaveney ed9574b815 tidy up 2021-10-12 20:19:32 +01:00
mike12345567 b27a07f785 Adding the basics of the query transformers to the frontend and to the backend, as well as switching to vm2 for script running. 2021-10-12 18:45:13 +01:00
Martin McKeaveney 2674f1992f Merge branch 'develop' of github.com:Budibase/budibase into fix/postrelease 2021-10-12 16:50:37 +01:00
mike12345567 bfdbcb1a47 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-10-12 16:20:40 +01:00
Martin McKeaveney 88f42fb221 remove random files 2021-10-12 16:14:49 +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
Rory Powell fc81644255 Fix unit tests 2021-10-12 14:03:47 +01:00
Rory Powell 11fb7a0b25 Merge branch 'develop' into no-access-role 2021-10-12 13:31:23 +01:00
Peter Clement 6f708ec86b fix webhook issue in automations 2021-10-12 11:00:49 +01:00
Rory Powell 0d76f5ce22 No access role / public by default 2021-10-12 10:05:57 +01:00
Martin McKeaveney eb64cb9b07
Merge pull request #2894 from mslourens/update_rest_url_with_slash_questionmark
add a slash before the path and a questionmark before the querystring
2021-10-11 22:05:45 +01:00
Peter Clement a8829d9adb fix app action trigger 2021-10-11 19:38:43 +01:00
mike12345567 7ae840f758 Fixing an issue with env variables becoming numbers if they started with one. 2021-10-11 17:59:44 +01:00
mike12345567 a7b5fc2e1b Fixing some issues with cloud export/import, removing the ability to export and import your users as this was dangerous and didn't really work with passwords/SSO. 2021-10-08 18:21:40 +01:00
Martin McKeaveney 816d06d9e9 merge 2021-10-07 21:05:39 +01:00
mike12345567 380d0e030e Fixing issue with user's being logged in and trying to access other tenants public apps, this work makes sure that users from other tenants will not be 403'd immediately (too aggressive) but instead they will have all other their RBAC roles revoked. 2021-10-07 15:49:26 +01:00
Martin McKeaveney 6ccaea4a9f remove currentapp stuff 2021-10-07 15:39:22 +01:00
Martin McKeaveney dff57982ea Merge branch 'master' of github.com:Budibase/budibase into fix/post-release-fixes 2021-10-07 13:09:10 +01:00
Martin McKeaveney eead9b07b3 fix user ping event 2021-10-07 12:15:05 +01:00
Martin McKeaveney 910477a765 fix table view export in prod 2021-10-07 11:26:09 +01:00
mike12345567 be5f3a84ca Fixing minor mistake. 2021-10-07 08:33:39 +01:00
Martin McKeaveney 191299697b prevent cross tenant app access 2021-10-06 22:16:50 +01:00
mike12345567 1fbd84b629 Making sure creation of SQL rows don't pass down null columns (no point). 2021-10-06 17:55:03 +01:00
mike12345567 1684f18217 Fixing issue #2276 - allows reverting a SQL column to null if no input. 2021-10-06 17:52:12 +01:00
mike12345567 3878cf76cd Fixing issue #2788 - making client side queries and SQL queries consistent with internal table ones. 2021-10-06 17:38:32 +01:00
mike12345567 2b0bdffa65 Fixing an issue with attempting to access a locked app causes a redirect loop locking up browser. 2021-10-06 16:27:46 +01:00
Martin McKeaveney 9e41b9cd8f UX improvements 2021-10-05 23:49:32 +01:00
Martin McKeaveney ddfecf14dc templates working end to end 2021-10-05 23:02:28 +01:00
Maurits Lourens 53cfb8dc9c fix tests 2021-10-05 13:38:03 +02:00
Maurits Lourens 42d5140c7f add a slash before the path and a questionmark before the querystring 2021-10-05 12:20:09 +02:00
Rory Powell db5565d03c
Merge pull request #2882 from Budibase/honour-quota
Deny only when usage quota is exceeded
2021-10-04 16:47:53 +01:00
Rory Powell 421f72c4dc
Merge pull request #2881 from Budibase/api-keys
Add API keys between account portal and budibase
2021-10-04 14:17:17 +01:00
Michael Drury 079b4f4633
Merge pull request #2880 from Budibase/fix/2835
Fix for shorthand app URL not re-directing if the user isn't logged in
2021-10-04 14:09:48 +01:00
Rory Powell f20cc45bc3 Deny only when usage quota is exceeded 2021-10-04 14:07:10 +01:00
Rory Powell 651947bb49 Add API keys between account portal and budibase 2021-10-04 13:40:50 +01:00
mike12345567 b8e968644a Fixing issue with direct app request in self host not working when un-authenticated (doesn't re-direct to login). 2021-10-04 13:31:53 +01:00
mike12345567 a343805fee Fix for many to many relationships where the union table has arbituarily named foreign key constraint columns, an example has been provided in the scripts directory. 2021-10-01 17:16:43 +01:00
Martin McKeaveney 6a6dac9d3a adding debug log for deployments 2021-10-01 15:36:33 +01:00
Michael Drury c8260ba4de
Merge pull request #2847 from Budibase/fix/2665
Fix created by/updated by auto columns breaking public forms
2021-10-01 15:16:22 +01:00
mike12345567 f4b57aab1c Fixing issue with created by/updated by on public forms, also fixing a small issue with analytics ping generating a 404. 2021-10-01 15:00:11 +01:00
mike12345567 04acb160a2 Quick fix for worker, API key was not considered good enough to access worker, updated this and added better error to smtp action. 2021-10-01 13:29:08 +01:00
Michael Drury 2b49635a31
Merge pull request #2830 from Budibase/fix/2796
Fix for formula fields in enrich call
2021-10-01 11:10:14 +01:00
mike12345567 53fb8682f9 Fixing formula in enrichment calls, it did not retrieve the correct linked table for output processing, grouping rows for enrichment phase with their correct tables. 2021-09-30 17:54:54 +01:00
Martin McKeaveney 443466ca63
Merge pull request #2829 from Budibase/fix/quotas
Fix app creation when there is no app ctx
2021-09-30 17:43:10 +01:00
Rory Powell fda5a52630 Fix app creation when there is no app ctx 2021-09-30 17:35:09 +01:00
Martin McKeaveney bdc004d18e removing optional chain 2021-09-30 17:04:55 +01:00
Martin McKeaveney 665a9620a4 lint 2021-09-30 16:39:10 +01:00
Martin McKeaveney a251c8bfd0 merge with develop 2021-09-30 16:05:06 +01:00
Mike Shanks fe6ea329f1 added awaits to all mongo querys 2021-09-30 15:05:15 +01:00
Martin McKeaveney b8fef9965d end user ping for client apps 2021-09-30 15:03:57 +01:00
mike12345567 feae148d03 Fixing view test case. 2021-09-30 12:55:21 +01:00
mike12345567 8e7ee8f23e Only development apps. 2021-09-30 12:50:22 +01:00
mike12345567 7de9ed2fdf Merge branch 'develop' of github.com:Budibase/budibase into feature/cloud-export 2021-09-30 12:22:28 +01:00
mike12345567 b3cda1cf64 Adding cloud -> self host and self host -> cloud view migrations. 2021-09-30 12:17:27 +01:00
Andrew Kingston 7571be0bb9
Merge pull request #2790 from Budibase/data-ui-pagination
Data UI pagination and searching
2021-09-30 11:13:47 +01:00
Peter Clement c84e70c919
Merge pull request #2735 from Budibase/feature/datasource-wizard
Datasource wizard
2021-09-30 11:05:22 +01:00
Peter Clement e0e4048b37 remove log statement 2021-09-30 10:39:21 +01:00
Martin McKeaveney 6681542ab5 fix tests 2021-09-30 10:35:53 +01:00
Martin McKeaveney 6ebc5a389b remove cloud limits for certain tenants 2021-09-30 10:17:25 +01:00
Andrew Kingston f03b8470a4 Only use fetch for search when running in cypress 2021-09-29 18:22:56 +01:00
mike12345567 ccd2913857 Final cleanup, just need to handle view migration (to self host from cloud). 2021-09-29 17:43:16 +01:00
Andrew Kingston 2b31239f04 Treat the search endpoint as a fetch when running tests as lucene doesn't exist 2021-09-29 17:36:53 +01:00
mike12345567 f69469ea4f Adding the ability to run the monorepo in cloud mode without the connected account portal (login, org setting and admin creation are all available again) as well as re-working how the redirects work to massively reduce the chance of cycles which I was experiencing constantly. 2021-09-29 16:55:59 +01:00
Peter Clement 42e38ad876 update ssl ux 2021-09-29 13:02:30 +01:00
mike12345567 be1f94941c Merge branch 'develop' of github.com:Budibase/budibase into feature/cloud-export 2021-09-29 12:57:14 +01:00
Peter Clement f7984d3dbe fix mysql ssl 2021-09-29 10:11:52 +01:00
Martin McKeaveney c6d1fd3165
Merge pull request #2716 from mslourens/custom_schema_support
Retrieve all columns from all not internal tables
2021-09-29 09:19:33 +01:00
mike12345567 4de566d864 Some fixes after testing and adding some basic work to the frontend. 2021-09-28 18:05:52 +01:00
Peter Clement 22bbbb5ba4 fix tests 2021-09-28 15:29:42 +01:00
Peter Clement eed3bdcb6b Merge remote-tracking branch 'origin/develop' into feature/datasource-wizard 2021-09-28 14:26:25 +01:00
Peter Clement 5ca4da1146 check tables can be fetched before saving config 2021-09-28 12:25:57 +01:00
mike12345567 145c0a11c9 Merge branch 'develop' of github.com:Budibase/budibase into feature/cloud-export 2021-09-28 11:23:03 +01:00
mike12345567 f836565f69 Putting together cloud export and import functionality, still need to test, but basic concept there. 2021-09-27 19:12:41 +01:00
Martin McKeaveney f877244571 abstract usagedoc creation into auth, create the doc if it doesn't exist 2021-09-27 17:35:22 +01:00
Martin McKeaveney 0692263960 tests 2021-09-27 16:39:08 +01:00
Martin McKeaveney 9bbb230aa6 merge with develop 2021-09-27 16:37:55 +01:00
Martin McKeaveney 30f60d9bae prevent SMTP fallback for automations 2021-09-27 16:28:39 +01:00
Michael Drury 106b575c4e
Merge pull request #2729 from Budibase/fix/no-perms-hierarchy
Removing the concept of permissions hierarchy from backend for resources
2021-09-27 15:15:31 +01:00
Michael Drury 20c5753c2f
Merge pull request #2756 from Budibase/fix/sql-fixes
Allow newlines in Postgres JSON inputs
2021-09-27 15:12:02 +01:00
Martin McKeaveney 757fbbc19c re-adding env var controls for cloud limit functionality 2021-09-27 15:03:48 +01:00
Martin McKeaveney 5b1ae778da fallback SMTP configuration for cloud 2021-09-27 14:57:22 +01:00
mike12345567 ba2f6ee120 Fixing issue discovered by test case. 2021-09-27 13:17:31 +01:00
Martin McKeaveney 97cd3756f7 Merge branch 'develop' of github.com:Budibase/budibase into cloud-limits 2021-09-27 12:53:15 +01:00
mike12345567 02a3b7425e Removing useless statement. 2021-09-27 12:17:59 +01:00
Andrew Kingston b047376089 Merge branch 'develop' of github.com:Budibase/budibase into ak-fixes 2021-09-27 11:30:51 +01:00
Andrew Kingston 4c47ee9853 Fix check to create default layouts and screens 2021-09-27 11:30:46 +01:00
Martin McKeaveney 9cb20bcda2 ensure automation quotas are not incremented for test runs 2021-09-27 10:32:39 +01:00
mike12345567 1f474ca106 Minimal fix for issue involving JSON views and newlines with postgres, this fix couldn't be more over-arching as it risked breaking new lines across the board. Have included a script for setting up the test scenario as well. This fixes issue #2612. 2021-09-24 18:10:30 +01:00
Martin McKeaveney 93ccea7f06 remove old middleware 2021-09-23 23:26:09 +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 649a33d3c8 Getting rid of the concept of permissions hierarchy, roles still have a hierarchy and base permissions still follow the old system, but resources can be given a stack of separate permissions which don't override each other. 2021-09-23 19:04:53 +01:00
mike12345567 a864105649 Fixing postgres datasource test. 2021-09-23 17:43:06 +01:00
mike12345567 7c7266a547 Fixing SQL test cases. 2021-09-23 16:56:13 +01:00
mike12345567 1952dc308e Fixes issue #2616 - this is a slightly complex fix and handles a few other issues with mysql (around returning on creation of a row and relationships) - a new mechanism is now used for pagination and limiting which makes sure the limits are applied to the outer table rather than the combination of the outer and the joined. 2021-09-23 16:35:09 +01:00
Martin McKeaveney 8b67d675c1
Merge pull request #2715 from mslourens/extend_postgres_data_types
Extend Postgres data type map
2021-09-23 12:25:03 +01:00
Maurits Lourens baed83c406 Retrieve all columns from all not internal tables 2021-09-23 11:11:00 +02:00
Martin McKeaveney 5a1e39c49f
Merge pull request #2707 from mslourens/fix_constraint_formula_field
Fix formula constraints check
2021-09-23 09:35:43 +01:00
Andrew Kingston 6d545c6a27 Merge branch 'develop' of github.com:Budibase/budibase into ak-fixes 2021-09-23 09:18:52 +01:00
Maurits Lourens 2b2a78e155 Extend Postgres data type map 2021-09-23 09:54:58 +02:00
Michael Drury b3805c9853
Merge pull request #2709 from Budibase/fix/2673
Fix for issue #2673
2021-09-22 18:21:56 +01:00
Michael Drury 53aaea9e31
Merge pull request #2698 from Budibase/feature/view-cloud-replacement
Cloud View replacement
2021-09-22 18:21:38 +01:00
mike12345567 f70cee3c52 Fixing issue #2673 - discovered issues with some column types not being worked out to be auto-columns in postgres. 2021-09-22 17:46:54 +01:00
Maurits Lourens fe3902a33c Check if the formula validates against its constraints 2021-09-22 17:27:07 +02:00
Andrew Kingston 22e75b8154 Only create default home screen and layouts when not importing an app 2021-09-22 14:50:52 +01:00
Martin McKeaveney be1806110a merge with develop 2021-09-21 21:43:29 +01:00
Martin McKeaveney 61a77b1fd4 merge from master 2021-09-21 21:42:52 +01:00
Martin McKeaveney b7ff1a2464 turn analytics off for self hosted 2021-09-21 20:39:56 +01:00
mike12345567 d8b2dd035a Adding the ability to migrate from existing in db views to in memory views. 2021-09-21 17:37:26 +01:00
mike12345567 e0ae992a46 Merge branch 'develop' of github.com:Budibase/budibase into feature/view-cloud-replacement 2021-09-21 17:27:47 +01:00
mike12345567 efdd78c7fe Removing use of db.post as its dangerous to allow the possibility of _id being auto-generated, these docs would be lost as we couldn't query them out by the usual id mechanism. 2021-09-21 16:07:04 +01:00
mike12345567 8f70ad9cdc Performance improvements after testing - switching to temporary in memory queries for cloud views. 2021-09-21 15:59:50 +01:00
Martin McKeaveney 3a50b74db8 only write to backups bucket in self host 2021-09-21 14:36:30 +01:00
mike12345567 0651b874ac Fixing issues with automation steps found during testing. 2021-09-20 19:21:04 +01:00
mike12345567 ac944e532b Moving views into a different location so they don't trigger tree creation and attempting to use in memory pouchDB to run views on the fly. 2021-09-20 18:24:09 +01:00
Rory Powell 96b76231a9 Merge branch 'develop' into feature/onboarding-backend 2021-09-20 11:27:02 +01:00
Rory Powell 12a5428a6e Move all session population to budibase (bug fix) 2021-09-20 11:26:19 +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