Skip to content

Fix collection copy operation in dataset list#18724

Draft
guerler wants to merge 5 commits intogalaxyproject:devfrom
guerler:fix_collection_copy
Draft

Fix collection copy operation in dataset list#18724
guerler wants to merge 5 commits intogalaxyproject:devfrom
guerler:fix_collection_copy

Conversation

@guerler
Copy link
Contributor

@guerler guerler commented Aug 20, 2024

Fixes #18658.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@guerler guerler added this to the 24.2 milestone Aug 20, 2024
@guerler guerler marked this pull request as ready for review August 22, 2024 06:17
}

async function onCopyDataset(item: HDASummary) {
async function onCopyContent(item: HDASummary) {
Copy link
Member

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

export async function copyContent(
contentId: CopyContentBodyType["content"],
historyId: CopyContentParamsType["path"]["history_id"],
type: CopyContentParamsType["path"]["type"] = "dataset"
Copy link
Member

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.

@ahmedhamidawan
Copy link
Member

ahmedhamidawan commented Aug 29, 2024

Some changes here especially in HistoryPanel and MultipleViewList might relate to/conflict with changes in #18699 with the addition of the historyDragDrop composable and the removal of onDrop from both those files.

@jdavcs jdavcs modified the milestones: 24.2, 25.0 Dec 2, 2024
@ahmedhamidawan ahmedhamidawan removed this from the 25.0 milestone Jun 4, 2025
@guerler guerler force-pushed the fix_collection_copy branch from 50fc1c4 to 8d4bdc4 Compare November 30, 2025 07:11
@guerler guerler marked this pull request as draft November 30, 2025 07:12
@guerler guerler force-pushed the fix_collection_copy branch from 8d4bdc4 to a7dd41d Compare January 30, 2026 09:27
@guerler guerler added this to the 26.1 milestone Jan 30, 2026
@davelopez
Copy link
Contributor

This one bit another user recently in #21740 we should definitely fix that 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dataset List 'Copy to Current History' action on a collection element results in galaxy trying to make a copy of an unrelated HDA

5 participants