Commit Graph

5004 Commits

Author SHA1 Message Date
Andrew Kingston 935c0006c6 Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-08-07 14:42:22 +01:00
Adria Navarro 4d2fef6b19 Fix types after merge 2023-08-07 15:33:50 +03:00
Adria Navarro f1739d9aa4 Merge branch 'develop' into BUDI-7189/change_query_format 2023-08-07 15:32:55 +03:00
Martin McKeaveney b7810f915e fix lint 2023-08-07 12:55:28 +01:00
Adria Navarro 74678e7248 Merge branch 'develop' into BUDI-7189/search_pagination 2023-08-07 12:55:26 +01:00
Andrew Kingston d5cfc5f53a Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-08-07 12:52:43 +01:00
Martin McKeaveney 14785ca49d move to info log line 2023-08-07 12:36:19 +01:00
Adria Navarro 8d3919cdf5 Merge branch 'develop' into BUDI-7189/type_search 2023-08-07 12:26:46 +01:00
Adria Navarro c6fba3a827 Fix types 2023-08-07 14:16:23 +03:00
Adria Navarro 98a5d36d57 Merge branch 'develop' into BUDI-7189/change_query_format 2023-08-07 11:52:08 +01:00
Adria Navarro 77568af704 Change filter query to store the expected shape 2023-08-07 13:14:18 +03:00
Martin McKeaveney ac5ce13f80 debug log for automation ID 2023-08-07 10:59:42 +01:00
Martin McKeaveney 12d5f0109d Merge branch 'master' into develop 2023-08-07 09:24:10 +01:00
Adria Navarro 39d099b443 Handle and test pagination 2023-08-07 10:49:04 +03:00
Adria Navarro 497943930e Rename 2023-08-07 09:22:39 +03:00
mike12345567 ec761c2387 Building out public API for role assignment and un-assignment - need to flesh out pro component. 2023-08-04 18:01:45 +01:00
mike12345567 a8af298ef5 Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7108 2023-08-04 17:20:51 +01:00
mike12345567 a1d85a831c Some quick modifications to allow the views to go through the standard row CRUD, the view search is still separate for now however this may change. 2023-08-04 16:58:40 +01:00
Adria Navarro 250505a19b Add limit on request 2023-08-04 18:41:49 +03:00
Adria Navarro 4f08f900ed Type view search 2023-08-04 18:38:07 +03:00
Adria Navarro 259bb3cdc2 Merge branch 'develop' into BUDI-7189/type_search 2023-08-04 16:23:07 +01:00
Adria Navarro 4d74a6615f Fix types 2023-08-04 18:22:33 +03:00
mike12345567 a2667c6d72 Removing the ability to set roles, builder and admin structure through basic public API. 2023-08-04 15:43:02 +01:00
Andrew Kingston 938a5a445f Add multi dev collab for viewV2 definitions 2023-08-04 15:04:58 +01:00
melohagan ece1c421fa Fix/formula as display (#11439)
* Allow formulas to be display columns in the grid

* Ensure SQL Server always has a sort order
2023-08-04 13:53:30 +01:00
Adria Navarro d3470dfcb0 Fix imports 2023-08-04 12:00:25 +03:00
Mel O'Hagan 20f71fadd3 Refactor 2023-08-03 18:52:55 +01:00
Mel O'Hagan 8c61359b9d Allow user specified type casting in MySQL queries 2023-08-03 17:23:15 +01:00
Adria Navarro 464ba92b47 Fix tests 2023-08-03 14:32:03 +03:00
Adria Navarro 227ac9dd88 Merge branch 'BUDI-7189/search_pagination' into BUDI-7189/type_search 2023-08-03 14:23:59 +03:00
Adria Navarro cb59a2fc9b Type search request 2023-08-03 05:16:10 +02:00
Adria Navarro a91ce15c9b Move interface SearchParams to types 2023-08-03 05:14:50 +02:00
Adria Navarro d28120de3a Make search a post request 2023-08-03 04:58:37 +02:00
Andrew Kingston 858a0796bd Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-08-02 14:50:40 +01:00
Adria Navarro b69943c074 Move tests 2023-08-02 15:13:43 +02:00
Adria Navarro e8b2a074d0 Merge branch 'develop' into BUDI-7189/add_primary_column 2023-08-02 13:49:18 +01:00
Adria Navarro e11279311d Add tests 2023-08-02 13:37:58 +02:00
Adria Navarro a3a1e29350 Handle undefineds 2023-08-02 13:37:36 +02:00
Adria Navarro 398cf99b4f Handle primaryDisplay on controller 2023-08-02 13:17:20 +02:00
mike12345567 8c2d0f594c Quick fix for utilising a hyphen in a Postgres schema - this needed to be escaped correctly. 2023-08-01 18:18:53 +01:00
Adria Navarro e011ccd0c4 Merge branch 'develop' into chore/typecheck_tests 2023-08-01 16:49:06 +01:00
mike12345567 7871bedb25 Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-08-01 15:27:38 +01:00
Adria Navarro 130ab97368 Merge branch 'develop' into chore/typecheck_tests 2023-08-01 14:27:40 +01:00
Andrew Kingston bb810e14d7 Fix issue with order 0 being ignored 2023-08-01 14:24:06 +01:00
Andrew Kingston cb01768e5a Fix crash when schemaNonUI does not exist 2023-08-01 14:18:12 +01:00
Andrew Kingston cb78788bdb Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-08-01 14:12:03 +01:00
Adria Navarro 67baa56cbf Skip flaky test 2023-08-01 14:40:47 +02:00
mike12345567 b32ed151a1 Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-08-01 13:11:45 +01:00
Adria Navarro 559f52d904 Lint 2023-08-01 13:36:38 +02:00
mike12345567 4e1aa4fbbd Final PR comment. 2023-08-01 12:33:59 +01:00
Adria Navarro ff7120cf7a Fix types on tests 2023-08-01 12:57:44 +02:00
Adria Navarro c6c1450d06 Fixe types 2023-08-01 12:52:12 +02:00
Adria Navarro f4675aab6e Fix import 2023-08-01 12:52:12 +02:00
Adria Navarro 44e028b574 Fix test 2023-08-01 12:26:37 +02:00
Adria Navarro 2cc924f9e7 Fix tests 2023-08-01 12:08:40 +02:00
Adria Navarro 76cacfaff0 Clean code 2023-08-01 12:03:43 +02:00
Adria Navarro 624dc5ff26 Merge branch 'develop' into BUDI-7189/split_fields_and_ui 2023-08-01 11:59:18 +02:00
mike12345567 dce38908c9 PR comments (backend). 2023-08-01 10:56:47 +01:00
Andrew Kingston fb510f70e2 Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-08-01 10:52:26 +01:00
Adria Navarro c425194a85 Check schemas on patch 2023-08-01 11:38:36 +02:00
Adria Navarro d440291ebc Throw exception when updating non ui fields 2023-08-01 11:31:58 +02:00
Adria Navarro bce75c91a6 Persist only UI schema overrides 2023-08-01 10:57:03 +02:00
Adria Navarro b528257bbe Change viewrequest to accept schema 2023-08-01 10:45:00 +02:00
mike12345567 fc01ac4f71 Quick fix for application.spec.ts - didn't specify user properly. 2023-07-31 19:04:17 +01:00
Adria Navarro 73ded07484 Fix tests 2023-07-31 17:23:34 +02:00
Adria Navarro 1b2ce184d9 Fix types 2023-07-31 17:22:10 +02:00
Adria Navarro da6136a108 Enrich schema using the new data 2023-07-31 17:15:51 +02:00
Adria Navarro 76e836ca55 Test deleting multiple rows 2023-07-31 16:37:24 +02:00
Adria Navarro 3335c86a84 Delete row from view 2023-07-31 16:14:14 +02:00
Adria Navarro d1ad443d18 Patch 2023-07-31 15:41:13 +02:00
Adria Navarro b43f921253 Test middlewares 2023-07-31 15:26:01 +02:00
Adria Navarro 1d13b49e86 Fix middleware usage 2023-07-31 14:16:38 +02:00
Adria Navarro b3b4a6a177 Test noViewDataMiddleware 2023-07-31 14:14:59 +02:00
Adria Navarro d8df917772 More tests 2023-07-31 14:08:31 +02:00
Adria Navarro 525052ce7e Unhappy path tests 2023-07-31 13:34:57 +02:00
Adria Navarro 70cd44ba2a More tests 2023-07-31 13:24:08 +02:00
Adria Navarro 30c3c6e5ad Test middlewate 2023-07-31 13:17:54 +02:00
Andrew Kingston fdfedfdd92 Fix websocket error 2023-07-31 11:21:11 +01:00
Adria Navarro eaa7d9bf81 trimViewRowInfo middleware and api test 2023-07-31 12:03:03 +02:00
Adria Navarro 5052f2cd68 Fix 2023-07-31 11:22:12 +02:00
Adria Navarro 97f7629345 Renames 2023-07-31 10:50:33 +02:00
Adria Navarro 4c11a6593c Add sdk trim view fields 2023-07-31 10:43:45 +02:00
Adria Navarro 0f540e669c Types 2023-07-31 10:39:12 +02:00
Adria Navarro 7a9a997d73 Use middleware for checks 2023-07-31 10:38:31 +02:00
Adria Navarro 5cfddabac7 Move row view controllers in their own file 2023-07-31 10:21:44 +02:00
Adria Navarro 752e901b3d Don't allow saving _viewId on row.patch 2023-07-31 09:58:49 +02:00
Adria Navarro ed256242c8 Don't allow saving _viewId on row.create 2023-07-31 09:54:20 +02:00
Andrew Kingston 0c72d08763 Merge branch 'develop' of github.com:Budibase/budibase into views-v2-frontend 2023-07-31 08:43:11 +01:00
Andrew Kingston 8204935dfa Add ability to update views, create views with existing filters and sorting applied 2023-07-30 12:49:07 +01:00
mike12345567 8522cb94d3 Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-07-28 17:10:43 +01:00
mike12345567 7b9f86d7ea Fix found by authorized test case. 2023-07-28 17:06:53 +01:00
Adria Navarro b9820f94e6 Import lodash modules 2023-07-28 17:11:48 +02:00
Adria Navarro 1ce9bffe40 Remove duplicated key 2023-07-28 17:11:48 +02:00
Adria Navarro 39ba4a544a Fix mocks 2023-07-28 17:11:48 +02:00
mike12345567 3798caf86d Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-07-28 16:08:38 +01:00
mike12345567 f6eaa610d0 App builders can't create apps anymore, removing this functionality. 2023-07-28 15:54:55 +01:00
mike12345567 72438f531d Update for worker, get builder endpoints working for app builders. 2023-07-28 15:39:59 +01:00
mike12345567 1403bf26c6 Quick fixes based on raising PR, types and tests. 2023-07-28 13:58:20 +01:00
mike12345567 d62b2bdbe0 switching to global builder role for plugin API, dis-allowing per app builders to delete apps and updating UI to reflect these updates. 2023-07-27 18:09:30 +01:00
mike12345567 d8f50f139e Frontend update for app builders, handling when in the builder portal and don't have any app access, as well as allowing viewing of apps from the portal. 2023-07-27 17:52:56 +01:00
Andrew Kingston aef9ff06af Disable component validation for old app imports 2023-07-27 16:09:38 +01:00
mike12345567 ba9a3a6caf Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-07-27 11:13:04 +01:00
mike12345567 c2793ede4c Properly supporting the new global builder permission type to deny access to app creation. 2023-07-26 17:48:35 +01:00
mike12345567 64a5426d36 Updates to remove app builder concept, denying access to app creation for app builders. 2023-07-26 17:32:21 +01:00
Adria Navarro f02dee7806 Merge branch 'develop' into BUDI-7189/type_patching 2023-07-26 16:58:02 +01:00
Adria Navarro 2457bf1b37 Extract external getrow to sdk 2023-07-26 16:03:14 +02:00
mike12345567 62ace8a3ab Merge branch 'master' of github.com:Budibase/budibase into develop 2023-07-26 14:42:05 +01:00
mike12345567 8253ad0a2e Merge branch 'develop' of github.com:Budibase/budibase into feature/BUDI-7052 2023-07-26 14:24:29 +01:00
Adria Navarro 508e30edae Fix sdk refs 2023-07-26 14:54:59 +02:00
Adria Navarro b0af0a287e Remove view tests 2023-07-26 14:53:51 +02:00
Adria Navarro 11f0569446 Move row.validate to the sdk 2023-07-26 14:12:58 +02:00
Adria Navarro af933bd158 More types 2023-07-26 13:55:02 +02:00
Adria Navarro f0f68f10d8 Add tests 2023-07-26 13:55:02 +02:00
Adria Navarro 97dcd3fb0a Add patch view test 2023-07-26 13:55:02 +02:00
Adria Navarro 77c2ce590c Use test api for patch 2023-07-26 13:55:02 +02:00
Adria Navarro f6e6243c81 Type patch 2023-07-26 13:55:02 +02:00
Adria Navarro b69e18ab70 Return _viewId when searching 2023-07-26 13:54:35 +02:00
Adria Navarro 2c6725404f Types 2023-07-26 13:54:35 +02:00
mike12345567 f2abcf581f Fixing issue with falsey composite keys, if one of the values used for a composite key is say an empty string, or a zero it would not be added to the _id field, stopping the field from being retrievable. 2023-07-26 12:31:46 +01:00
Adria Navarro aeeb69d80e Merge pull request #11352 from Budibase/BUDI-7189/return_default_row_data
Return default row data
2023-07-26 11:29:24 +01:00
Adria Navarro 17b394dba9 Increase timeouts 2023-07-26 12:12:32 +02:00
Adria Navarro d07f840559 Increase timeouts 2023-07-25 22:15:45 +02:00
Adria Navarro 1512ecd939 Merge pull request #11349 from Budibase/BUDI-7189/update_view_endpoint
Add endpoint to update views 2.0
2023-07-25 19:04:36 +01:00
Adria Navarro 3ce92e8034 Implement and test external field selector 2023-07-25 19:48:46 +02:00
Adria Navarro 67f502579e Test schema 2023-07-25 19:48:46 +02:00
Adria Navarro 3c28d112b5 Add internal sdk tests 2023-07-25 19:48:46 +02:00
Adria Navarro d93c99b947 Return data when schema is defined 2023-07-25 19:48:46 +02:00
Adria Navarro b2e0384f8a Check ui path vs body 2023-07-25 19:46:46 +02:00
Adria Navarro 783e8a5b08 Change url to include the id 2023-07-25 19:34:52 +02:00
Dean 211bab4cf6 Merge remote-tracking branch 'origin/develop' into feature/delete-multiple-button-action 2023-07-25 16:18:05 +01:00
Andrew Kingston a1fe1150ab Merge pull request #11334 from Budibase/cheeks-fixes
Prevent parentheses in query names
2023-07-25 16:13:03 +01:00
Dean 85d3980bdc PR Feedback 2023-07-25 15:47:25 +01:00
Dean a5b81558b9 Merge remote-tracking branch 'origin/develop' into feature/delete-multiple-button-action 2023-07-25 15:42:01 +01:00
Adria Navarro 9235afb5d9 Test updating v1 2023-07-25 15:49:32 +02:00
Adria Navarro 6e24bf41df More tests 2023-07-25 15:41:04 +02:00
Adria Navarro 97957e96bd Update test 2023-07-25 15:35:48 +02:00
Adria Navarro 2412056292 Update basic test 2023-07-25 15:34:25 +02:00
Adria Navarro 29bc87a47f Update view endpoint 2023-07-25 15:33:49 +02:00
Rory Powell 7236fb8141 Merge pull request #11305 from Budibase/feature/offline-license-master
Cherry-pick: Offline Licensing
2023-07-25 11:38:58 +01:00
Adria Navarro c9dc4006a1 Merge branch 'BUDI-7189-views-v2' into BUDI-7189/return_columns_based_on_schema 2023-07-24 16:47:46 +02:00
Adria Navarro 76d32b40fd Merge pull request #11286 from Budibase/BUDI-7189/create_view_schema_endpoint
Return schema from table endpoint
2023-07-24 15:42:03 +01:00
Adria Navarro 7465c04799 Fix controller 2023-07-24 16:35:22 +02:00
Adria Navarro c870039416 Refactor plus selector 2023-07-24 16:29:49 +02:00
Adria Navarro 5bd149f66f Use sdk to populate views 2023-07-24 16:13:15 +02:00
Adria Navarro 1cf4e6e85a Return full object from search 2023-07-24 16:13:15 +02:00
Adria Navarro 9cf401162b Add views 2023-07-24 16:13:15 +02:00
Adria Navarro d1d86b6803 Filter on the sdk 2023-07-24 16:13:15 +02:00
Adria Navarro 2186b0407a Honor schema on view search 2023-07-24 16:13:15 +02:00
Adria Navarro c58b145afd Test sdks 2023-07-24 16:12:42 +02:00
Adria Navarro d8b801e647 Remove wrong describe 2023-07-24 16:04:54 +02:00
Dean 0d8d96b911 PR Feedback 2023-07-24 15:03:13 +01:00
Adria Navarro 77a004f19a Remove wrong describe 2023-07-24 16:02:59 +02:00
Adria Navarro ff57b982f8 Move enrich view schemas to view sdk 2023-07-24 15:57:17 +02:00
Adria Navarro dceb51a08d Skip table order if defined on view 2023-07-24 15:17:05 +02:00
Adria Navarro 8e904cea13 Set order to the tests 2023-07-24 15:17:05 +02:00
Adria Navarro 0f53fa14ad Undo not required changes 2023-07-24 15:17:05 +02:00
Adria Navarro 559cb3d9e0 Test sdk calls 2023-07-24 15:17:05 +02:00
Adria Navarro 810bb41547 Add sdk tests 2023-07-24 15:17:04 +02:00
Adria Navarro d2020fd6bc Move enrich views to sdk 2023-07-24 15:17:04 +02:00
Adria Navarro 396c4ad439 Use new table schema 2023-07-24 15:17:04 +02:00
Adria Navarro ed02aa4d8b Enrich view schemas 2023-07-24 15:17:04 +02:00
Adria Navarro a65e69e614 Add tests 2023-07-24 15:17:04 +02:00
Adria Navarro 3f2fa1a8dc Remove view endpoint 2023-07-24 15:17:04 +02:00
Adria Navarro 22dd218b1a Fetch schema 2023-07-24 15:17:04 +02:00
Adria Navarro 30138570d5 Typex 2023-07-24 15:17:04 +02:00
Adria Navarro 5fa7972564 Test returning views 2023-07-24 15:17:04 +02:00
Adria Navarro 46cb7c7117 Table tests to ts 2023-07-24 15:17:04 +02:00
Adria Navarro d12d6f5bef Add tests 2023-07-24 15:17:04 +02:00
Adria Navarro c747881d73 Allow selecting certain columns 2023-07-24 15:17:04 +02:00
Adria Navarro f3f0ee0959 Return view schema endpoint 2023-07-24 15:17:04 +02:00
Adria Navarro 7d84deea1a Fix return code 2023-07-24 15:16:31 +02:00
Adria Navarro 1760980aad Allow overriding default sort 2023-07-24 15:16:31 +02:00
Adria Navarro 4e646bb463 Only ui metadata fields 2023-07-24 15:15:44 +02:00
Adria Navarro e068e62eb1 Change view columns for schema 2023-07-24 15:15:44 +02:00
Adria Navarro fbccec64c7 Renames 2023-07-24 15:15:44 +02:00
Adria Navarro 56e6d48ec7 Remove :tableid from view create 2023-07-24 15:15:44 +02:00
Adria Navarro 6d973ce99a Infer table on search 2023-07-24 15:15:44 +02:00
Adria Navarro 36b82681ff Remove tableid from remove view url 2023-07-24 15:15:44 +02:00
Adria Navarro fc831db06b Store ids containing table info 2023-07-24 15:15:44 +02:00
Adria Navarro ff3bbf6217 Allow ViewV2 types 2023-07-24 15:15:44 +02:00
Adria Navarro ac0ae34808 Fix search 2023-07-24 15:15:44 +02:00
Adria Navarro 21e17053c6 Don't persist the view as doc 2023-07-24 15:15:44 +02:00
Adria Navarro d6121d1504 Remove fetch view 2023-07-24 15:15:44 +02:00
Adria Navarro 56ee61d76c Remove get from delete tests 2023-07-24 15:15:44 +02:00
Adria Navarro 76f89e10d3 Create/delete, save to table 2023-07-24 15:15:44 +02:00
Adria Navarro b82876b147 Remove view fetch logic 2023-07-24 15:15:44 +02:00
Adria Navarro 49980dadf1 Fix merge conflicts 2023-07-24 15:15:43 +02:00
Adria Navarro 516b5691e8 DRY 2023-07-24 15:15:43 +02:00
Adria Navarro 582e0eb1dd Use types 2023-07-24 15:15:43 +02:00
Adria Navarro 12891456de Fix test 2023-07-24 15:15:43 +02:00
Adria Navarro 28f4aef07f Persist columns in views 2023-07-24 15:15:43 +02:00
Adria Navarro 82e2385099 Test different sort 2023-07-24 15:15:43 +02:00
Adria Navarro b778921028 Test sorting 2023-07-24 15:15:43 +02:00
Adria Navarro fde008f4d1 Persist sort 2023-07-24 15:15:43 +02:00
Adria Navarro 16d39c6fd2 Honor query on view search 2023-07-24 15:15:43 +02:00
Adria Navarro ebd93eb109 Persist queries on crud views 2023-07-24 15:15:43 +02:00
Adria Navarro 6809bb4510 Use api for view search tests 2023-07-24 15:15:43 +02:00
Adria Navarro 2feb22ef64 Use api for viewv2 tests 2023-07-24 15:15:43 +02:00
Adria Navarro 8478816eef Clean 2023-07-24 15:15:43 +02:00
Adria Navarro fcd0db8f57 Clean code 2023-07-24 15:15:43 +02:00