Commit Graph

4765 Commits

Author SHA1 Message Date
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
mike12345567 8dc2c9d480 Fixing an issue with detecting fully qualified Redis URL despite not in use. 2022-03-14 16:50:01 +00:00
Michael Drury 0d7db82c71 Fixing MS-SQL variable sub. 2022-03-12 11:13:41 +00:00
Michael Drury 7f36cc97c9 Switching to correct concat function for oracle. 2022-03-11 00:40:01 +00:00
Michael Drury 05836272dd Adding a mechanism to concat strings in queries, there was a problem when char const strings were wrapping bindings, this should find instances of that and replace with a datasource specific method of concating the constant with the variable. 2022-03-11 00:19:26 +00:00
mike12345567 c1c879309f Making the URL optional for application creation/update in OpenAPI spec, removing unused parameter and fixing getRedisOptions function to work with fully qualified URLs. 2022-03-10 15:53:23 +00:00
Martin McKeaveney 1ad61a1372 revert NPM script to update OpenAPI 2022-03-10 11:17:15 +00:00
Andrew Kingston 7a1b362515 Update date filtering to only use a between statement when 2 dates are provided 2022-03-10 10:18:03 +00:00
Martin McKeaveney a33ab44433 Merge branch 'develop' of github.com:Budibase/budibase into fix/patch-relationships 2022-03-10 10:17:30 +00:00
Maurits Lourens 70c5574e75 finish up Firebase implementation 2022-03-10 00:23:36 +01:00
Rory Powell ccf2fe3d01 Self Host <-> Licensing integration 2022-03-09 21:16:22 +00:00
Maurits Lourens bdb5b127dd fix connection to firebase using service account 2022-03-09 17:46:25 +01:00
Martin McKeaveney bab0c66b89 fixing enrichment of relationships in patch call 2022-03-09 16:08:55 +01:00
mike12345567 f0001f4a4e Updating row search bookmark to handle numbers as bookmarks. 2022-03-09 10:12:26 +00:00
mike12345567 ebee98133b Fixing an inconsistency that was raised by a community member. 2022-03-08 18:00:49 +00:00
mike12345567 6728f4efde Quick fix for openAPI spec, improving the search spec. 2022-03-08 17:42:26 +00:00
Maurits Lourens e9405a1802 initial setup for google firebase integration 2022-03-08 17:31:36 +01:00
Rory Powell d6092b9133 Integrate usage quotas with licensing 2022-03-08 14:21:41 +00:00
Martin McKeaveney 62b9983d03
Merge pull request #4824 from Budibase/feature/export-from-client
Export selected rows from button action
2022-03-08 12:31:47 +01:00
Rory Powell 995f7c4b58 Move licensing middleware to pro repo 2022-03-08 08:01:41 +00:00
mike12345567 1357c53ff8 Fixing issue #4811 - when renaming SQL columns use an actual rename alteration rather than dropping the column. 2022-03-07 16:31:35 +00:00
Maurits Lourens 6f31b094b9 implement review comments 2022-03-07 13:58:04 +01:00
Peter Clement ea63b9b065 Add button action allowing for export of client row selection 2022-03-07 12:06:11 +00:00
Peter Clement 49420a6818 Merge remote-tracking branch 'origin/develop' into feature/export-from-client 2022-03-07 12:04:56 +00:00
Rory Powell 183b01dd47 Fix build, additional tests, updated body detection, support variables in urls 2022-03-07 10:41:28 +00:00
mike12345567 0f1b7b18d5 Making sure that tables are created within the correct schema for MS-SQL. 2022-03-04 15:50:19 +00:00
mike12345567 a7e3389790 Adding the ability to support schemas in MS-SQL. 2022-03-04 15:12:07 +00:00
mike12345567 2123fca557 Fixing various other ms-sql types. 2022-03-04 13:48:21 +00:00
Rory Powell 3b9303a1fb Enforce licensed developer count + error types/codes framework 2022-03-04 13:42:50 +00:00
mike12345567 b054c2a198 Merge branch 'develop' of github.com:Budibase/budibase into fix/sql-issues 2022-03-04 12:47:02 +00:00
mike12345567 5d7f4b6ab7 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-03-04 11:25:32 +00:00
Peter Clement 222033b95e backend for client export of rows 2022-03-04 10:05:46 +00:00
Michael Drury 7179cf978a Updating test case to handle new promise library. 2022-03-03 23:50:46 +00:00
mike12345567 07551c54c1 Attempting to fix mysql issue by changing our usage of mysql2 to use the promise version, making sure disconnection always occurs correctly and using a slightly different syntax/approach. 2022-03-03 19:20:26 +00:00
mike12345567 3f150c4a1f Correctly parsing the bit type in ms-sql to boolean. 2022-03-03 17:20:21 +00:00
Maurits Lourens 090da34a99 fix openapi 3 test doc and tests 2022-03-03 15:19:36 +01:00
Rory Powell 515ade6bd3 Add shared licensing cache 2022-03-03 13:37:04 +00:00
mike12345567 86f649c5db Upping test rate limit level. 2022-03-03 12:31:56 +00:00
mike12345567 54137ec9fb Removing koa rate limit types, was requiring types for every store, types didn't work correctly. 2022-03-03 12:19:12 +00:00
mike12345567 216af35aeb Fixing review comments. 2022-03-03 12:03:29 +00:00
mike12345567 f01a072f98 Merge branch 'develop' of github.com:Budibase/budibase into feature/rate-limiting 2022-03-03 11:48:18 +00:00
Maurits Lourens c1d2a4680a initial implementation of openapi 3 2022-03-03 00:18:15 +01:00
Michael Drury 65b52f359b Fixing issue brought up by test case. 2022-03-02 22:51:50 +00:00
Michael Drury 94041ced55 Changing how SQL vars are generated so that when new SQL implementations are added they must implement a generation mechanism. 2022-03-02 22:45:10 +00:00
mike12345567 8ce1b471fd Fixes for SQL issues raised by Marty. 2022-03-02 17:40:50 +00:00
mike12345567 32e7f27dfa Adding check to disable rate limit redis connection in test. 2022-03-02 12:50:10 +00:00
mike12345567 a8a8498a9c Updating rate limiter to make use of Redis. 2022-03-02 12:27:09 +00:00
mike12345567 b1167fd444 Adding public API rate limiting, with env variable option, defaults to 120 requests per minute. 2022-03-02 11:36:30 +00:00
mike12345567 dadf3fef02 Review comments and linting. 2022-03-01 22:37:42 +00:00
Rory Powell 011f8a1cc1 Merge branch 'master' into licensing-poc-master 2022-03-01 21:10:51 +00:00
mike12345567 2603024792 Changing how types are generated from the open api spec a bit. 2022-03-01 19:00:28 +00:00
mike12345567 d7dbcb2175 Adding a top level script for generating specs, symlinking the openapi yaml and json to top level as well. 2022-03-01 18:42:52 +00:00
mike12345567 d8b5cae569 Adding new generation technique, converting openAPI spec to typescript definitions, which are then applied in mapping output middlewares to make sure that the structures of the response are fully respected. 2022-03-01 18:35:08 +00:00
mike12345567 6cc9d2d61c Merge branch 'feature/budibase-api' of github.com:Budibase/budibase into feature/budibase-api 2022-03-01 14:38:35 +00:00
mike12345567 5ba723f935 Updating summaries, adding descriptions, wrapping responses with generic wrapper 'data'. 2022-03-01 14:37:35 +00:00
Michael Drury 62e1f8196b Fixing an issue with webhook controller. 2022-02-28 20:03:02 +00:00
mike12345567 e9d344952b Fixing another issue raised by test cases. 2022-02-28 19:27:37 +00:00
mike12345567 3028c34564 Fixing test case. 2022-02-28 18:53:03 +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
mike12345567 172850ae87 Switching the basic single row read to use the enrich endpoint. 2022-02-28 12:54:32 +00:00
mike12345567 2bc2d17066 Updating application output schema. 2022-02-28 11:29:48 +00:00
mike12345567 eed4111fe2 Rounding out user schema and query schema as required. 2022-02-25 19:26:19 +00:00
mike12345567 5567ca49c4 Removing test case. 2022-02-25 19:02:27 +00:00
mike12345567 91508ae141 Adding test cases for user implementation with mocks. 2022-02-25 19:01:17 +00:00
mike12345567 1152229719 Users implementation added. 2022-02-25 19:00:12 +00:00
mike12345567 033e320e49 Adding test cases for all implemented endpoints. 2022-02-25 18:02:08 +00:00
mike12345567 f3418044dc Starting to fix up test cases. 2022-02-25 15:55:19 +00:00
mike12345567 390e3e627f Updating validators, make sure everything that is optional is really optional. 2022-02-25 11:39:46 +00:00
Michael Drury 46d23cfb25 Adding a testing system which generates the schema and compares against responses. 2022-02-24 23:21:10 +00:00
mike12345567 f2c2c903e5 Merge branch 'develop' of github.com:Budibase/budibase into feature/budibase-api 2022-02-24 18:19:20 +00:00
Andrew Kingston 0137867f1a Update devtools with new features 2022-02-24 15:36:21 +00:00
mike12345567 06327604eb Refactoring to TS on public endpoints. 2022-02-24 15:13:14 +00:00
Andrew Kingston e35fc7cb7b Fix bad import of headers constants 2022-02-24 14:14:39 +00:00
Andrew Kingston 40c6976035 Merge branch 'develop' of github.com:Budibase/budibase into cheeks-lab-day-devtools 2022-02-24 14:03:29 +00:00
mike12345567 d0e0889cc6 Fix for validator adding. 2022-02-24 12:03:46 +00:00
mike12345567 bc87e2b562 Moving validators to a single location, simplify route files and all re-usability. 2022-02-24 11:39:38 +00:00
Michael Drury 88e0f67f42 Adding table public API. 2022-02-23 22:13:16 +00:00
mike12345567 c189550614 Adding controllers for row, query and applications public APIs. 2022-02-23 18:31:32 +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 6a416cad59 Refactoring how endpoints are specified so that the middlewares can be applied in a more generic fashion. 2022-02-22 18:40:09 +00:00
mike12345567 baf806275b Getting prettier running on the public routes. 2022-02-22 17:38:27 +00:00
mike12345567 4e522e39da Refactoring resource system, so that examples and schemas have individual files rather than all being lumped into one. 2022-02-22 15:06:08 +00:00
mike12345567 1f8da07767 Adding in request bodies. 2022-02-22 14:28:57 +00:00
mike12345567 710a340006 Updating output schemas and adding examples to everything. 2022-02-22 14:10:01 +00:00
mike12345567 7443a17458 Adding in all endpoints/open API definitions, need to flesh everything out. 2022-02-21 19:04:13 +00:00
mike12345567 282fa6cac2 Merge branch 'develop' of github.com:Budibase/budibase into feature/budibase-api 2022-02-21 16:54:39 +00:00
mike12345567 23ccb924f7 Updating table schema and adding query endpoints. 2022-02-21 16:37:02 +00:00
Rory Powell e313693bdc
Merge pull request #4607 from Budibase/migration-tenantIds
Respect custom tenantIds in run migrations endpoint
2022-02-21 15:32:33 +00:00
mike12345567 cf9664969f Fixing issue with formula column validation breaking row save. 2022-02-21 15:01:42 +00:00
mike12345567 97337db4ee Merge branch 'develop' of github.com:Budibase/budibase into feature/budibase-api 2022-02-21 14:34:06 +00:00
mike12345567 85103cdf13 Adding a schema for tables. 2022-02-18 18:06:58 +00:00
mike12345567 890a17679c Adding in row schema for create/update, making sure all existing endpoints have appId specified. 2022-02-18 17:44:08 +00:00
Rory Powell d9ead48c59 Deprovision and local couch db url fix 2022-02-18 17:36:23 +00:00
mike12345567 9b28414bbb Rows API mostly complete, starting into tables. 2022-02-18 15:47:15 +00:00
mike12345567 23bd6d39e2 Adding a structure for breaking up examples and parameters. 2022-02-17 19:55:37 +00:00
mike12345567 dc56d06a11 Adding in public endpoint definitions. 2022-02-17 18:58:09 +00:00