Ticket #303 (new defect) — at Version 1

Opened 4 years ago

Last modified 4 years ago

Package history & feed to show changes to tags, extras and resources

Reported by: dread Owned by: johnbywater
Priority: major Milestone: v1.0
Component: ckan Keywords:
Cc: Repository:
Theme:

Description (last modified by dread) (diff)

Currently a package's history page (/package/history/xyz) and related feed only shows changes to the core package i.e. ones which create a PackageResource?. This doesn't include changes to tags, extras and resources. These need to be added.

There is the complication that the 'diff' function doesn't currently work beyond PackageResource?. Unless this is quick and simple to fix, I suggest we let the diff remain slightly broken for now.

Rufus suggests alongside the existing methods:

pkg.all_revisions()
pkg.diff()

we have ones which also include the related objects (tags, extras, resources):

pkg.all_revisions_full()
pkg.diff_full()

You could have a function which returned these related objects. Ideas:

revobjlist = [ self, resources, extras ]
list of tuples: (revobj, changed_revobjs)
list of tuples: (revobj, {objtype: [changed_revobjs]})
tuple: (rev1, {Package: [ object_id, object_id], PackageTag: [object_id, object_id2] ...}

Change History

comment:1 Changed 4 years ago by dread

  • Description modified (diff)
Note: See TracTickets for help on using tickets.