Ticket #2936 (new defect)

Opened 20 months ago

Updating a group via the API clears its packages

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

Description

If the group dict that you post to the API does not have any 'packages' key then all the group's packages get removed. I think it would be better if you could just update e.g. the group's description without having to also post the list of packages, and apparently this is how other update API actions work.

Might be worth checking all the update API actions for this behaviour, and making sure they're all consistent

Note: See TracTickets for help on using tickets.