Commit 8990e442 authored by Lucas Nussbaum's avatar Lucas Nussbaum

bugs.cgi: add britney column (bug #917469)

parent 0e90713e
......@@ -150,6 +150,7 @@ COLUMNS = [
['crttags', 'release team tags'],
['cautormtime', 'autoremoval time'],
['cwhykey', 'reason for being key package'],
['cbritney', 'britney status'],
]
# copied from /org/bugs.debian.org/etc/config
......@@ -295,6 +296,9 @@ if cgi.params != {}
if cols['cwhykey'] || cols['ckeypackage']
q += ", coalesce(key_packages.reason, '') as whykey"
end
if cols['cbritney']
q += ", coalesce(migration_excuses.migration_policy_verdict, '') as britney"
end
if cols['cmissingbuilds']
q += ", coalesce(mb, '-') as missingbuilds"
end
......@@ -314,6 +318,9 @@ if cgi.params != {}
if cols['cwhykey'] || cols['ckeypackage']
q += " left join key_packages on (bugs.source = key_packages.source) "
end
if cols['cbritney']
q += " left join migration_excuses on (bugs.source = migration_excuses.item_name) "
end
if cols['cmissingbuilds']
q += " left join (
select string_agg(distinct(wannabuild.architecture),', ' order by wannabuild.architecture) mb, source
......
......@@ -230,6 +230,7 @@ cpopcon=1&
<% if cols['cpopcon'] %><th>popcon</th><% end %>
<% if cols['cseverity'] %><th>severity</th><% end %>
<% if cols['chints'] %><th>hints</th><% end %>
<% if cols['cbritney'] %><th>britney status</th><% end %>
<% if cols['cmissingbuilds'] %><th>missing builds in unstable</th><% end %>
<% if cols['cwhykey'] %><th>why key pkg</th><% end %>
<% if cols['cautormtime'] %><th>autoremoval</th><% end %>
......@@ -275,6 +276,7 @@ cpopcon=1&amp;
<%= r['severity'] %></td>
<% end %>
<% if cols['chints'] %><td><%= gen_hints_unblocks(r['rt-hints'] || [], r['unblock-requests'] || []) %> &nbsp;</td><% end %>
<% if cols['cbritney'] %><td><a href="https://release.debian.org/britney/update_excuses.html#<%= r['source']%>"><%= r['britney'] %></a></td><% end %>
<% if cols['cmissingbuilds'] %><td><a href="https://buildd.debian.org/status/package.php?p=<%= r['source']%>&suite=sid"><%= r['missingbuilds'] %></a></td><% end %>
<% if cols['cwhykey'] %><td><%= r['whykey'] %></td><% end %>
<% if cols['cautormtime'] %><td><%= r['autormdate'] %></td><% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment