Ticket #1546 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Package metadata_created returns the wrong date

Reported by: johnglover Owned by: johnglover
Priority: minor Milestone: ckan-sprint-2011-12-19
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

metadata_created seems to be returning the date of the earliest revision (for all packages), rather than the earliest revision for a specific package.

Change History

comment:1 Changed 2 years ago by johnglover

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

comment:2 Changed 2 years ago by dread

It looks like Rufus forgot the second bit of the AND clause:

      and_(model.revision_table.c.id==model.package_revision_table.c.revision_id,
+          model.package_revision_table.c.continuity_id==self.id)
          )

Unfortunately John's fix breaks the #191 fix. I'm reopening that to fix it there.

comment:3 Changed 2 years ago by dread

The fix for the break related to 191 is checked in here: [release-v1.5.1c 2c595ae] and cherry picked to [origin/defect-191-modification-date f98a4b2]

comment:4 Changed 2 years ago by dread

Broken since introduction in CKAN 1.3. Fixed in CKAN 1.5.1.

Note: See TracTickets for help on using tickets.