<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1012: Add package revision history to api</title>
    <link>http://localhost/ticket/1012</link>
    <description>&lt;p&gt;
Revision history information is not accessible, dgu want this.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1012</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Tue, 15 Mar 2011 19:33:21 GMT</pubDate>
      <title>priority, milestone changed</title>
      <link>http://localhost/ticket/1012#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;priority&lt;/strong&gt;
                changed from &lt;em&gt;awaiting triage&lt;/em&gt; to &lt;em&gt;minor&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.4-sprint-3&lt;/em&gt; to &lt;em&gt;ckan-v1.4-sprint-4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
See also &lt;a class="closed ticket" href="http://localhost/ticket/103" title="enhancement: View a package at a given revision (closed: fixed)"&gt;#103&lt;/a&gt; which says:
&lt;/p&gt;
&lt;p&gt;
As a user I want to view a package at a given revision:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;When I visit /package/read/xyz?rev=yyy I should be shown package at revision yyy
&lt;/li&gt;&lt;li&gt;package history page should provide links to these pages
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Could you please investigate how doable this would be given the current package read.html page. I expect it could be very easy once the revision API is in place because we could build a c.pkg object from the revision data instead of the model data.
&lt;/p&gt;
&lt;p&gt;
Perhaps another case where we could try introducing the dictization?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>kindly</dc:creator>

      <pubDate>Thu, 17 Mar 2011 08:58:54 GMT</pubDate>
      <title>repo, theme set</title>
      <link>http://localhost/ticket/1012#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;repo&lt;/strong&gt;
                set to &lt;em&gt;ckan&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;theme&lt;/strong&gt;
                set to &lt;em&gt;none&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This is entirely not trivial at the moment.  Hopefully after the dictization it will become more so.
Simply putting in the package revision object in place of the package does not work.
It will obviously work for changes to the package object itself. However, there are no  mappers on that object for getting out the related package_tags, resources and extras at that revision.  You will have to construct a fake pkg object with some messy and painful queries using dates.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>kindly</dc:creator>

      <pubDate>Thu, 17 Mar 2011 11:49:44 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1012#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:3</guid>
      <description>
        &lt;p&gt;
cset:5649d6e761fc
&lt;/p&gt;
&lt;p&gt;
The basic revision history is merged. I will keep this ticket open if it is not sufficient.
&lt;/p&gt;
&lt;p&gt;
All it does is give a list with the most recent first of revision_ids, authors and timestamps.
&lt;/p&gt;
&lt;p&gt;
i.e
&lt;/p&gt;
&lt;pre class="wiki"&gt;[{"timestamp": "2011-03-16T15:55:19.941961",
  "author": "southampton-ac-uk",
  "revision": "202e9eb8-afaa-4bc9-b8a1-a317561547ea"},
 {"timestamp": "2011-03-15T17:59:16.430804",
 "author": "southampton-ac-uk",
 "revision": "8235bd0a-d39a-49e0-887a-b0f231be8a92"}]
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Thu, 17 Mar 2011 12:23:40 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/1012#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.4-sprint-4&lt;/em&gt; to &lt;em&gt;ckan-v1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The API part is now done. Bumping the view history part to 1.5
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Thu, 17 Mar 2011 13:27:29 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1012#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:5</guid>
      <description>
        &lt;p&gt;
As I understand it, the whole point to vdm is to make it easy to get old versions of not only the package, but its related objects (like tags, extras). David take a look at this function: Package.get_as_of(revision)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Mon, 04 Apr 2011 09:28:23 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/1012#comment:6</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.5&lt;/em&gt; to &lt;em&gt;ckan-v1.4-sprint-5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Mon, 04 Apr 2011 09:38:05 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/1012#comment:7</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.4-sprint-5&lt;/em&gt; to &lt;em&gt;ckan-v1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Mon, 04 Apr 2011 09:38:57 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1012#comment:8</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;wontfix&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
No-one really seems to have requested this part.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 18:51:36 GMT</pubDate>
      <title>status changed; resolution deleted</title>
      <link>http://localhost/ticket/1012#comment:9</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;wontfix&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Changing this to 'Fixed' and &lt;a class="closed ticket" href="http://localhost/ticket/103" title="enhancement: View a package at a given revision (closed: fixed)"&gt;#103&lt;/a&gt; to 'Wont fix' to ensure this feature is noted.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 04 Apr 2011 18:51:53 GMT</pubDate>
      <title>status, milestone changed; resolution set</title>
      <link>http://localhost/ticket/1012#comment:10</link>
      <guid isPermaLink="false">http://localhost/ticket/1012#comment:10</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;reopened&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-v1.5&lt;/em&gt; to &lt;em&gt;ckan-v1.4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>