Skip to content

Commit

Permalink
Merge pull request #17293 from mvdbeek/fix_any_type
Browse files Browse the repository at this point in the history
Fix any type for tool_data_file_path
  • Loading branch information
jmchilton authored Jan 15, 2024
2 parents 344a34f + a662155 commit 0506b94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19607,7 +19607,7 @@ export interface operations {
/** Import a data manager bundle */
parameters?: {
query?: {
tool_data_file_path?: Record<string, never>;
tool_data_file_path?: string | null;
};
/** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */
header?: {
Expand Down
4 changes: 3 additions & 1 deletion lib/galaxy/webapps/galaxy/api/tool_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

from fastapi import (
Body,
Path,
Expand Down Expand Up @@ -66,7 +68,7 @@ async def index(self) -> ToolDataEntryList:
require_admin=True,
)
async def create(
self, tool_data_file_path=None, import_bundle_model: ImportToolDataBundle = Body(...)
self, tool_data_file_path: Optional[str] = None, import_bundle_model: ImportToolDataBundle = Body(...)
) -> AsyncTaskResultSummary:
source = import_bundle_model.source
result = import_data_bundle.delay(tool_data_file_path=tool_data_file_path, **source.model_dump())
Expand Down

0 comments on commit 0506b94

Please sign in to comment.