Skip to content

Commit

Permalink
update files to upload_files in create payload
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Oct 1, 2024
1 parent 52b94a1 commit e53b4f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6092,11 +6092,8 @@ export interface components {
extended_metadata?: unknown;
/** File Type */
file_type?: unknown;
/**
* Files
* @default []
*/
files: unknown;
/** Files */
files?: string[] | null;
/**
* Filesystem Paths
* @default
Expand Down Expand Up @@ -6138,6 +6135,11 @@ export interface components {
* @default []
*/
tags: unknown;
/**
* Upload Files
* @default []
*/
upload_files: unknown;
/**
* Upload Option
* @default upload_file
Expand Down Expand Up @@ -13096,11 +13098,6 @@ export interface components {
extended_metadata?: Record<string, never> | null;
/** file type */
file_type?: string | null;
/**
* list of dictionaries containing the uploaded file fields
* @default []
*/
files: Record<string, never>[];
/**
* (only if upload_option is 'upload_paths' and the user is an admin) file paths on the Galaxy server to upload to the library, one file per line
* @default
Expand Down Expand Up @@ -13145,6 +13142,11 @@ export interface components {
* @default []
*/
tags: string[];
/**
* list of dictionaries containing the uploaded file fields
* @default []
*/
upload_files: Record<string, never>[];
/**
* the method to use for uploading files
* @default upload_file
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/actions/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _upload_dataset(self, trans, folder_id: int, payload):
# Proceed with (mostly) regular upload processing if we're still errorless
if payload.upload_option == "upload_file":
for i, upload_dataset in enumerate(tool_params["files"]):
upload_dataset["file_data"] = payload.files[i]
upload_dataset["file_data"] = payload.upload_files[i]
tool_params = upload_common.persist_uploads(tool_params, trans)
uploaded_datasets = upload_common.get_uploaded_datasets(
trans, cntrller, tool_params, dataset_upload_inputs, library_bunch=library_bunch
Expand Down

0 comments on commit e53b4f9

Please sign in to comment.