-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix collection copy operation in dataset list #18724
base: dev
Are you sure you want to change the base?
Conversation
@@ -100,16 +100,13 @@ async function load(concat = false) { | |||
} | |||
} | |||
|
|||
async function onCopyDataset(item: HDASummary) { | |||
async function onCopyContent(item: HDASummary) { |
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.
The type annotation here isn't correct if you're calling this function onCopyContent
client/src/api/datasets.ts
Outdated
export async function copyContent( | ||
contentId: CopyContentBodyType["content"], | ||
historyId: CopyContentParamsType["path"]["history_id"], | ||
type: CopyContentParamsType["path"]["type"] = "dataset" |
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.
This is ambigous, I would pass in src
(at least ldda is another valid dataset type) and then figure out which type it is, or pass both if you want to support dce's as well.
Some changes here especially in |
Fixes #18658.
How to test the changes?
(Select all options that apply)
License