Skip to content

[26.0] Mark dataset collections as deleted when purging a history#22315

Merged
mvdbeek merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:purge-hdca-on-history-purge
Mar 31, 2026
Merged

[26.0] Mark dataset collections as deleted when purging a history#22315
mvdbeek merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:purge-hdca-on-history-purge

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Mar 31, 2026

When a history is purged, HDAs are correctly marked as deleted/purged but HDCAs (HistoryDatasetCollectionAssociation) were left with deleted=False. This caused API consumers to find collections from purged histories, leading to workflow failures when those collections' underlying datasets were purged.

Fix both the synchronous (non-celery) and asynchronous (celery task) code paths to cascade the purge to dataset collections.

Fixes #22312

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.

When a history is purged, HDAs are correctly marked as deleted/purged but
HDCAs (HistoryDatasetCollectionAssociation) were left with deleted=False.
This caused API consumers to find collections from purged histories, leading
to workflow failures when those collections' underlying datasets were purged.

Fix both the synchronous (non-celery) and asynchronous (celery task) code
paths to cascade the purge to dataset collections.

Fixes galaxyproject#22312
@ahmedhamidawan ahmedhamidawan modified the milestones: 26.1, 26.0 Mar 31, 2026
@mvdbeek mvdbeek merged commit df10fd7 into galaxyproject:release_26.0 Mar 31, 2026
55 of 58 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Mar 31, 2026
@galaxyproject galaxyproject deleted a comment from github-actions Bot Mar 31, 2026
@nsoranzo nsoranzo deleted the purge-hdca-on-history-purge branch March 31, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants