Skip to content

Add library dataset deletion route#498

Open
bernt-matthias wants to merge 5 commits intogalaxyproject:mainfrom
bernt-matthias:topic/library-dataset-delete-deprecated
Open

Add library dataset deletion route#498
bernt-matthias wants to merge 5 commits intogalaxyproject:mainfrom
bernt-matthias:topic/library-dataset-delete-deprecated

Conversation

@bernt-matthias
Copy link
Copy Markdown
Contributor

that is not marked as deprecated

@nsoranzo
Copy link
Copy Markdown
Member

nsoranzo commented Mar 7, 2025

Can you create a separate undelete_library_dataset() method instead, like we have for histories and quotas?
It seems counter-intuitive to invoke delete_something() to undelete it.
Also I'd rather keep using the deprecated API route until purge is implemented in the "new" one.

Additionally, it looks like the correct name of the parameter is purge, not purged, so the implementation has always been buggy.

@bernt-matthias
Copy link
Copy Markdown
Contributor Author

Can you create a separate undelete_library_dataset() method instead, like we have for histories and quotas? It seems counter-intuitive to invoke delete_something() to undelete it.

Sure.

Also I'd rather keep using the deprecated API route until purge is implemented in the "new" one.

Yeah, whatever purge means for library datasets. As so often this remains completely unclear to the API user.

Additionally, it looks like the correct name of the parameter is purge, not purged, so the implementation has always been buggy.

Good find. Easy to fix.

@nsoranzo
Copy link
Copy Markdown
Member

nsoranzo commented Mar 7, 2025

Also I'd rather keep using the deprecated API route until purge is implemented in the "new" one.

Yeah, whatever purge means for library datasets. As so often this remains completely unclear to the API user.

It should mark the ld as purged and fully delete the underlying dataset (ld.library_dataset_dataset_association.dataset): https://github.com/galaxyproject/galaxy/blob/9477c7773e0fdf517c411ac8272e3c5e72b07e3d/lib/galaxy/webapps/galaxy/services/library_contents.py#L219-L231

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants