<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #538: Update CKAN Trac ticket report queries</title>
    <link>http://localhost/ticket/538</link>
    <description>&lt;p&gt;
Update report queries with more recent versions (below are report queries shipped with trac 0.11.7):
&lt;/p&gt;
&lt;p&gt;
NB: Report 1 has already been done.
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
id |                                               query
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr /&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;
1 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    id AS ticket, summary, component, version, milestone, t.type AS type,
:    owner, status,
:    time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status &amp;lt;&amp;gt; 'closed'
:   ORDER BY CAST(p.value AS integer), milestone, t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
2 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    version AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    id AS ticket, summary, component, version, t.type AS type,
:    owner, status,
:    time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status &amp;lt;&amp;gt; 'closed'
:   ORDER BY (version IS NULL),version, CAST(p.value AS integer), t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
3 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
&lt;/p&gt;
&lt;table class="wiki"&gt;
&lt;tr&gt;:    'Milestone '&lt;td style="text-align: left"&gt;milestone AS &lt;span class="underline"&gt;group&lt;/span&gt;,
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;
:    id AS ticket, summary, component, version, t.type AS type,
:    owner, status,
:    time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status &amp;lt;&amp;gt; 'closed'
:   ORDER BY (milestone IS NULL),milestone, CAST(p.value AS integer), t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
4 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
:
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    owner AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    id AS ticket, summary, component, milestone, t.type AS type, time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status = 'accepted'
:   ORDER BY owner, CAST(p.value AS integer), t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
5 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    owner AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    id AS ticket, summary, component, milestone, t.type AS type, time AS created,
:    description AS _description_,
:    changetime AS _changetime, reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status = 'accepted'
:   ORDER BY owner, CAST(p.value AS integer), t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
6 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    t.milestone AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    (CASE status
:       WHEN 'closed' THEN 'color: &lt;a class="closed ticket" href="http://localhost/ticket/777" title="task: Put 503-returning middleware into a module (closed: fixed)"&gt;#777&lt;/a&gt;; background: #ddd; border-color: #ccc;'
:       ELSE
:         (CASE owner WHEN $USER THEN 'font-weight: bold' END)
:     END) AS &lt;span class="underline"&gt;style&lt;/span&gt;,
:    id AS ticket, summary, component, status,
:    resolution,version, t.type AS type, priority, owner,
:    changetime AS modified,
:    time AS _time,reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   ORDER BY (milestone IS NULL), milestone DESC, (status = 'closed'),
:         (CASE status WHEN 'closed' THEN changetime ELSE (-1) * CAST(p.value AS integer) END) DESC
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
7 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    (CASE status WHEN 'accepted' THEN 'Accepted' ELSE 'Owned' END) AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    id AS ticket, summary, component, version, milestone,
:    t.type AS type, priority, time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE t.status &amp;lt;&amp;gt; 'closed' AND owner = $USER
:   ORDER BY (status = 'accepted') DESC, CAST(p.value AS integer), milestone, t.type, time
:
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
8 |
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
: SELECT p.value AS &lt;span class="underline"&gt;color&lt;/span&gt;,
:    (CASE owner
:      WHEN $USER THEN 'My Tickets'
:      ELSE 'Active Tickets'
:     END) AS &lt;span class="underline"&gt;group&lt;/span&gt;,
:    id AS ticket, summary, component, version, milestone, t.type AS type,
:    owner, status,
:    time AS created,
:    changetime AS _changetime, description AS _description,
:    reporter AS _reporter
:   FROM ticket t
:   LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
:   WHERE status &amp;lt;&amp;gt; 'closed'
:   ORDER BY (COALESCE(owner, &lt;em&gt;) = $USER) DESC, CAST(p.value AS integer), milestone, t.type, time
&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;/blockquote&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/538</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>thejimmyg</dc:creator>

      <pubDate>Fri, 07 Jan 2011 15:03:55 GMT</pubDate>
      <title>owner, priority, component set</title>
      <link>http://localhost/ticket/538#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/538#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;rgrp&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;priority&lt;/strong&gt;
                set to &lt;em&gt;awaiting triage&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;component&lt;/strong&gt;
                set to &lt;em&gt;ckan&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Rufus, is this something you want to take on or shall we close the ticket as wontfix?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Fri, 07 Jan 2011 15:35:37 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/538#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/538#comment:2</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;
We don't use reports any more -- just the query module -- so closing as wontfix.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>