-
Notifications
You must be signed in to change notification settings - Fork 83
fix(new-webui): Add support for querying metadata from multiple datasets (fixes #1024). #1042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
a4d1cd8
dab039b
89a8b04
0786e2c
9f33330
6e90915
038656f
1f0dc43
01a134f
e1bdcd5
0191277
7a9846d
f9512b9
e463470
4bdc128
36d91fb
6b72a6d
4235ed6
e7824cd
55a3e80
279e7ad
77b15c9
21e8eb2
481e230
661262c
883f849
f014a50
f62a620
968cc80
84d80be
a80a7dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,14 @@ | ||||||||||||||||||||||||||
| import axios from "axios"; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||
| * Query the SQL server with the queryString. | ||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||
| * @param queryString | ||||||||||||||||||||||||||
| * @return | ||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||
| const querySql = async <T>(queryString: string) => { | ||||||||||||||||||||||||||
| return axios.post<T>("/query/sql", {queryString}); | ||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add input validation and consider SQL injection risks. The function directly passes the Additionally, the JSDoc is incomplete - the /**
* Query the SQL server with the queryString.
*
* @param queryString
- * @return
+ * @return Promise<AxiosResponse<T>> The axios response containing the query results
*/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| export {querySql}; | ||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import {QueryClient} from "@tanstack/react-query"; | ||
|
|
||
|
|
||
| const DEFAULT_STALE_TIME_MILLIS = 10_000; | ||
|
|
||
| const queryClient = new QueryClient({ | ||
| defaultOptions: { | ||
| queries: { | ||
| staleTime: DEFAULT_STALE_TIME_MILLIS, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| export default queryClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Verification correct
Fix the import resolution issue.
The ESLint pipeline failure indicates that the
@tanstack/react-query-devtoolsimport cannot be resolved. Ensure this package is properly installed in package.json.🏁 Script executed:
Length of output: 170
Fix the import resolution issue.
The ESLint pipeline failure indicates that the
@tanstack/react-query-devtoolsimport cannot be resolved. Ensure this package is properly installed in package.json.🧰 Tools
🪛 GitHub Actions: clp-lint
[error] 4-4: ESLint: Unable to resolve path to module '@tanstack/react-query-devtools' (import/no-unresolved)
🤖 Prompt for AI Agents