Commit Graph

149 Commits

Author SHA1 Message Date
Sam Rose aa2bf74a7d
Convert openapi2.spec.js 2025-01-16 10:29:48 +00:00
Sam Rose 5709c3b836
Convert curl.spec.js 2025-01-16 10:01:51 +00:00
Adria Navarro 8c0e7a12d6 Remove anys 2025-01-08 12:24:19 +01:00
mike12345567 77b9baa095 Updating types to remove any instances of ctx.status = 200 being set and then no body provided. 2024-12-13 16:48:47 +00:00
Sam Rose 6865052ef0
Get us much closer to using the recommended set of lints. 2024-12-09 11:21:23 +00:00
mike12345567 23d9808cb6 Query API typing. 2024-12-03 17:29:41 +00:00
Martin McKeaveney 803247f87b lint 2024-11-20 12:15:23 +00:00
Martin McKeaveney d0ad87d504 revert curlconverter 2024-11-20 11:40:53 +00:00
Martin McKeaveney 79c515e57d types 2024-11-19 19:02:22 +00:00
Adria Navarro 4445ef89a9 Merge branch 'master' into security-updates 2024-11-19 18:49:47 +01:00
Martin McKeaveney c563bb64b5 remove snowflake-promise lib, update curlconverter to use dynamic import 2024-11-19 14:54:06 +00:00
Sam Rose 62297fbbfc
Fix mongo query tests. 2024-11-19 11:45:25 +00:00
Peter Clement f3d466f255
fix issue where schema wasn't updating types when a query was run (#14004)
* fix issue where schema wasn't updating types when a query was run

