Commit Graph

3919 Commits

Author SHA1 Message Date
Adria Navarro c1128ffe2a Fix test 2024-10-17 12:20:17 +02:00
Adria Navarro 7bb69d7ffd Add tests 2024-10-17 12:17:01 +02:00
Adria Navarro 8008d2ced1 Fix all references 2024-10-17 11:53:20 +02:00
Adria Navarro 1155be4530 Fix 2024-10-17 11:52:03 +02:00
Adria Navarro 15bb730c59 Remove power role for apps created at >= 3.0.0 2024-10-17 11:37:41 +02:00
Adria Navarro 8cdc5be38e Store proper version even on local 2024-10-17 11:36:02 +02:00
mike12345567 c40e4a7288 fixing rbac 2024-10-16 21:13:35 +01:00
mike12345567 9c92288f7f Fixing some issues with finding roles. 2024-10-16 21:13:19 +01:00
Adria Navarro b6874f52f6 Fix many-to-one 2024-10-16 16:16:39 +02:00
Adria Navarro 3ea8e240e4 Fix one-to-many 2024-10-16 14:05:48 +02:00
Adria Navarro 960fa33559 Merge branch 'fix/multiple-relationships-same-table' into chore/negated-join-filters 2024-10-16 13:34:19 +02:00
Adria Navarro b01564c934 Fix multiple relations to same table for external 2024-10-16 10:21:17 +02:00
mike12345567 9fceef0fc2 Some more fixes and test case for screen access. 2024-10-15 17:53:48 +01:00
Adria Navarro 8a6dbef249 Fix sqs 2024-10-15 18:50:58 +02:00
mike12345567 ca72dffb1f Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-10-15 13:34:39 +01:00
Andrew Kingston 9b009f9728
Merge branch 'master' into v3-ui 2024-10-15 11:58:20 +01:00
Adria Navarro 2f2cfb392d
Merge branch 'master' into chore/negated-join-filters 2024-10-15 12:04:30 +02:00
Adria Navarro 57da952f69 Fix "parenthesis" 2024-10-15 11:34:35 +02:00
Adria Navarro 76d0107d4d Handle empty relationships 2024-10-15 10:10:15 +02:00
mike12345567 a56a228042 Fixes based on test case. 2024-10-14 18:57:54 +01:00
Martin McKeaveney 97a7649930 merging with v3-ui branch 2024-10-14 18:47:13 +01:00
Martin McKeaveney 30215ea9be tests, pr comments 2024-10-14 18:38:34 +01:00
mike12345567 676cb3f92e Handling role numbering. 2024-10-14 18:00:41 +01:00
Sam Rose 867ba12f8a
Merge branch 'update-docker-compose-for-sqs' of github.com:budibase/budibase into update-docker-compose-for-sqs 2024-10-14 17:24:44 +01:00
Sam Rose 58b4a37fca
Enable SQS in code instead of in env vars. 2024-10-14 17:20:36 +01:00
Adria Navarro 7ea2c187a7 Simplify 2024-10-14 16:17:24 +02:00
mike12345567 243391d6cb Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-10-14 12:57:22 +01:00
Adria Navarro cf089eff26 Fix ors 2024-10-14 10:40:08 +02:00
Adria Navarro 2311f8aa50 Don't break or conditions on nested joins 2024-10-14 10:40:08 +02:00
mike12345567 324616be59 Finishing multi-inheritance test case and getting accessibility to be detected correctly. 2024-10-10 18:15:23 +01:00
Sam Rose 964f8222ba
Allow sorting by calculation fields. 2024-10-10 17:10:07 +01:00
mike12345567 f907cccc58 Merge branch 'fix/custom-role-naming' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-10-10 16:28:06 +01:00
Michael Drury 799ad63568
Merge branch 'master' into fix/custom-role-naming 2024-10-10 16:15:14 +01:00
mike12345567 5f4694d4d8 Fix for an issue found with custom role naming. 2024-10-10 16:13:32 +01:00
Sam Rose 4c4429b88a
Fix tests. 2024-10-10 15:49:00 +01:00
mike12345567 3a2b22d446 Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-10-10 11:47:19 +01:00
Adria Navarro 3e0408d3b9 Add new flag 2024-10-10 10:34:35 +02:00
mike12345567 6a25f66f3c Merge branch 'fix/budi-8715-sql-relationships-many-side' of github.com:Budibase/budibase into fix/budi-8715-sql-relationships-many-side 2024-10-09 17:04:46 +01:00
mike12345567 00048a2d3e Addressing PR comments. 2024-10-09 17:04:27 +01:00
Michael Drury 01e458b568
Merge branch 'master' into fix/budi-8715-sql-relationships-many-side 2024-10-09 17:00:48 +01:00
Adria Navarro 85ef2f1d2c Fix build issue 2024-10-09 17:08:45 +02:00
Adria Navarro b3efea95bf Undo base permissions 2024-10-09 17:08:45 +02:00
Adria Navarro 577ab5b6ce Fix tests 2024-10-09 17:08:45 +02:00
Adria Navarro ebd762cdb6 Fixes 2024-10-09 17:08:35 +02:00
Adria Navarro 56459b2736 Type 2024-10-09 16:55:59 +02:00
Sam Rose 9d70b123e5
Remove IP tag. 2024-10-09 15:22:38 +01:00
mike12345567 d62d5b7043 Fixing an issue with removing relationships from the many side of a table in SQL, this was not correctly updating the other table. 2024-10-09 15:09:38 +01:00
Sam Rose 26f2deb234
Set proxy setting on Koa application. 2024-10-09 13:34:43 +01:00
Sam Rose a4090243ec
Fix lint. 2024-10-09 13:17:55 +01:00
Sam Rose adad73a9e2
Fix tests. 2024-10-09 13:10:52 +01:00
Sam Rose 10f3816810
Merge branch 'master' of github.com:budibase/budibase into logged-out-search-fix 2024-10-09 12:57:21 +01:00
Sam Rose eee2991b09
Rejib IP fetching. 2024-10-09 12:57:14 +01:00
Sam Rose 20f55e3795
Still fetch flags when the user is not logged in. 2024-10-09 12:29:17 +01:00
Michael Drury 64492dca2a
Merge branch 'master' into fix/related-rows-dont-exist 2024-10-09 12:18:37 +01:00
Adria Navarro d811b9527f Fix limit issues 2024-10-09 10:44:04 +02:00
Adria Navarro 8b0c84b2ea In memory filters 2024-10-09 10:32:39 +02:00
Martin McKeaveney 7b683cfc50 merge and typing 2024-10-08 17:38:23 +01:00
Sam Rose 2b47789fc8
Merge branch 'master' into feature-flag-helper 2024-10-08 14:42:09 +01:00
melohagan e3c6b60211
Remove unused properties (#14732)
* Remove unused properties

* lint
2024-10-08 12:56:48 +00:00
Sam Rose 635d268eea
Merge branch 'master' of github.com:budibase/budibase into feature-flag-helper 2024-10-08 11:14:11 +01:00
Sam Rose a4a90d7456
Fix tests. 2024-10-08 09:56:51 +01:00
Sam Rose 11804f6ddd
Create a feature flag helper for tests. 2024-10-07 18:18:04 +01:00
Sam Rose 6e4e76e21c
Merge branch 'master' into graceful-sqs-5xx-error-handling 2024-10-07 17:05:07 +01:00
melohagan db25511948
Changes relating to adding accountName to Account entity (#14712)
* Remove unused code

* Typing compromise because Account extends CreateAccount

* Update account-portal

* Update account-portal
2024-10-07 12:26:55 +02:00
Sam Rose 27578db4b7
Fix SQS error handling. 2024-10-07 09:48:33 +01:00
Sam Rose 11dc2766cc
Merge branch 'master' into fix/related-rows-dont-exist 2024-10-04 14:30:45 +01:00
mike12345567 bfbc576ed1 Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-10-03 17:22:09 +01:00
mike12345567 a6f6942288 Fixing an issue with corrupt relationship records referencing rows which don't exist, this is a temporary measure as these relationships should be cleaned up correctly but for now ignore any which reference rows which no longer exist. 2024-10-03 16:10:07 +01:00
Martin McKeaveney c70bd87ac2 merge with master 2024-10-02 16:52:00 +01:00
Sam Rose 50c307df4d
Add more view calculation tests, and implement count distinct. 2024-10-02 16:49:14 +01:00
Sam Rose ee897e4d7e
Fix imports. 2024-10-02 10:05:56 +01:00
Sam Rose 4dd6afd435
Symbolise the special __bb_total count field name. 2024-10-02 09:57:18 +01:00
Sam Rose 7b9af81fd5
Clean up params and isSqs 2024-10-02 09:44:20 +01:00
Sam Rose ddd229062c
Rename total field when doing row counts. 2024-10-02 09:39:54 +01:00
Sam Rose 08f1c4dadc
Update packages/backend-core/src/sql/sql.ts
Co-authored-by: Adria Navarro <adria@budibase.com>
2024-10-02 09:35:15 +01:00
Martin McKeaveney 36996f71d0 merge 2024-10-01 16:39:09 +01:00
Sam Rose 7cee1509aa
Fix sqlAlias.spec.ts 2024-10-01 16:17:11 +01:00
Sam Rose addd54a8e8
Fix generic-sql.spec.ts 2024-10-01 15:39:33 +01:00
Sam Rose ae4f7ae4b4
Implement group by and add a test for it. 2024-10-01 15:04:01 +01:00
Martin McKeaveney 2d21afbe10 rough v1 2024-10-01 12:52:11 +01:00
Sam Rose 987a24fabc
wip 2024-10-01 11:48:14 +01:00
Sam Rose c0cc2a9e3d
Move isSupportedUserSearch from backend-core to shared-core. 2024-09-30 15:16:24 +01:00
Sam Rose 62e1e66ce9
Merge master. 2024-09-30 09:54:36 +01:00
mike12345567 61c28154fb Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-09-27 13:33:27 +01:00
Sam Rose c4c524c6ff
viewV2.spec.ts passsing in full 2024-09-26 15:22:10 +01:00
Adria Navarro b4da4529a3 ENRICHED_RELATIONSHIPS on by default in tests 2024-09-26 15:23:41 +02:00
Adria Navarro 4fe0af81ec Fix test runs 2024-09-26 14:15:08 +02:00
mike12345567 4fb5943b4c Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-09-26 11:14:43 +01:00
Sam Rose b93e6cb986
Merge master. 2024-09-26 10:54:30 +01:00
Adria Navarro 012c7142fc
Merge branch 'master' into BUDI-8565/related-columns 2024-09-25 16:24:06 +02:00
Sam Rose b68a51bd55
Merge master. 2024-09-25 14:59:47 +01:00
Sam Rose 40d1d48ddf
Increase PostHog flag polling interval to 3 minutes. 2024-09-25 14:46:16 +01:00
Adria Navarro e4259b4d61 ENRICHED_RELATIONSHIPS on for dev 2024-09-25 13:08:10 +02:00
Sam Rose f475454bce
Fix search API break. 2024-09-24 18:07:31 +01:00
Sam Rose e3256cb005
Fix row.spec.ts. 2024-09-24 17:46:38 +01:00
Sam Rose 0eb90cfbea
Type checks pass, now to find out how much stuff I've broken. 2024-09-24 16:35:53 +01:00
mike12345567 36587691d2 Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-09-24 16:33:45 +01:00
mike12345567 a5cb1b39dc All docs no error fix. 2024-09-24 15:51:41 +01:00
mike12345567 ad60f8a811 All docs returns no docs if 404. 2024-09-24 15:47:07 +01:00
mike12345567 6d8921978b Quick temporary fix for issue - previously the invalid state was never reset, which can cause apps to go missing completely, updating this so it will fix it self after a short while. 2024-09-24 15:30:39 +01:00
Sam Rose 0fee7dfd4f
Merge branch 'master' of github.com:budibase/budibase into view-calculation-sql 2024-09-24 15:07:08 +01:00
mike12345567 c643c82654 Fix for SQL server. 2024-09-24 13:44:26 +01:00
Sam Rose 51774b3434
Working on plumbing 'source' all the way through our code. 2024-09-24 12:30:45 +01:00
mike12345567 464f973f12 Adding a separation for MariaDB and MySQL, mariaDB is the core of the problem, this solves for it by separating them and allowing us to use the special json_arrayagg for mariaDB, but use a correlated sub-query for MySQL. 2024-09-24 12:01:47 +01:00
Michael Drury 617b7df07e
Merge branch 'master' into fix/mysql-correlated-queries 2024-09-23 18:41:43 +01:00
mike12345567 676058bbbd Updates to limit the response of JSON_ARRAYAGG in mysql/mariaDB - rather than using a limited sub-query which is dis-allowed in MySQL/MariaDB due to the nature of the correlated sub-query. 2024-09-23 17:16:34 +01:00
Sam Rose 6cf7c55fd9
Merge master. 2024-09-23 14:14:23 +01:00
mike12345567 b0252469ed Removing wrap for MySQL. 2024-09-23 12:33:25 +01:00
mike12345567 efdfbe7229 Fixing an issue that was stopping the limit from being applied to MySQL, it needs to wrap the query the same as all other DBs, however it needs to apply the where statement in a slightly different manner. 2024-09-20 17:58:31 +01:00
Martin McKeaveney 95a08514b4 merge 2024-09-20 17:39:19 +01:00
Sam Rose b8a3210286
Merge master. 2024-09-20 15:41:57 +01:00
Sam Rose 9588192a52
Merge master. 2024-09-20 11:46:58 +01:00
mike12345567 38e54e91f7 Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-09-20 10:32:47 +01:00
Sam Rose 4b86c49af2
Merge branch 'master' into remove-view-readonly-column-licensing-master 2024-09-19 11:57:10 +01:00
Sam Rose 74effbb55b
Fix tests. 2024-09-19 11:41:10 +01:00
Martin McKeaveney dadce14a71
Merge branch 'master' into budi-8608-ai-platform-level-config-pt-2 2024-09-19 10:48:01 +01:00
Martin McKeaveney e0fb44f63f lint 2024-09-19 10:21:49 +01:00
Sam Rose 6d7cffa43e
Make flag name more accurate. 2024-09-19 10:15:18 +01:00
Sam Rose be5a4f5d97
Require a flag to be set to query PostHog for feature flags. 2024-09-19 10:11:24 +01:00
Martin McKeaveney 69b2bf9bdb lint 2024-09-18 14:21:10 +01:00
Andrew Kingston fd3c8c4a11
Make view readonly columns available for free 2024-09-17 16:34:00 +01:00
Martin McKeaveney 224be10b6c support for overriding models 2024-09-17 16:08:59 +01:00
mike12345567 63c0d9afb8 Sorting the field list to make sure we have the important fields at the top (if known). 2024-09-16 18:27:53 +01:00
mike12345567 68a710699d Getting external DBs to correctly handle when too many fields. 2024-09-16 18:09:01 +01:00
mike12345567 9d6fc54a99 Adding function parameter limit control for different SQL DBs, every DB has different limits with Postgres being the lowest at 100. We need to fix for wide tables which are related. 2024-09-16 16:12:07 +01:00
mike12345567 2fd73d044f Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance 2024-09-16 15:31:00 +01:00
Martin McKeaveney 7fc0f38296 Merge branch 'master' of github.com:Budibase/budibase into budi-8608-ai-platform-level-config-pt-2 2024-09-16 11:54:12 +01:00
Martin McKeaveney c85bc88bf9 draft of openai impl 2024-09-16 11:54:04 +01:00
Andrew Kingston 663c0f20af
Don't use display names as role names, and restore usual names for built in roles 2024-09-13 14:14:36 +01:00
mike12345567 ef3f726346 Fixing test cases. 2024-09-12 16:23:00 +01:00
mike12345567 4952747ae9 Taking working from new-rbac-ui branch and separating it into its own PR, so that other work can be based on this from master. 2024-09-12 15:40:37 +01:00
Michael Drury cdcefc397c
Merge branch 'master' into fix/role-permission-update 2024-09-12 13:30:05 +01:00
melohagan 49a4e252c6
Allow an account holder to login to account-portal if the tenant has been deleted. (#14547)
* Add email to session for populate user

* Add email param

* use param object

* Type fix for tests

* Fix test

* Temporarily remove account-portal tests
2024-09-12 08:38:11 +00:00
mike12345567 e89042b2e3 Fixing some role typing issues, as well as fixing an issue with the validator not allowing the structure that roles are expected to have. 2024-09-11 18:06:05 +01:00
Michael Drury 9feebdbb13
Merge branch 'master' into fix/sql-use-ctes 2024-09-11 15:04:48 +01:00
melohagan 8b8595293b
Export publishEvent (#14560) 2024-09-11 14:02:42 +00:00
mike12345567 c9b64e3591 SQLite uses CTE with SQS 2.1.1. 2024-09-11 13:41:54 +01:00
mike12345567 05de673781 Merge branch 'master' of github.com:Budibase/budibase into aggregate-all-sql-dbs 2024-09-11 13:25:25 +01:00
Martin McKeaveney 9179569cd7
Merge branch 'master' into budi-8608-ai-platform-level-config 2024-09-11 10:43:41 +01:00
mike12345567 f63c95e44c Adding SQL_MAX_RELATED_ROWS environment variable, defaults to 500, allows for 500 rows per relationship. 2024-09-10 13:59:21 +01:00
Martin McKeaveney 0cf626be91 Merge 2024-09-10 11:00:33 +01:00
Martin McKeaveney 96fbc8fff0 feature flag support 2024-09-09 18:07:47 +01:00
Martin McKeaveney b4a4f81308 linting 2024-09-09 16:52:56 +01:00
Michael Drury e2c6893aa3
Merge branch 'master' into fix/sql-many-relationships 2024-09-09 16:07:16 +01:00
Martin McKeaveney 57698170a8 lint 2024-09-09 13:55:26 +01:00
mike12345567 157e75b9a6 Using a CTE for the main query, then adding the JSON aggregation on afterwards - fixing issue with offset pagination applying the JSON aggregation to all rows before hand. 2024-09-06 19:34:02 +01:00
mike12345567 76273ff860 PR comments. 2024-09-06 16:47:43 +01:00
mike12345567 09824f9a4d Merge branch 'master' of github.com:Budibase/budibase into aggregate-all-sql-dbs 2024-09-06 16:27:37 +01:00
Martin McKeaveney b949940653 remove comments 2024-09-06 15:44:23 +01:00
Martin McKeaveney cdb0e2509c testing configuration, unit tests for AI config 2024-09-06 14:53:26 +01:00