1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00
Commit graph

651 commits

Author SHA1 Message Date
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
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
2603024792 Changing how types are generated from the open api spec a bit. 2022-03-01 19:00:28 +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
5ba723f935 Updating summaries, adding descriptions, wrapping responses with generic wrapper 'data'. 2022-03-01 14:37:35 +00:00
mike12345567
172850ae87 Switching the basic single row read to use the enrich endpoint. 2022-02-28 12:54:32 +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
06327604eb Refactoring to TS on public endpoints. 2022-02-24 15:13:14 +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
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
23ccb924f7 Updating table schema and adding query endpoints. 2022-02-21 16:37:02 +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
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
mike12345567
fb43a971e6 Specing out search endpoint. 2022-02-16 18:51:17 +00:00
mike12345567
b440657a54 Adding variables to generator. 2022-02-16 18:23:38 +00:00
Maurits Lourens
a3ecb0a9f4 fix tests 2022-02-12 10:06:55 +00:00
Maurits Lourens
7b182b16ad fix tests 2022-02-11 17:28:19 +01:00
mike12345567
9298071cc2 Addomg a fix for #4370 - allow queries to contain newlines, they will always be escaped. 2022-02-07 17:56:01 +00:00
mike12345567
09cfa9508e Merge branch 'develop' of github.com:Budibase/budibase into lab-day/refactor-app-db 2022-01-31 17:16:59 +00:00
mike12345567
da87b3d73e Merge branch 'develop' of github.com:Budibase/budibase into lab-day/refactor-app-db 2022-01-31 17:00:22 +00:00
mike12345567
76e24018be Merge branch 'develop' of github.com:Budibase/budibase into lab-day/refactor-app-db 2022-01-31 14:09:07 +00:00
Rory Powell
a153e920c9 Merge branch 'develop' into feature/migrations-2.0 2022-01-30 22:37:11 +00:00
Rory Powell
3ce4f32250 Merge branch 'develop' into csrf 2022-01-30 21:20:48 +00:00
mike12345567
417bf98ec9 Tests updating, all now passing, fixed some issues discovered by them. 2022-01-28 15:43:51 +00:00
mike12345567
40c6eb2007 Main body of work, refactoring most usages. 2022-01-27 18:18:31 +00:00
Rory Powell
e8e6fc549d Add app db support + app url migration 2022-01-27 10:40:31 +00:00
Rory Powell
420684a862 Merge branch 'develop' into feature/migrations-2.0 2022-01-26 15:00:52 +00:00
Rory Powell
e1ca44442b
Merge pull request #4137 from Budibase/feature/app-urls
Custom App URLs
2022-01-26 14:55:36 +00:00
Rory Powell
5cb6e19274 Add CSRF Token 2022-01-25 22:54:50 +00:00
Rory Powell
a66f14a289 Migrations 2.0 2022-01-24 10:48:59 +00:00
Rory Powell
08bd447b51 Remove server -> worker request to retrieve apps, remove hosting endpoints and store 2022-01-21 17:31:18 +00:00
Andrew Kingston
157b6a19f6 Add public URL of uploaded file to button action outputs when uploading files to S3 2022-01-14 10:40:38 +00:00
Andrew Kingston
3c090cd49b Add tests for generating S3 signed upload URL 2022-01-14 08:25:41 +00:00
Andrew Kingston
bb01806633 Update S3 upload with develop and fix preview URLs 2022-01-13 17:18:24 +00:00
Andrew Kingston
353c06dc13 Merge branch 'develop' of github.com:Budibase/budibase into s3-upload 2022-01-13 17:17:30 +00:00
Andrew Kingston
7b860f5773 Add S3 presigned request generation and file upload capabilities 2022-01-12 14:59:33 +00:00
mike12345567
4c050699d4 Merge branch 'develop' of github.com:Budibase/budibase into feature/auth-core 2022-01-11 15:16:07 +00:00
Rory Powell
68cc60d015 Invalidate dynamic variables when they are removed from datasource 2022-01-11 10:35:53 +00:00
mike12345567
836a2f5863 Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
mike12345567
1ebdc369cd Adding test case to check that query dynamic variables are cached correctly and error scenario is handled. 2022-01-05 15:01:28 +00:00
mike12345567
de243c933a Adding basic test cases for static and dynamic variables (backend). 2022-01-04 18:23:45 +00:00
mike12345567
c55cc0f56a Fixing issue with switching between datasources and making sure old client apps can still use the deprecated API. 2021-12-16 11:41:28 +00:00
Rory Powell
a23b4143e1 Merge branch 'develop' into feature/rest-redesign 2021-12-08 12:36:12 +00:00
mike12345567
b0ef15684b Adding query save, fixing routing to handle existing rest queries, adding in full saving of enabled headers functionality, fixing various issues discovered while testing. 2021-12-07 18:24:10 +00:00
Rory Powell
ac1bce0900 Merge + Linting 2021-12-02 14:54:47 +00:00
Rory Powell
adea1d052b Update backend to be extensible for different import sources 2021-11-29 10:37:31 +00:00
Michael Drury
e8c0684f3c
Merge pull request #3554 from Budibase/labday/docs
API Docs, generation, tables and rows and Swagger definitions
2021-11-26 15:20:23 +00:00
mike12345567
4d3f234807 Updating docs for tables, adding a swagger generation tool and a README describing how to use it. 2021-11-26 14:13:53 +00:00
Andrew Kingston
456760f479
Merge pull request #3542 from Budibase/ak-fixes
Query schema fixes + card fixes
2021-11-26 11:27:28 +00:00
mike12345567
95d02649de Updating docs. 2021-11-25 17:44:47 +00:00
Rory Powell
b6cc536965 WIP: Rest API import 2021-11-25 17:14:07 +00:00
mike12345567
0896a88c5a Basic work for generating. 2021-11-25 16:13:19 +00:00
Peter Clement
571954c197 fix appPackage unit tests 2021-11-25 15:29:35 +00:00
Andrew Kingston
bcabd3b41a Add test to ensure query schema is correctly cleared for prod app IDs 2021-11-25 13:00:43 +00:00
Andrew Kingston
04054cf652 Update tests 2021-11-25 11:52:02 +00:00
Michael Drury
361589d18a
Merge pull request #3338 from Budibase/feature/query-rbac-timeouts
Query RBAC, query and automation threading/timeouts
2021-11-17 11:39:09 +00:00
Michael Drury
8ad44e59af Fixing test case (didn't provide a schema). 2021-11-12 20:23:00 +00:00
mike12345567
6c46c119a6 Adding all required controls for data import to internal tables, just need to implement external table data import. 2021-11-12 18:26:57 +00:00
mike12345567
c8e02a20a0 Updating per review comments. 2021-11-10 12:03:43 +00:00
mike12345567
51b6687262 Updating per review comments. 2021-11-10 12:00:29 +00:00
mike12345567
472af5d4e5 Adding the ability to set a permission for data source queries. 2021-11-09 16:25:23 +00:00
Michael Drury
8bf2e7278e Adding sync user endpoint to server which can be used by the worker. 2021-11-03 23:15:38 +00:00
mike12345567
f86448a276 Merge branch 'develop' of github.com:Budibase/budibase into fix/sql-issues 2021-10-27 14:51:43 +01:00
mike12345567
24eebd9b98 Fixing test cases. 2021-10-27 13:10:46 +01:00
Rory Powell
26bb6cb6b5 Merge branch 'develop' into prevent-dev-app-access 2021-10-26 14:55:59 +01:00
Rory Powell
0718f99850 Prevent non builder from accessing dev apps 2021-10-25 16:59:09 +01:00
mike12345567
a2d302cd57 Removing live replication between deployed and development app, instead it is replicated when the app is opened in the builder. Live replication was not working and only actually pulled back the data on deploy which was a little confusing, this way it can easily be controlled. 2021-10-22 14:34:20 +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
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
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
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
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
Martin McKeaveney
a251c8bfd0 merge with develop 2021-09-30 16:05:06 +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
7de9ed2fdf Merge branch 'develop' of github.com:Budibase/budibase into feature/cloud-export 2021-09-30 12:22:28 +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
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
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
Martin McKeaveney
97cd3756f7 Merge branch 'develop' of github.com:Budibase/budibase into cloud-limits 2021-09-27 12:53:15 +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
d8b2dd035a Adding the ability to migrate from existing in db views to in memory views. 2021-09-21 17:37:26 +01:00
Maurits Lourens
104a84d19b merge develop into branch 2021-09-16 22:15:09 +02:00
Maurits Lourens
c86a878b27 update the name of the datasource 2021-08-17 23:57:11 +02:00
mike12345567
34397c2e14 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-08-06 13:04:54 +01:00
mike12345567
7c7e3da2ab Fixing test cases. 2021-08-06 12:33:04 +01:00
mike12345567
70a1e4f538 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-08-05 10:38:41 +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
Martin McKeaveney
8dfec750b9 remove self host check from apps call 2021-08-04 20:33:39 +01:00
Martin McKeaveney
d9ad54d939 merge with master 2021-08-04 13:20:11 +01:00
Michael Drury
655bfe1a0c
Merge branch 'develop' into feature/multi-tenants 2021-08-04 10:07:31 +01:00
Michael Drury
f37946d47e
Revert "Multi-tenancy/organisations" 2021-08-04 10:02:24 +01:00
Martin McKeaveney
44cdcdf38e
Merge pull request #1963 from faroutchris/feature/query-mongo-collection
Feature/query mongo collection
2021-07-29 10:10:52 +01:00
mike12345567
5c58630ed7 Fixing up everything found when testing with Cypress. 2021-07-26 13:19:47 +01:00
mike12345567
e4eb2d34b2 Merge branch 'develop' of github.com:Budibase/budibase into feature/multi-tenants 2021-07-23 17:20:41 +01:00
Rory Powell
af28a7ed6b Mark google activated by default for old configs 2021-07-23 11:38:17 +01:00
mike12345567
155e30965f Fixing test cases and bugs that they raised. 2021-07-22 22:36:16 +01:00
mike12345567
190798d4ee Swapping admin -> global in worker to reduce confusion in API url naming. 2021-07-22 12:56:47 +01:00
mike12345567
8241df2581 Fixing some tenancy issues. 2021-07-19 12:57:52 +01:00
Christo
c6b1ea9a0f Feat: Add collection fields as "extra" query config for MongoDB 2021-07-09 19:28:46 +02:00
Andrew Kingston
a9d4f09782
Merge pull request #1953 from Budibase/client-feature-flags
Client library updating and client library feature awareness
2021-07-09 16:52:45 +01:00
Andrew Kingston
567d8577ba Add tests for updating and reverting client library version 2021-07-08 13:20:52 +01:00
Andrew Kingston
6716bf2da1 Add endpoint to revert client app version 2021-07-08 12:56:54 +01:00
mike12345567
2bee348721 Fixing test cases. 2021-07-08 00:30:55 +01:00
Andrew Kingston
a6b5861cbc Add client libary update management from inside the builder 2021-07-07 17:07:42 +01:00
Andrew Kingston
70d29c32f8 Merge branch 'master' of github.com:Budibase/budibase into develop 2021-07-07 11:48:38 +01:00
Andrew Kingston
7b841e709a Mock redis shutdown method to avoid errors 2021-07-07 09:34:56 +01:00
mike12345567
922e209c72 Updating server test cases. 2021-07-02 14:49:47 +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
Michael Drury
a2d98bfe23 Linting. 2021-06-21 22:42:57 +01:00
mike12345567
951ff78775 Fixing issue with app import, supporting old search API. 2021-06-21 22:29:32 +01:00
mike12345567
3f1b95218e Fixing some issues I found with testing automations against external tables. 2021-06-18 18:05:31 +01:00
Martin McKeaveney
d2bb7ea6ab fixed all integration tests 2021-06-17 16:52:52 +01:00
Martin McKeaveney
f83f358514 automation server tests updated 2021-06-17 16:35:58 +01:00
Martin McKeaveney
f267c5c404 datasource selection logic - unselect other entities when choosing datasource 2021-06-16 23:27:38 +01:00
Martin McKeaveney
aabbbdecfe consolidate postgres datas sources 2021-06-16 15:45:57 +01:00
Martin McKeaveney
9a35e332ca consolidate data sources and queries together in one UI 2021-06-15 19:48:05 +01:00
Martin McKeaveney
3eaaff9901 merge 2021-06-15 13:37:21 +01:00
Martin McKeaveney
6c2099dd68 removing _all concept for tables, more work on plus datasource 2021-06-15 13:32:11 +01:00
mike12345567
a056176050 Some quick work to make it function as required. 2021-06-15 13:20:25 +01:00