1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00
Commit graph

4861 commits

Author SHA1 Message Date
mike12345567 95d8a4b939 Fixing issues with automation test cases running steps outside of a tenant. 2022-04-26 15:50:35 +01:00
mike12345567 fe78f8d989 Merge branch 'fix/develop-merge' of github.com:Budibase/budibase into fix/develop-merge 2022-04-26 15:43:04 +01:00
mike12345567 8e5c4dea77 Fixing context issues in sync apps/rows test cases. 2022-04-26 15:42:21 +01:00
Rory Powell 50e2d3c686 Test fixes 2022-04-26 15:26:56 +01:00
Rory Powell 0f29b0cb03 Test fixes 2022-04-26 15:07:21 +01:00
mike12345567 bd72565e6f Fixing issue discovered by test case. 2022-04-26 14:58:59 +01:00
mike12345567 6880e7bde9 Fix for #5269 - the sub type was being lost in some scenarios related to the user table being updated - making sure it is consistently kept when dealing with either of the related tables. 2022-04-26 14:24:51 +01:00
Martin McKeaveney 630f29444d fix build 2022-04-26 13:58:33 +01:00
Dean 5545cd84c5 Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-26 12:12:50 +01:00
Martin McKeaveney e01ef9bdfb merge with master 2022-04-26 10:21:45 +01:00
Martin McKeaveney ff7ad47b0a PR review 2022-04-25 11:45:15 +01:00
Martin McKeaveney b05d1d9708 merge 2022-04-25 10:24:49 +01:00
Martin McKeaveney 8f26196191 Merge branch 'gsheets-updates' of github.com:Budibase/budibase into gsheets-updates 2022-04-25 09:38:06 +01:00
Martin McKeaveney 9f0cb41f49
Merge branch 'master' into gsheets-updates 2022-04-25 09:27:38 +01:00
Martin McKeaveney 877dfb0e5d moving node fetch import into module 2022-04-25 00:05:32 +01:00
Martin McKeaveney 33717ceb30 auto fetch access token in gsheets integration 2022-04-24 23:32:47 +01:00
mike12345567 8f738f2c20 Quick fix for #5495 - managing when no relationships exist. 2022-04-23 13:12:57 +01:00
Michael Drury ae385ffd16
Merge pull request #5542 from Budibase/fix/5495
Fix for SQL relationship based formulas
2022-04-22 16:51:24 +01:00
Dean b7feb022b8 Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-22 16:39:59 +01:00
Michael Drury a3321246e0
Merge pull request #5510 from Budibase/fix/pouch-leak
PouchDB memory leak protection
2022-04-22 15:32:51 +01:00
mike12345567 7e6eaf65d8 Fix for #5530 - make MySQL RejectUnauthorized SSL parameter accessible to the user. 2022-04-22 14:53:36 +01:00
mike12345567 89683f9de4 Fix for #5495 - making sure that formula columns have access to the relationship details before squashing the results ready for response from the API. Also making sure that the frontend inputs the relationship bindings as expected with the proper path for access. 2022-04-22 12:56:36 +01:00
Vinoth Kirubakaran 3fe651b0fb chore: resolved merge conflicts from develop branch 2022-04-22 15:23:05 +05:30
Martin McKeaveney 690ba4f81f use ioredis mock for in memory redis tests 2022-04-21 20:24:43 +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
Dean 930b778108 Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-21 14:32:49 +01:00
Martin McKeaveney f2d447153d
Merge pull request #5290 from Upgreydd/Do_not_validate_if_multi-select_options_length_is_0
Do not validate if multi-select options length is 0
2022-04-21 14:29:44 +01:00
Dean 91a6f8645c Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-21 14:10:58 +01:00
mike12345567 1d61ff906a Fixing some issues detected by the test cases, making the in-use mechanism for context more clear to complete avoid stack up of contexts (leading to loss of knowledge around previous databases. 2022-04-20 23:10:39 +01:00
mike12345567 7792a07899 Some updates, making sure databases will always close directly using finally checks around the actual tasks, updating how replication works to have a close statement (to make sure it is controlled correctly) and then updating to PouchDB 7.3.0 for one of the memory leak fixes. 2022-04-20 17:33:42 +01:00
Rory Powell 2269bf677b Merge branch 'develop' into feature/licensing 2022-04-20 14:59:36 +01:00
Dean 9393cb40ec Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-20 12:54:58 +01:00
Mel O'Hagan ec235a4e5c RevId should be optional for automation delete 2022-04-20 12:11:36 +01:00
Mel O'Hagan d85e022182 Get latest RevId if not provided 2022-04-20 11:51:01 +01:00
Vinoth Kirubakaran 5803fcc6b1 feat: made changes to worker and server packages to use global-agent to setup proxy from env variables 2022-04-20 16:00:03 +05:30
Dean 5a87a00932 Added events for viewing a production application and unpublishing 2022-04-20 11:08:06 +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
Dean 9a49535748 Cypress test fixes and refactoring. Removed debugging elements 2022-04-20 09:17:01 +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
Dean 4cc1a85f25 Code style check 2022-04-19 14:56:56 +01:00
Dean f3a1761299 Merge remote-tracking branch 'origin/develop' into feature/new-app-publish-workflow 2022-04-19 14:45:46 +01:00
Dean 3e74118f81 Unpublish refactored to stop development applications being mistakenly deleted. Minor updates to the modal content component to allow the replacement of the header. Further work to implement the publishing workflow changes 2022-04-19 14:38:09 +01:00
Peter Clement c7db0538c7 update required string 2022-04-19 10:45:40 +01:00
Peter Clement 453f49aed8 Merge remote-tracking branch 'origin/develop' into feature/foreach-block 2022-04-18 10:05:43 +01:00
Peter Clement ef90021b05 Improve handling of loop handlebars string replacement 2022-04-18 09:22:23 +01:00
mike12345567 50f6dbebea Fixing REST UI query error notification and adding better error for query timeout. 2022-04-14 17:28:14 +01:00
mike12345567 5396a8d8e0 Fix for #5411 - trimming the various binding components for SQL in queries. Also moving SQL interpolation out into a Typescript - prep for further unit testing/improvements. 2022-04-14 13:06:22 +01:00
Andrew Kingston 98eefb1dd2
Merge pull request #5272 from Budibase/cheeks-lab-day-devtools
DevTools
2022-04-14 12:57:01 +01:00
Rory Powell 5085358423 Merge branch 'develop' into feature/licensing 2022-04-13 21:24:07 +01:00
Rory Powell b5de92d0a0 Add checkout pro step to budibase-ci 2022-04-13 21:13:01 +01:00
Peter Clement 47dcc24491 add environment variable 2022-04-13 10:23:40 +01:00
mike12345567 00bcdd317f Fixing issue #5322 - when endpoint is specified for DynamoDB and not in a the region that the whole instance expects it will throw an odd credentials error - making sure connection is commenced everywhere other than localhost. 2022-04-12 18:49:46 +01:00
Rory Powell dd740df387 Merge branch 'develop' into feature/licensing 2022-04-12 16:18:41 +01:00
Martin McKeaveney e2180397c2
Merge pull request #5316 from Upgreydd/Fix_for_parsing_environment_variable_as_an_integer
QUERY_THREAD_TIMEOUT is string instead of int
2022-04-12 11:56:36 +01:00
Peter Clement a06fcd571b add max iterations env variable 2022-04-12 09:13:01 +01:00
Peter Clement 261b6ccb03 fix failure condition 2022-04-11 23:10:29 +01:00
Peter Clement b58b84776e Add handling for failure conditions 2022-04-11 10:26:59 +01:00
Kacper b0019c80c7 Move out QUERY_THREAD_TIMEOUT from to remove section 2022-04-08 16:20:55 +02:00
Kacper 3df18be4b2 added parseIntSafe function. 2022-04-08 16:17:19 +02:00
Kacper 33090d5d4f QUERY_THREAD_TIMEOUT is string instead of int fix 2022-04-08 13:23:44 +02:00
Peter Clement 53c676672a Merge remote-tracking branch 'origin/develop' into feature/foreach-block 2022-04-07 22:32:44 +01:00
Mel O'Hagan ee1d7fbbd5 passing non-null required for doesContainStrings 2022-04-07 17:13:08 +01:00
Kacper 98a926cfca Do not validate if multi-select options length is 0 2022-04-07 12:01:05 +02:00
mike12345567 c4a42cc181 Fix for issue discovered in #5187 - expanding regex to cover all sorts of number coercion. 2022-04-07 10:26:39 +01:00
Andrew Kingston caff2d7508 Fix for tests when headers are undefined 2022-04-06 14:11:05 +01:00
Andrew Kingston c25ca0cafd Tidy up 2022-04-06 13:40:07 +01:00
Andrew Kingston 7c91d9dceb Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-devtools 2022-04-06 11:50:43 +01:00
Martin McKeaveney 09694e0045 configure bash step to use automation query timeout 2022-04-06 10:43:08 +01:00
Michael Drury 959763d934
Merge pull request #5209 from Budibase/labday/single-docker
Single docker file lab-day
2022-04-05 12:16:09 +01:00
Martin McKeaveney cf1e378b6e
Merge branch 'develop' into labday/integrations 2022-04-05 11:59:39 +01:00
mike12345567 cad32631a4 Fix for #5242 - string interpolation in SQL queries was too wide, it was combining parts of multiple strings, rather than searching for bindings within distinct strings. 2022-04-04 19:08:56 +01:00
mike12345567 d152635e25 Extension of fix for 4978 - fixing an issue where parentheses are added to the IN query, causing the query system to not recognise the need to switch out the binding. 2022-04-04 15:39:38 +01:00
mike12345567 62f4ecf3e1 Fixing issue #5817 - making sure that date strings are correctly parsed into the bindings. 2022-04-01 17:13:28 +01:00
mike12345567 67beee7d93 Fixing test case. 2022-04-01 13:47:38 +01:00
Martin McKeaveney 6e9ddfd696 tidy up 2022-04-01 10:48:17 +01:00
mike12345567 40d38e6e3d Single docker container configuration. 2022-04-01 01:00:52 +01:00
Martin McKeaveney 6d8254d5f0 redis integration complete 2022-03-31 15:44:06 +01:00
Martin McKeaveney 81c662f0ca redis integration 2022-03-31 10:56:16 +01:00
Martin McKeaveney 6432ca102a
Update index.ts 2022-03-31 09:40:41 +01:00
Martin McKeaveney e263cc31bb merge with master 2022-03-30 15:44:22 +01:00
Michael Drury 771dfefe68
Merge pull request #5179 from Budibase/fix/5153
Fix for MySQL Limits and offsets (numbers in bindings)
2022-03-30 15:23:31 +01:00
mike12345567 5dcbef58a8 Fix for #5153 - doing it at the mysql level as it seems to be affected by incorrect types in a way that other SQL databases aren't - limits the possible damage this can do. 2022-03-30 14:45:13 +01:00
Rory Powell 5da441cf55 Add additional logging to automations 2022-03-30 14:26:51 +01:00
Peter Clement 2381048c0f more parsing of output bindings 2022-03-29 10:29:51 +01:00
mike12345567 41ec92bf9b Fix for #5117 - raised a point that the docs didn't describe where to put properties for a query when running through the public API - fixing the spec. 2022-03-28 18:33:54 +01:00
Michael Drury ac129cee01
Merge pull request #5134 from Budibase/fix/5103
Fix for RBAC on apps built from templates containing public screens
2022-03-28 17:17:19 +01:00
Martin McKeaveney 04b17fb634 re-add gsheets to self host 2022-03-28 16:46:05 +01:00
Martin McKeaveney ee6a16827a fixing google sheets bug, respect google configuration hierarchy 2022-03-28 16:44:33 +01:00
mike12345567 e073bdb5a4 Fix for #5103 - some templates are built on an older version that stored permissions differently, we can't migrate these as they will keep being added, easiest to just support the old method (apply the old rule and convert to the new format when retrieving roles). 2022-03-28 16:34:50 +01:00
Peter Clement 6ccf744557 update bindings to support looping 2022-03-28 10:01:56 +01:00
Rory Powell 00e85766c4 Merge branch 'master' into merge-master 2022-03-25 16:51:58 +00:00
Rory Powell b4bad65cbf Fix app preview 2022-03-25 16:25:46 +00:00
Rory Powell 0ee41ea10c Merge branch 'master' into merge-master 2022-03-25 13:10:37 +00:00
mike12345567 7cb2cd2139 Linting. 2022-03-25 12:15:42 +00:00
David Duong 82620a9a7b fix: incorrect parameters for public rows editing 2022-03-25 12:09:39 +00:00
Michael Drury ae157a565a
Merge pull request #5073 from Budibase/fix/5049
Fixing an issue with many-to-many SQL relationships generated in SQL tables
2022-03-25 12:05:44 +00:00
Rory Powell 70c54e983d Add typescript linting at the top level 2022-03-25 11:17:58 +00:00
Peter Clement 5229622f5b improve context handling 2022-03-25 10:52:22 +00:00
Rory Powell c623b968ba Revert openapi.ts linting 2022-03-25 10:50:00 +00:00
Martin McKeaveney 33506bebb4 ignore AWS config when using endpoint field 2022-03-25 10:35:59 +00:00
Peter Clement 554cefe997 Automation foreach block 2022-03-25 09:26:55 +00:00
Martin McKeaveney f40dcbd584 lint 2022-03-24 17:54:27 +00:00
Martin McKeaveney 41e715115f Merge branch 'develop' of github.com:Budibase/budibase into develop 2022-03-24 17:47:59 +00:00
Martin McKeaveney eef0d21551 fixing lint 2022-03-24 17:44:37 +00:00
David Duong 3b5e45b43c
fix: incorrect parameters for public rows editing 2022-03-24 16:11:13 +01:00
Rory Powell 7350fcb4ef Fix test 2022-03-24 14:24:56 +00:00
mike12345567 040d45ad5d Fixing a mis-match of fields when creating many-to-many relationships on tables from within Budibase - #5049. 2022-03-24 13:59:46 +00:00
Rory Powell bcc84bf1fd Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00
Andrew Kingston 8e361afcda Allow deep-getting of pagination params from REST responses 2022-03-24 10:07:23 +00:00
Rory Powell 5392de54d5 Merge branch 'master' into fix/cross-tenant-apps-with-session 2022-03-23 16:45:36 +00:00
Rory Powell cb6103a321 Fix cross tenant apps with session 2022-03-23 16:45:06 +00:00
Martin McKeaveney 60da8273fe
Merge pull request #4970 from Budibase/fix/analytics-cleanup
updating analytics endpoint, removing old NPS survey
2022-03-22 16:34:25 +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
Michael Drury 3811436678
Merge pull request #4991 from Budibase/fix/sql-query-in
Fixing SQL in queries
2022-03-22 13:00:32 +00:00
Rory Powell 180e37b9f1 Tests complete + backwards compatibility for deployment 2022-03-22 00:23:22 +00:00
mike12345567 114c9cf96a Fixing review comment. 2022-03-21 17:57:26 +00:00
mike12345567 d52f6dea05 Adding the ability to expand the max number of rows retrieved by SQL queries (say for table exports). 2022-03-21 17:44:43 +00:00
mike12345567 3eb7ab4e5b Fixing issue #4978 - fixing an issue with using the keyword 'in' as part of an SQL query. 2022-03-21 17:16:18 +00:00
Rory Powell bf9f5488fc Merge branch 'develop' into feature/licensing 2022-03-21 17:13:16 +00:00
Rory Powell 10699edd3b Remove automation usage increment 2022-03-21 16:08:25 +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
Martin McKeaveney 808f50d644 fix tests 2022-03-21 10:04:26 +00:00
Martin McKeaveney 34984ab3a3
Merge pull request #4865 from Budibase/fix/patch-relationships
fixing enrichment of relationships in patch call
2022-03-21 08:24:35 +00:00
Martin McKeaveney fd0a916564
Merge pull request #4871 from Budibase/fix/date-filtering
Date filtering logic
2022-03-21 08:19:03 +00:00
Martin McKeaveney e2a361f19d updating analytics endpoint, removing old NPS survey 2022-03-21 08:00:03 +00:00
Rory Powell 336f0ff4a0 Published apps, automations and query count quotas 2022-03-20 01:13:54 +00:00
Michael Drury 4550631c1b
Merge pull request #4864 from mslourens/google_firebase_integration
Google firebase integration
2022-03-18 10:07:30 +00:00
Rory Powell ce965de59d Fix base path in server url for openapi3 import 2022-03-18 09:20:30 +00:00
Rory Powell 62b360b9ea Add developer usage restrictions to SSO user creation 2022-03-18 08:01:31 +00:00
Rory Powell 2830698629
Merge pull request #4773 from mslourens/openapi3-import
Support Openapi 3 import
2022-03-18 07:16:13 +00:00
Rory Powell 893f82ac4d Better error handling around license errors 2022-03-16 17:29:47 +00:00
Maurits Lourens 06a0e9f76a revert uncommenting code 2022-03-16 13:43:09 +01:00
Maurits Lourens 0f5d4733d6 Merge branch 'develop' into google_firebase_integration 2022-03-16 13:40:04 +01:00
Michael Drury 5bb4b8ddde
Merge pull request #4918 from Budibase/fix/public-api-errors
Fix for public API header error warnings
2022-03-16 11:31:14 +00:00
Peter Clement 43f7d1607d linting 2022-03-16 10:33:38 +00:00
Peter Clement 96ea66f898 send export file from backend 2022-03-16 10:22:06 +00:00
Rory Powell 714da96ee5 developer and published apps usage quota migrations 2022-03-16 08:18:09 +00:00
mike12345567 8b4903f8f6 Fixing issue found by test case. 2022-03-15 20:17:41 +00:00
mike12345567 a37fc54fab Fixing an issue that was breaking build. 2022-03-15 19:53:05 +00:00
mike12345567 1dd2cf99d0 Quick fix for #4914 - adding some checks in API middleware to confirm headers have been set correctly. 2022-03-15 19:31:01 +00:00
Andrew Kingston 72f6bc8930 Add test cases for SQL range filtering changes 2022-03-15 11:52:54 +00:00
Andrew Kingston bf29fa43b4 Merge branch 'develop' of github.com:Budibase/budibase into fix/date-filtering 2022-03-15 11:44:04 +00:00
mike12345567 18d85fd4ac Linting. 2022-03-15 11:20:23 +00:00
Ilia Shupta f373dc213d Allow fully qualified redis url use in koa ratelimit store 2022-03-15 11:20:16 +00:00
mike12345567 d6ab74d04c Merge branch 'master' of github.com:Budibase/budibase into develop 2022-03-15 10:56:39 +00:00
mike12345567 78f1869086 Linting. 2022-03-15 10:52:24 +00:00
Ilia Shupta 6632c4127a
Allow fully qualified redis url use in koa ratelimit store 2022-03-15 14:09:41 +08:00