* add tests for schema matching
2024-06-25 08:51:35 +01:00
Sam Rose d0a5ae6ae3
Respond to Mike's feedback. 2024-04-04 15:27:50 +01:00
Sam Rose afa757f21a
Remove catch-all error handler in preview endpoint to help debug tests. 2024-04-03 16:24:19 +01:00
Sam Rose 869ed4256e
Merge master. 2024-03-25 14:13:48 +00:00
mike12345567 cc8a0274a4 Updating based on PR comments. 2024-03-22 15:26:02 +00:00
Sam Rose 08fecca9f2
Delete query.seq.spec.ts 2024-03-22 12:00:26 +00:00
mike12345567 f4f7ac42ec Adding test cases for interpolation of SQL, confirming that the context correctly gets cleaned up before passing into bindings. 2024-03-22 11:40:44 +00:00
mike12345567 c32163a9be Initial fix for defaulting parameters, switch to null rather than strings, this is important for prepared statements/SQL queries. 2024-03-21 18:26:35 +00:00
Sam Rose f1278312ab
Reenable no-case-declarations. 2024-03-19 15:58:25 +00:00
mike12345567 55b9b00771 PR comments. 2024-03-19 14:50:38 +00:00
mike12345567 68bc7bbdf5 Fixing issue, dis-allow passing HBS statements in as query parameters. 2024-03-19 12:52:06 +00:00
Sam Rose 1857383c47
Constrain query execution response slightly based on PR feedback. 2024-03-04 13:37:41 +00:00
Sam Rose 16e9c5ff4e
Migrate QueryAPI 2024-03-01 14:33:18 +00:00
Sam Rose a9392b2176
More types. 2024-02-28 12:13:13 +00:00
melohagan 896b879ce7
Feature/query array schema (#13118)
* Revert "Revert "Add nestedSchemaFields to RestQueryViewer (#13102)""

This reverts commit 6545af12fa.

* Revert "Revert "Dynamic schema generation for query arrays: bug fix and refactor (#13…""

This reverts commit ae4bc362c3.
2024-02-22 17:06:08 +00:00
Martin McKeaveney ae4bc362c3
Revert "Dynamic schema generation for query arrays: bug fix and refactor (#13…"
This reverts commit 0c9d13c79a.
2024-02-21 21:30:22 +00:00
melohagan 0c9d13c79a
Dynamic schema generation for query arrays: bug fix and refactor (#13082)
* Bug fix and refactor

* lint

* Refactor

* refactor

* lint

* type fixes

* Unit test fix and refactor

* refactor

* Make name option for preview, required for query

* Refactor unit tests

* Fix test

* update account-portal

* Revert "update account-portal"

This reverts commit e378f8d702.

* simplify set iteration

* comment
2024-02-21 15:33:13 +00:00
melohagan c12e5fd196
Fix array type missing from query schema selector (#12772)
* Tidy MongoDB aggregation pipeline view

* Remove unused code

* WIP

* Add bindings for bindings drawer

* Is not external table if it's a query

* Add QueryArrayFetch

* Bug fix

* JavaScript is the worst

* refactor

* Add array label to query schema

* Remove console log

* type fix

* Don't include Array in SchemaTypeOptions, but show label

* Fix bindings

* refactor

* Rename isObject to hasSchema

* WIP

* Typing WIP

* Type not Types

* Unused import

* type fix

* Handle json array subtype

* Support queryarray datasource type

* refactor

* yarn lock

* update account portal

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-02-19 09:13:03 +00:00
mike12345567 cfd1c98c85 Updating timeouts for automations, making it easier to manage/find the various timeout limits. Also adding a new environment variable AUTOMATION_THREAD_TIMEOUT which can be used to control how long automations can run for. 2024-02-14 11:44:07 +00:00
Sam Rose 7a012f1f4b
Add tests for create queries. 2024-02-05 16:49:21 +00:00
Adria Navarro 51406a80da Fix test 2024-01-29 16:18:34 +01:00
mike12345567 35a3d663ba Comments on PR - some small changes. 2024-01-24 12:33:29 +00:00
mike12345567 2a21556402 Get rid of schemaFields on backend. 2024-01-22 13:29:14 +00:00
mike12345567 db7c2c804b Updating query responses to follow the same form consistently. 2024-01-19 18:13:12 +00:00
mike12345567 bbeaed48a7 Removing the use of the addQueries quota functionality from row API - we don't make use of these statistics anymore (and haven't in a while) counting them is pointless and could be causing some loss in performance in these heavily used endpoints. 2024-01-04 17:38:54 +00:00
mike12345567 8628c67c90 Fixing typing issues. 2023-12-05 18:17:27 +00:00
Adria Navarro db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
Adria Navarro 742eb4ff46 Lint fix 2023-11-20 15:36:55 +01:00
mike12345567 c498f39f2a Fixing type build. 2023-09-29 13:45:02 +01:00
mike12345567 96327eaef1 Quick fix for REST schema being updated by user, when the request is sent again/query performed again user updates are lost - this means that changes are maintained across runs. 2023-09-29 13:17:14 +01:00
mike12345567 7110351bdc Revert "revert develop into master"
This reverts commit fd099658a0.
2023-08-18 14:33:21 +01:00
Martin McKeaveney fd099658a0 revert develop into master 2023-08-17 10:28:15 +01:00
Michael Drury 08e663a8d3 Merge branch 'master' into budi-7350-filter-equal-for-numbers-not-working-in-data-providers 2023-08-10 16:28:59 +01:00
Mel O'Hagan 8c61359b9d Allow user specified type casting in MySQL queries 2023-08-03 17:23:15 +01:00
Andrew Kingston cf178808bf Merge branch 'develop' of github.com:Budibase/budibase into cheeks-fixes 2023-07-24 12:03:28 +01:00
Andrew Kingston 869cb0777b Validate query names to avoid parentheses 2023-07-24 12:02:24 +01:00
mike12345567 bb032852e5 Merge branch 'master' of github.com:Budibase/budibase into develop 2023-07-21 16:26:34 +01:00
mike12345567 40b4943766 Fix for dynamic variables being duplicated when creating new REST queries - also moved some stuff to backend SDK to make a bit re-usable, allowing backend to detect duplicate dynamic variables and error. 2023-07-20 13:07:19 +01:00