~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to templates/team-report.html

  • Committer: Michael Hudson-Doyle
  • Date: 2018-09-04 22:57:20 UTC
  • mto: This revision was merged to the branch mainline in revision 226.
  • Revision ID: michael.hudson@canonical.com-20180904225720-a23tn32gcjf82lwh
add a script to generate a per-team view of proposed-migration and invoke it after proposed migration

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML>
 
2
<html>
 
3
  <head>
 
4
    <meta charset="utf-8">
 
5
    <title>devel-proposed by team</title>
 
6
    <style>
 
7
      body { font-family: ubuntu }
 
8
    </style>
 
9
  </head>
 
10
  <body lang="en">
 
11
    <h1>devel-proposed by team</h1>
 
12
    <p>
 
13
      Generated: {{ now }}
 
14
    <ul>
 
15
      {% for team in all_teams|sort %}
 
16
      <li><a href="#{{ team }}">{{ team }}</a> ({{ ngettext("%(num)d package", "%(num)d packages", team_to_problems[team]|count) }} needing attention)</li>
 
17
      {% endfor %}
 
18
    </ul>
 
19
    {% for team in all_teams|sort %}
 
20
    <h1 id="{{ team }}">{{ team }}</h1>
 
21
    <p>
 
22
      {{ ngettext("%(num)d package", "%(num)d packages", team_to_problems[team]|count) }} needing attention
 
23
    </p>
 
24
    <ul>
 
25
      {% for prob in team_to_problems[team] %}
 
26
      {% set d = prob.data %}
 
27
      {% set p = prob.package_in_proposed %}
 
28
      <li>
 
29
        {% if prob.kind == "regressing-other" %}
 
30
        <b>{{ prob.regressing_package }}</b> blocking
 
31
        <a href="http://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#{{ p }}">{{ p }}</a>
 
32
        {% else %}
 
33
        <a href="http://people.canonical.com/~ubuntu-archive/proposed-migration/update_excuses.html#{{ p }}"><b>{{ p }}</b></a>
 
34
        {% endif %}
 
35
        {% set urlbase = "https://launchpad.net/ubuntu/+source/" + p + "/" %}
 
36
        ({% if d['old-version'] != "-" %}<a href="{{ urlbase }}{{ d["old-version"] }}">{{ d["old-version"] }}{% else %}-{% endif %}</a>
 
37
        to
 
38
        <a href="{{ urlbase }}{{ d["new-version"] }}">{{ d["new-version"] }}</a>)
 
39
        {% if prob.kind == "regressing-other" %}
 
40
        for
 
41
        {% else %}
 
42
        in proposed for
 
43
        {% endif %}
 
44
        {{ ngettext("%(num)d day", "%(num)d days", prob.age|int) }}
 
45
        <ul>
 
46
          {% if prob.waiting %}
 
47
          <li>
 
48
            Waiting
 
49
            <ul>
 
50
              {% for p in prob.waiting %}
 
51
              <li>{{ p }}</li>
 
52
              {% endfor %}
 
53
            </ul>
 
54
          </li>
 
55
          {% endif %}
 
56
          {% if d.get("missing-builds") %}
 
57
          <li>Missing builds, see excuses</li>
 
58
          {% endif %}
 
59
          {% if 'no-binaries' in d["reason"] %}
 
60
          <li>No binaries</li>
 
61
          {% endif %}
 
62
          {% if prob.regressions %}
 
63
          <li>
 
64
            Regressions
 
65
            <ul>
 
66
              {% for regr in prob.regressions %}
 
67
              <li>
 
68
                {{ regr.package_version }}:
 
69
                {% for arch_regr in regr.arches %}
 
70
                {{ arch_regr.arch }} (<a href="{{ arch_regr.log_link }}">log</a>, <a href="{{ arch_regr.hist_link }}">history</a>)
 
71
                {%- if not loop.last %}, {% endif %}
 
72
                {% endfor %}
 
73
              </li>
 
74
              {% endfor %}
 
75
            </ul>
 
76
          </li>
 
77
          {% endif %}
 
78
          {% if prob.kind != "regressing-other" %}
 
79
          {% if d.get('dependencies', {}).get('blocked-by', []) %}
 
80
          <li>Depends on {{ d['dependencies']['blocked-by']|join(", ") }}</li>
 
81
          {% endif %}
 
82
          {% if prob.unsatdepends %}
 
83
          <li>
 
84
            Unsatisfiable depends:
 
85
            <ul>
 
86
              {% for unsatd in prob.unsatdepends %}
 
87
              <li>{{ unsatd }}</li>
 
88
              {% endfor %}
 
89
            </ul>
 
90
          </li>
 
91
          {% endif %}
 
92
          {% if d["policy_info"]["block-bugs"] %}
 
93
          <li>Blocked by bug: {{ d["policy_info"]["block-bugs"]|map("int")|sort|map("string")|join(", ") }}</li>
 
94
          {% endif %}
 
95
          {% if d["is-candidate"] %}
 
96
          <li><b>candidate</b></li>
 
97
          {% endif %}
 
98
          {% endif %}
 
99
        </ul>
 
100
      </li>
 
101
      {% endfor %}
 
102
    </ul>
 
103
    {% endfor %}
 
104
  </body>
 
105
</html>