Ticket #1053 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Deletion in Model API

Reported by: dread Owned by: dread
Priority: awaiting triage Milestone: ckan-v1.5
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

Currently in the API if you DELETE a package/group/user (and you have the required permissions) then it purges the object, when it should probably just set the state to deleted.

There is no way to delete objects at the moment - changes to 'state' are ignored in the API.

Do we need an alternative way to purge objects in the API?

Change History

comment:1 Changed 3 years ago by dread

  • Milestone set to ckan-v1.4-sprint-5

comment:2 Changed 3 years ago by dread

  • Owner set to dread
  • Status changed from new to assigned
  • Milestone changed from ckan-v1.4-sprint-5 to ckan-v1.4-sprint-6

comment:3 Changed 3 years ago by dread

  • Milestone changed from ckan-v1.4-sprint-6 to ckan-v1.4-sprint-7

comment:4 Changed 3 years ago by dread

  • state set to draft
  • Milestone changed from ckan-v1.4-sprint-7 to ckan-v1.5

comment:5 Changed 3 years ago by thejimmyg

  • Status changed from assigned to closed
  • Resolution set to fixed

This is now fixed as part of the API refactor and revisioning updates David Raznick has done.

comment:6 Changed 3 years ago by dread

Looks to me like DELETE always changed the state to Deleted, so an invalid ticket.

We can deal with purging in another ticket if needed.

Note: See TracTickets for help on using tickets.