Ticket #1486 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

"allow_partial_update" option does not work with resource lists of packages

Reported by: seanh Owned by: seanh
Priority: minor Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

  1. Call ckan.logic.action.update:package_update()
  2. Pass in a context dict with "allow_partial_update":True
  3. Pass in a partial data dict containing only the package's ID and those fields that you want to update (e.g. title).

=> All of the package's resource will have their statuses changed to "deleted".

The "allow_partial_update" option should apply to the resource lists of packages, but it does not.

Change History

comment:2 Changed 2 years ago by seanh

I've merged the fix for this into my feature-1298-activities-table branch, will merge it all into master at once: https://github.com/seanh/ckan/commits/feature-1298-activities-table

comment:3 Changed 2 years ago by seanh

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone ckan-sprint-2011-12-05 deleted

I've now merged my feature-1298-activities-table branch into my super branch for activity streams, so my fix for this defect is now merged into the activity streams super branch and will be merged when that branch is merged. See the activity streams super ticket: #1515

Resolving this ticket now

Note: See TracTickets for help on using tickets.