Skip to content

Allow deletion of saved searches #9317

@philippconzett

Description

@philippconzett

Overview of the Feature Request
Dataset links between collection within a Dataverse installation can be removed using this API call:

curl -H "X-Dataverse-key: $API_TOKEN" -X DELETE http://$SERVER/api/dataverses/$linked-dataverse-alias/deleteLink/$linking-dataverse-alias

However, the links will still appear again since the saved searches will be re-established weekly.
To remove links permanently, we need a DELETE endpoint for saved searches.

What kind of user is the feature intended for?
API User

What inspired the request?
A long-lasting issue we have been having at DataverseNO; see this discussion thread in the Dataverse Google group.

What existing behavior do you want changed?
Dataset links between sub-collections within a Dataverse installation being re-established after unlinking.

Any brand new behavior do you want to add to Dataverse?
No.

Any related open or closed issues to this feature request?
#1364. See also @pdurbin's comment in the mentioned discussion thread:

From a quick look at the code, it seems that the ability to delete saved searches was stubbed out but never implemented: https://github.com/IQSS/dataverse/blob/v5.12.1/src/main/java/edu/harvard/iq/dataverse/api/SavedSearches.java#L174

The docs you found explain the thinking back then:

"There is a known issue (#1364) that once a link to a Dataverse collection or dataset is created, it cannot be removed (apart from database manipulation and reindexing) which is why a DELETE endpoint for saved searches is neither documented nor functional"

These days, as you know, deleting links is supported, so it's probably time to make that "delete saved search" API endpoint real.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Interested

    Status

    High priority

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions