1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
Commit graph

934 commits

Author SHA1 Message Date
Adria Navarro
4a8f15995c Type sdk couchdb fields 2024-07-22 14:23:17 +02:00
Adria Navarro
2970bfc48a Fix update and tests 2024-07-22 14:23:16 +02:00
Adria Navarro
faf1d678fa Create automation 2024-07-22 14:23:16 +02:00
Sam Rose
df765c1dc7
Merge branch 'master' of github.com:budibase/budibase into support-spaces-as-last-char-in-column-sqs 2024-07-18 11:12:25 +01:00
Sam Rose
0b2a5162a4
Fix the problem, and the tests. 2024-07-18 11:00:10 +01:00
Adria Navarro
f57d8a6147 Fix jest circular references 2024-07-17 17:46:48 +02:00
Adria Navarro
166d8fac5e Use relative paths 2024-07-17 13:43:25 +02:00
Adria Navarro
53d6219b79 Extract find and fetch 2024-07-17 13:32:45 +02:00
Adria Navarro
dc47037dbb Move update and remove 2024-07-17 13:26:40 +02:00
Adria Navarro
373aeac00f Move automation creation to sdk 2024-07-17 13:10:19 +02:00
Adria Navarro
371a3ad8ec Ensure unique on updates 2024-07-17 12:26:36 +02:00
Adria Navarro
8297a58270 Ensure unique names 2024-07-17 12:18:09 +02:00
Adria Navarro
c51d2cd431 Trims names 2024-07-17 12:16:14 +02:00
Adria Navarro
9a7470a943
Merge branch 'master' into BUDI-8428/row-action-crud 2024-07-17 11:08:23 +02:00
mike12345567
745a05fe8d Updating how the 'merging' is handled, don't include the in-memory representation if it exists on disk in Couch, prefer that. 2024-07-12 13:54:55 +01:00
mike12345567
79c292538c There is a risk with default tables that the schema may exist in the DB as well as existing in memory - in this case we should merge the schemas to make sure that all possible attributes from the in memory representation, and the on disk version (which may have been updated by the user) have been captured in the SQLite schema. 2024-07-12 13:51:06 +01:00
Adria Navarro
99b4aae7de
Merge branch 'master' into BUDI-8428/row-action-crud 2024-07-12 11:53:12 +02:00
mike12345567
9129e47dd9 PR comment 2. 2024-07-11 17:09:41 +01:00
mike12345567
5b1850d28f PR comments. 2024-07-11 16:41:12 +01:00
mike12345567
1e189450c0 Switching to regex. 2024-07-11 16:38:30 +01:00
mike12345567
6db0379504 Resync if it is found that a table or column is missing, this was previously done for specific cases but have expanded to cover all, but only retry once (not get into an infinite loop). 2024-07-11 16:35:57 +01:00
Adria Navarro
2035713b9c Implement delete 2024-07-11 17:33:40 +02:00
Adria Navarro
ba2d6fd73b Renames 2024-07-11 17:16:14 +02:00
Adria Navarro
d03a0ebb68 Implement update 2024-07-11 17:08:57 +02:00
Adria Navarro
17fc605e4f Persist as object instead of array 2024-07-11 16:57:32 +02:00
Adria Navarro
3bcbb57baa Add id to each individual action 2024-07-11 15:32:25 +02:00
Adria Navarro
9fb9c08aab Merge duplicated code 2024-07-11 14:36:51 +02:00
Adria Navarro
2d8361d6fd Always return when table exists 2024-07-11 11:06:36 +02:00
Adria Navarro
7dbfcc398e Implement create 2024-07-11 10:04:25 +02:00
Michael Drury
55f6610f0d
Merge branch 'master' into fix/correcting-multi-relationships 2024-07-10 12:01:06 +01:00
Sam Rose
551d413900
Merge branch 'master' into sqs-per-tenant 2024-07-10 11:39:31 +01:00
Sam Rose
5069d3f953
Rename db to dbCore in more places. 2024-07-10 11:37:37 +01:00
mike12345567
4ab3aef020 PR comments. 2024-07-10 11:05:06 +01:00
Sam Rose
b48ea718d3
Merge branch 'master' of github.com:budibase/budibase into budi-8445-is-in-filter-broken 2024-07-10 09:14:34 +01:00
Sam Rose
2fa14ab35f
Merge branch 'master' into sqs-per-tenant 2024-07-09 17:30:33 +01:00
mike12345567
4cb23759a3 Removing tables and their related table definitions. 2024-07-09 16:33:10 +01:00
mike12345567
6e699a163d Cleaning up how junction fields are added to query. 2024-07-09 16:32:35 +01:00
mike12345567
396de67aea Merge branch 'master' of github.com:Budibase/budibase into fix/correcting-multi-relationships 2024-07-09 15:46:15 +01:00
Sam Rose
102bd28980
Fix lint. 2024-07-09 11:52:20 +01:00
Sam Rose
4c6f7f25c2
Fix bug in oneOf search. 2024-07-09 11:45:01 +01:00
Adria Navarro
5cba1058d4
Merge branch 'master' into budi-7065-csv-export-fails-for-table-with-composite-primary-key 2024-07-09 10:54:18 +02:00
Adria Navarro
5be8882122 Handle composite keys on exports 2024-07-09 10:43:45 +02:00
mike12345567
c0b85c6379 Initial implementation - needs testing. 2024-07-08 18:42:11 +01:00
Sam Rose
b5f0619c89
Fix attachments test. 2024-07-08 17:43:05 +01:00
Sam Rose
69d54b523d
Finish implementation, fix tests. 2024-07-08 14:21:07 +01:00
Sam Rose
1851e11bc0
wip 2024-07-08 13:28:48 +01:00
Michael Drury
e8ceed08a5
Merge branch 'master' into fix/default-table-sqs-indexing 2024-07-05 16:32:14 +01:00
mike12345567
34d073bcb7 Adding default tables to sync. 2024-07-05 16:03:38 +01:00
mike12345567
c48f5c6d80 Fixing build issue. 2024-07-05 15:45:00 +01:00
mike12345567
e4375c2196 Fixing a build issue uncovered by tests. 2024-07-05 15:27:54 +01:00
Sam Rose
b318850c7e
Support non-ascii column in SQS. 2024-07-04 11:37:18 +01:00
Adria Navarro
07d538f6fc Don't trim fields on view enrich schema 2024-07-02 14:02:49 +02:00
mike12345567
5ac9fe43fc PR comments. 2024-07-01 17:50:34 +01:00
mike12345567
c4ffd37caa Adding fix for backwards compat, removing columns (but still filtering on) returns no rows, rather than an error. 2024-07-01 16:37:38 +01:00
Michael Drury
f3d8afcc5b
Merge branch 'master' into fix/sqs-internal-columns 2024-07-01 14:07:27 +01:00
Sam Rose
6eb37df92d
Respond to PR feedback. 2024-07-01 11:41:21 +01:00
mike12345567
13ac273c83 Updating how search filters are converted, needs full column metadata to work it out this way. 2024-06-28 14:59:00 +01:00
mike12345567
510baf4f6e Adding test case and updating how prefix updates in filters work. 2024-06-28 14:19:11 +01:00
mike12345567
2d31e327e7 Resolving PR comments. 2024-06-28 13:49:52 +01:00
mike12345567
048d15956b Updating environments which need to re-sync definitions. 2024-06-28 12:47:57 +01:00
Michael Drury
c1f7561839
Merge branch 'master' into fix/sqs-internal-columns 2024-06-27 18:19:03 +01:00
mike12345567
3394e974d3 Getting casting working again, have to pass down prefix for checking against fields. 2024-06-27 18:18:41 +01:00
mike12345567
b0e6d3e72c Correctly handling overlapping column names. 2024-06-27 17:55:09 +01:00
mike12345567
1b9211ee6c Initial implementation of solving SQS issue with case insensitivity. 2024-06-26 16:40:20 +01:00
Michael Drury
cfeab17ed8
Revert "Revert "Disallow prohibited columns"" 2024-06-26 12:40:16 +01:00
Sam Rose
314d62bea0
Revert "Disallow prohibited columns" 2024-06-25 14:29:56 +01:00
mike12345567
1402716f5c Some type updates. 2024-06-24 13:10:30 +01:00
mike12345567
965725d022 First PR comments. 2024-06-24 12:43:26 +01:00
mike12345567
337584f5b2 Updating the regex to correctly find within the filter keys. 2024-06-21 17:51:02 +01:00
mike12345567
28d0d627ce Getting functions in place which make it easy to update pats of a filter list by their keys - getting this to work for SQS and external. 2024-06-21 17:00:12 +01:00
mike12345567
b4910043c6 Addressing PR comments. 2024-06-21 11:27:47 +01:00
mike12345567
def3b0260e Disallowing prohibited columns consistently, no matter the case, and backend validation for this as well. 2024-06-20 18:48:22 +01:00
mike12345567
df56371ab6 Reverting change to promises. 2024-06-20 16:36:18 +01:00
mike12345567
295961edb1 Attempting without promise.all in external. 2024-06-20 16:18:32 +01:00
mike12345567
86d9de5a2d Fixing view test cases, adding SQS to it and correcting the default sort order. 2024-06-19 18:57:37 +01:00
mike12345567
67c00c9e4c Addressing PR comments. 2024-06-19 18:46:48 +01:00
mike12345567
aab100b130 Changing how counting is processed. 2024-06-19 14:28:22 +01:00
mike12345567
bc80841554 Promise.all for both counts (SQS and SQL). 2024-06-19 13:39:00 +01:00
mike12345567
0e5de7f16d Test updates. 2024-06-19 13:36:34 +01:00
mike12345567
abfab054d7 Addressing comment about datasource being optional. 2024-06-19 12:03:20 +01:00
mike12345567
0de94d3535 Addressing some PR comments. 2024-06-19 11:52:50 +01:00
mike12345567
e0d8a66fd8 Adding test cases for counting as well as some small fixes. 2024-06-18 18:44:17 +01:00
mike12345567
0caff1a404 Fixing an issue with sorting in SQS. 2024-06-18 13:53:51 +01:00
mike12345567
bda83205ee Making sure to measure whether we have paged forward in the query based on raw results. 2024-06-18 12:48:36 +01:00
mike12345567
f3ca1d0b1e Adding countRows parameter to external API for counting. 2024-06-14 19:01:20 +01:00
mike12345567
1b36d8af51 Getting counting flow working correctly for external datasources. 2024-06-14 19:00:59 +01:00
mike12345567
908b77fd9b Fixing some issues with using offsets. 2024-06-14 18:27:23 +01:00
mike12345567
e402f9c571 Merge branch 'uncomment-search-test-todos' of github.com:Budibase/budibase into feature/count-rows-to-return 2024-06-14 18:16:47 +01:00
mike12345567
77556820bf Bit more work towards row counting, as well as moving external SQL to use row + 1 for working out pagination. 2024-06-14 18:12:36 +01:00
Sam Rose
a54048e308
Solve all remaining TODOs in search.spec.ts. 2024-06-14 14:57:31 +01:00
mike12345567
7491021ca0 Base implementation of counting (plumbing). 2024-06-14 14:35:14 +01:00
Sam Rose
f3c82cbf38
Ensure that sort order is always lowercased. 2024-06-14 11:00:34 +01:00
Sam Rose
c27e9c266c
Replace SortDirection with SortOrder, SortDirection is being removed. 2024-06-14 09:45:30 +01:00
mike12345567
70aa43680d Addressing PR comments. 2024-06-06 16:49:03 +01:00
mike12345567
244fbe42b1 Updating migration to check if the SQL definitions have changed, if they haven't don't write them again. 2024-06-06 16:04:23 +01:00
mike12345567
f0f8c14216 Fixing an issue introduced here which caused template test to fail. 2024-06-06 14:58:03 +01:00
mike12345567
4f6076d2ba Merge branch 'master' of github.com:Budibase/budibase into BUDI-7656/add-migration 2024-06-05 16:29:45 +01:00
mike12345567
cf6f86cb2f Updating migrations to correctly cover all the required elements. 2024-06-04 17:24:11 +01:00
Adria Navarro
7aa6af6e13 Add tests to support existing configs 2024-06-04 16:40:09 +02:00
Adria Navarro
b0af50e674 Copy fix 2024-06-04 16:17:41 +02:00
Adria Navarro
e6e67af2c4 Guard display name column 2024-06-04 12:32:33 +02:00
Adria Navarro
ba9b5c3271 Merge branch 'feat/readonly-columns' into BUDI-8282/dont-treat-display-column-as-required 2024-06-04 12:09:20 +02:00
Adria Navarro
1c8feaedb1 Copy change 2024-06-04 12:03:42 +02:00
Adria Navarro
44708a27ff Merge branch 'BUDI-8282/validate-configuration' into BUDI-8282/validate-configuration-for-hidden-views 2024-06-04 11:37:54 +02:00
Adria Navarro
9b82116c61 Copy changes 2024-06-04 10:39:56 +02:00
Adria Navarro
b937d95de2 Move isRequired to shared-core 2024-06-03 16:55:02 +02:00
Adria Navarro
c1b760ca9e Validate that required fields can't be hidden in views 2024-06-03 12:43:51 +02:00
Adria Navarro
91c20213dc Validate readonly 2024-06-03 12:12:04 +02:00
Adria Navarro
326a90a41e Allow modifying views with readonly configs (other fields) 2024-06-03 12:12:04 +02:00
Adria Navarro
5912c2b129 Copy change 2024-06-03 12:12:03 +02:00
Adria Navarro
6ce0b3c368 Copy change 2024-05-30 11:46:57 +02:00
Michael Drury
35893e0bee
Merge branch 'master' into fix/template-app-rows 2024-05-29 15:27:31 +01:00
Michael Drury
aa232db669
Merge branch 'master' into fix/template-app-rows 2024-05-29 15:06:09 +01:00
Adria Navarro
4b0e433c45 Prevent write readonly column 2024-05-29 15:52:22 +02:00
Adria Navarro
2d5ecb6e3e PR comments 2024-05-29 15:50:10 +02:00
Adria Navarro
f5f471a4aa Merge branch 'master' into BUDI-8284/readonly-settings-columns-in-views 2024-05-29 15:41:20 +02:00
mike12345567
394fa2536c Build fix. 2024-05-29 11:02:27 +01:00
mike12345567
cb99007a42 Fix for issue with templated apps - some template apps are *very* old and therefore don't necessarily abide by the rules that are generally followed for new apps, this is something we should resolve, but for now adding an option that allows searching for only a specific document type. 2024-05-28 18:30:06 +01:00
Adria Navarro
1eb929736c Guard 2024-05-27 14:31:26 +02:00
Adria Navarro
041f85886c Ensure consistency 2024-05-27 14:16:03 +02:00
Adria Navarro
65d2aa50c6 Guard readonly fields 2024-05-27 13:39:43 +02:00
mike12345567
944be41670 Only set table sql prop if it is needed, undefined for consistency as it is with Lucene. 2024-05-24 17:25:49 +01:00
mike12345567
c4c696baa7 Setting internal tables to count as SQL when using SQS. 2024-05-24 15:57:47 +01:00
Adria Navarro
28137f9500 Validate view schema on upsert 2024-05-24 16:07:07 +02:00
mike12345567
b18ca2670a Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-24 12:22:20 +01:00
Michael Drury
a3d2871330
Merge branch 'master' into feature/audit-log-sqs 2024-05-23 16:52:50 +01:00
Sam Rose
c8e7b6d777
Merge branch 'master' of github.com:budibase/budibase into sqs-user-tests 2024-05-23 15:17:06 +01:00
mike12345567
0c28d05d40 Some work to correctly handle JSON columns from SQS as well. 2024-05-23 14:57:38 +01:00
mike12345567
90d646facb Updating pagination method. 2024-05-23 14:37:41 +01:00
Adria Navarro
cf43530e1c
Merge branch 'master' into BUDI-8279/time-constrains 2024-05-23 15:33:50 +02:00
Adria Navarro
43acea931a Ensure iso time config still work 2024-05-23 15:23:02 +02:00
Adria Navarro
b8400294d5 Add extra tests 2024-05-23 14:59:51 +02:00
Adria Navarro
d1ef9067dc Allow range crossing midnight 2024-05-23 14:59:51 +02:00
Adria Navarro
5b80e4fb6e Add more tests 2024-05-23 14:59:51 +02:00
Adria Navarro
d58c144dce Add extra tests 2024-05-23 14:59:51 +02:00
Adria Navarro
fb06254964 Extra tests 2024-05-23 14:59:51 +02:00
Adria Navarro
bed18615b5 Add basic tests 2024-05-23 14:59:51 +02:00
Adria Navarro
402426a5f3 Validate time only field constrains 2024-05-23 14:59:51 +02:00
Adria Navarro
c7a4179c40
Merge branch 'master' into BUDI-8279/prevent-changing-date-or-time-only-when-fetched 2024-05-23 13:00:27 +02:00
Michael Drury
d8870f1852
Merge branch 'master' into feature/audit-log-sqs 2024-05-23 10:44:39 +01:00
Adria Navarro
f6146c4974 Validate time only fields 2024-05-23 11:39:45 +02:00
Adria Navarro
028afd9cca Fix checks 2024-05-23 11:34:58 +02:00
Adria Navarro
b3bea1e839 Block timeOnly changes in the api 2024-05-23 10:40:33 +02:00
Sam Rose
f8fb08c72c
Merge master. 2024-05-22 17:24:29 +01:00
Sam Rose
e53dddfdf0
Merge branch 'master' into delete-sql-spec-ts-2 2024-05-22 10:35:16 +01:00
mike12345567
a5c5e2ffcd Fixing issue discovered by test with 1: syntax being required for relationship based filters. 2024-05-21 18:39:46 +01:00
mike12345567
b533a1df8c Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-21 18:17:47 +01:00
Sam Rose
99debcbc34
Merge branch 'master' into optimise-aliasing 2024-05-21 15:53:28 +01:00
Sam Rose
7bbb920aa7
Optimise the reverse method in sqlAlias.ts. 2024-05-21 15:49:48 +01:00
mike12345567
082092b392 Handling pagination for SQS API. 2024-05-21 12:39:36 +01:00
Sam Rose
6bd984ab9c
Making progress towards deleting sql.spec.ts. 2024-05-21 11:51:42 +01:00
mike12345567
93e4824549 Fixing some error scenarios 2024-05-20 15:25:55 +01:00
Sam Rose
402afa1df6
Merge master. 2024-05-20 14:19:55 +01:00
mike12345567
a2200a38fb Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-20 14:09:57 +01:00
Sam Rose
941bd7a657
Merge master. 2024-05-20 12:00:39 +01:00
Sam Rose
902613d600
Working towards user relationship tests passing. 2024-05-20 12:00:08 +01:00
deanhannigan
f20ed14e61
Merge branch 'master' into feature/signature-field-and-component 2024-05-20 10:30:55 +01:00
mike12345567
d1b6a542fa Getting audit log searching with sqs working - a bit more work than expected but fixed quite a few SQS bugs along the way. 2024-05-17 20:26:34 +01:00
mike12345567
c1ce6be9b9 Disallowing arrays for single types (attachment and user). 2024-05-17 17:17:57 +01:00
Dean
37dd75823f PR feedback, signature to signature single 2024-05-17 17:04:15 +01:00
mike12345567
d7f3109a22 Making sqlite design doc generation more accessible. 2024-05-17 12:35:31 +01:00
deanhannigan
1bfcdb36c2
Merge branch 'master' into feature/signature-field-and-component 2024-05-17 12:15:34 +01:00
mike12345567
0efa1f06ab Moving some stuff around to make way for other services using the sql layers. 2024-05-16 17:33:47 +01:00
mike12345567
06d6d84b55 Addressing PR comments. 2024-05-16 13:27:54 +01:00
Dean
166206f185 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-15 16:35:31 +01:00
Michael Drury
1c22c7d2d1
Merge branch 'master' into feature/sqs-table-cleanup 2024-05-15 12:34:12 +01:00
mike12345567
6b8d52def1 Linting and build issues. 2024-05-15 12:00:15 +01:00
Adria Navarro
8e0fb2f74b Lint 2024-05-15 11:30:18 +02:00
Adria Navarro
062df0ff8b Cleanup 2024-05-15 11:01:36 +02:00
Adria Navarro
6c1b3a0d2d Fix tests 2024-05-14 18:08:41 +02:00
mike12345567
aa51db20ee Changing how cleanup works - the cleanup is now part of the DB deletion, making sure it cannot be missed. 2024-05-14 15:41:48 +01:00
Dean
b0a65b4699 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-13 16:22:19 +01:00
Dean
0589a6a730 Refactored signature from previous array implementation to the new single approach. Added support for automations 2024-05-13 16:19:02 +01:00
mike12345567
f25703b88e Merge branch 'master' of github.com:Budibase/budibase into feature/sqs-table-cleanup 2024-05-13 13:54:00 +01:00
Adria Navarro
01b9d6069c Fix build 2024-05-13 12:35:01 +02:00
Adria Navarro
91332ce411 Lint 2024-05-13 12:35:01 +02:00
Adria Navarro
fdea7221e4 Fix filter operations 2024-05-13 12:35:01 +02:00
Adria Navarro
5c8a789047 Fix query 2024-05-13 12:35:01 +02:00
mike12345567
a3d079f847 Fixing an issue with cleanup, making sure the correct app is cleaned up on deletion. 2024-05-09 18:33:29 +01:00
mike12345567
fd7f6455bd Merge branch 'master' of github.com:Budibase/budibase into feature/sqs-table-cleanup 2024-05-09 17:38:24 +01:00
Adria Navarro
d83e5e21f2
Merge branch 'master' into feat/budi-8123-single-user 2024-05-09 18:05:16 +02:00
deanhannigan
bf88090c89
Merge branch 'master' into feature/signature-field-and-component 2024-05-09 16:39:54 +01:00
Sam Rose
bfc63bd4e2
Remove the last internal.spec.ts file. 2024-05-09 16:26:08 +01:00
deanhannigan
b5bf914cd7
Merge branch 'master' into feature/signature-field-and-component 2024-05-09 14:47:14 +01:00
deanhannigan
32cce5f5c6
Merge branch 'master' into feature/filter-bindings 2024-05-09 14:24:29 +01:00
mike12345567
04083adaac Adding ID column special case and fixing build issue. 2024-05-09 13:05:58 +01:00
Michael Drury
6b84abda48
Merge branch 'master' into fix/disable-external-auto-columns 2024-05-09 12:57:02 +01:00
mike12345567
0a96bb9684 Disabling auto-column fieldtype and subtypes. This is not something that is currently supported through the UI, so this is not a breaking change, just making sure these type of scenarios don't actually occur as they don't work particularly well. 2024-05-09 12:44:30 +01:00
Sam Rose
69c8264388
Remove src/sdk/app/rows/tests/internal.spec.ts. 2024-05-09 11:57:17 +01:00
Dean
4c6629d15f Merge remote-tracking branch 'origin/master' into feature/filter-bindings 2024-05-09 11:05:58 +01:00
Dean
3712e290b0 Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-09 09:19:00 +01:00
mike12345567
21ce586d93 Merge branch 'master' of github.com:Budibase/budibase into feature/sqs-table-cleanup 2024-05-08 17:04:34 +01:00
Dean
a29301a2fc Merge remote-tracking branch 'origin/master' into feature/signature-field-and-component 2024-05-08 09:43:30 +01:00
deanhannigan
46995a115a
Merge branch 'master' into feature/filter-bindings 2024-05-08 09:37:14 +01:00
mike12345567
a2d4f8523c Some typing improvements, as well as getting deletion/setup working a bit better. 2024-05-07 18:27:47 +01:00
Sam Rose
39f8727830
Move boolean coversion down a layer in the stack so it's not tied so directly to search. 2024-05-07 17:41:43 +01:00
mike12345567
654905ea90 Merge branch 'master' of github.com:Budibase/budibase into feature/sqs-table-cleanup 2024-05-07 12:44:02 +01:00
Sam Rose
ae281c3e7a
Merge branch 'master' of github.com:budibase/budibase into search-tests-boolean 2024-05-07 10:01:28 +01:00
Dean
39233c66f8 Remove leftover from config refactor 2024-05-07 09:46:04 +01:00
Adria Navarro
9a6e6ed115 Fix data between old and new 2024-05-06 08:06:43 +02:00