From nobody Mon Apr 29 09:35:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 152447134479966.76311818396528; Mon, 23 Apr 2018 01:15:44 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 83C6031316E4; Mon, 23 Apr 2018 08:15:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 733AF77DA9; Mon, 23 Apr 2018 08:15:43 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0634F180215F; Mon, 23 Apr 2018 08:15:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3N8FH0I012929 for ; Mon, 23 Apr 2018 04:15:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0F0B86E706; Mon, 23 Apr 2018 08:15:17 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F127574929 for ; Mon, 23 Apr 2018 08:14:50 +0000 (UTC) Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9E3480F93 for ; Mon, 23 Apr 2018 08:14:17 +0000 (UTC) Received: by mail-wr0-f177.google.com with SMTP id g21-v6so11113653wrb.8 for ; Mon, 23 Apr 2018 01:14:17 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id x17sm6468901edx.53.2018.04.23.01.14.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 01:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=sHGqoEs08cx9J1Ognd7jmTMUzEI7RejrcC3S3aXLCEw=; b=T7rGPXZw8awfGaolkODB/VENpiLUVn6YlnNSxSk7KClkzZxa/9a7sA9QVVfTOXGvbg SJBxsyw92jKkYk+5c9Js5B202UOJ1R7TYwMNsXacuOYh7WZ+PuasMc++g6FtCEfmLq9c Wtne7iXARwt+Um1cBJRfSf7qIHAavXmV0swKjKoT3nukPcCjvJHZT6moAWtXuSbdWzet SqFkmEEMo2l8lOv3gQ/ISWDvwxnrZ2+YL5DZOy3Wr5ZaUyOfPaJGrURDzmlUkq19eowk ewwceboXkUoRPtuWoyD0ki7reY8JTW/f2L0nf7pROQFkUJkpOsdlwbz87zcEirlQ2ESx bZpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=sHGqoEs08cx9J1Ognd7jmTMUzEI7RejrcC3S3aXLCEw=; b=YnV8aZC206TVnImMSxZLKvmzft3izlJace0Mlihn0rPAzsx9V/Qpysocd892XX+1+g 0Z0sRAIDI4Iqtc9jCL7yXdGmMtcpZDb4UnwGiKH1/sPm6gtSpK2ZzAMN2yLeQiAG0a9f RaLxCX2Bd5QsJaQRxxZ5cD01nf53K6DpPhgXbXpu3cb6DGRDDd0RfPg5+3uef5DpFVRV c/Ja/8mKhNmSETU0lWaZq2TBmL1XqhCqP9cmnuLFIBhHGdkfIc9zIueqwiFEHPHvFLLX qb3Y62QMwDqAbyUCrThRcnyiiOjeYLemRe+RMU9a1PeOkN0MOas0Azlnb4S1hBbml+Fd PLyw== X-Gm-Message-State: ALQs6tDpO0fiH4bCjCr/nqI8gVOH3UZrF1j9342G843R/gjVfJtkIr4a dZMBs/T/1Y5ZozdMxYQnfiXNQx/h X-Google-Smtp-Source: AIpwx4//Y2QPF7BE6vo2Kel6AClXHnIepmmWFpnHuKm6ZrOmCSTplak21GwSBxAL1SfmWCkbJCGFug== X-Received: by 10.80.128.5 with SMTP id 5mr27530212eda.130.1524471256074; Mon, 23 Apr 2018 01:14:16 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 10:14:12 +0200 Message-Id: <20180423081415.15099-2-pbonzini@redhat.com> In-Reply-To: <20180423081415.15099-1-pbonzini@redhat.com> References: <20180423081415.15099-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 23 Apr 2018 08:14:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 23 Apr 2018 08:14:18 +0000 (UTC) for IP:'209.85.128.177' DOMAIN:'mail-wr0-f177.google.com' HELO:'mail-wr0-f177.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.35 (DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.177 mail-wr0-f177.google.com 209.85.128.177 mail-wr0-f177.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 1/4] add result renderer infrastructure X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 23 Apr 2018 08:15:43 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Plugins can prepare the "status" section of the series/message detail pages from the same Result objects used by the REST API. Record in the Result the object that created it, so that it can prepare an HTML rendering of the Result. Signed-off-by: Paolo Bonzini --- api/models.py | 11 ++++++++--- static/css/base.css | 6 ++++-- www/templates/project-detail.html | 9 +++++++++ www/templates/series-detail.html | 9 +++++++++ www/views.py | 18 ++++++++++++++++++ 5 files changed, 48 insertions(+), 5 deletions(-) diff --git a/api/models.py b/api/models.py index 9aa1196..501070c 100644 --- a/api/models.py +++ b/api/models.py @@ -601,13 +601,18 @@ class Module(models.Model): def __str__(self): return self.name =20 -class Result(namedtuple("Result", "name status log log_url obj data")): +class Result(namedtuple("Result", "name status log log_url obj data render= er")): __slots__ =3D () =20 - def __new__(cls, name, status, obj, log=3DNone, log_url=3DNone, data= =3DNone, request=3DNone): + def __new__(cls, name, status, obj, log=3DNone, log_url=3DNone, data= =3DNone, request=3DNone, renderer=3DNone): if log_url is not None and request is not None: log_url =3D request.build_absolute_uri(log_url) if status not in ('pending', 'success', 'failure'): raise ValueError("invalid value '%s' for status field" % statu= s) return super(cls, Result).__new__(cls, status=3Dstatus, log=3Dlog,= log_url=3Dlog_url, - obj=3Dobj, data=3Ddata, name=3Dn= ame) + obj=3Dobj, data=3Ddata, name=3Dn= ame, renderer=3Drenderer) + + def render(self): + if self.renderer is None: + return None + return self.renderer.render_result(self) diff --git a/static/css/base.css b/static/css/base.css index 82995f5..35fba6e 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -137,10 +137,12 @@ h1, h2, h3, .h1, .h2, .h3 { .status-content > .fa { color: #337ab7; } -.status-content.status-alert > .fa { +.status-content.status-alert > .fa, +.status-content.status-failure > .fa { color: #CC0000; } -.status-content.status-good > .fa { +.status-content.status-good > .fa, +.status-content.status-success > .fa { color: #009900; } .status-content > div { diff --git a/www/templates/project-detail.html b/www/templates/project-deta= il.html index 80fce3b..aaccdc0 100644 --- a/www/templates/project-detail.html +++ b/www/templates/project-detail.html @@ -41,6 +41,15 @@ {% endif %} +{% for result in results %} +
+ {% if result.status =3D=3D "pending" %} + {% elif result.status =3D=3D "running" %} + {% elif result.status =3D=3D "failure" %} + {% elif result.status =3D=3D "success" %} {% endif %} +
{{ result.html }}
+
+{% endfor %} {% for status in project.extra_status %}
{% if status.icon %} diff --git a/www/templates/series-detail.html b/www/templates/series-detail= .html index 434bc35..9b2db1c 100644 --- a/www/templates/series-detail.html +++ b/www/templates/series-detail.html @@ -56,6 +56,15 @@
Only {{ series.num_patches }} patches received!
{% endif %} +{% for result in results %} +
+ {% if result.status =3D=3D "pending" %} + {% elif result.status =3D=3D "running" %} + {% elif result.status =3D=3D "failure" %} + {% elif result.status =3D=3D "success" %} {% endif %} +
{{ result.html }}
+
+{% endfor %} {% for status in series.extra_status %}
{% if status.icon %} diff --git a/www/views.py b/www/views.py index 8965ebf..b0ccf48 100644 --- a/www/views.py +++ b/www/views.py @@ -91,6 +91,21 @@ def prepare_series(request, s, skip_patches=3DFalse): add_msg_recurse(s, skip_patches) return r =20 +def prepare_results(request, obj): + results =3D [] + dispatch_module_hook("rest_results_hook", request=3Drequest, + obj=3Dobj, results=3Dresults, detailed=3DFalse) + + results_dicts =3D [] + for result in results: + html =3D result.render() + if html is None: + continue + d =3D result._asdict() + d['html'] =3D html + results_dicts.append(d) + return results_dicts + def prepare_series_list(request, sl): return [prepare_message(request, s, False) for s in sl] =20 @@ -204,6 +219,7 @@ def view_project_detail(request, project): po.extra_ops =3D [] dispatch_module_hook("prepare_project_hook", request=3Drequest, projec= t=3Dpo) return render_page(request, "project-detail.html", + results=3Dprepare_results(request, po), project=3Dpo, navigate_links=3Dnav_path, search=3D"") @@ -255,6 +271,7 @@ def view_series_detail(request, project, message_id): project=3Dproject, navigate_links=3Dnav_path, search=3Dsearch, + results=3Dprepare_results(request, s), patches=3Dprepare_patches(request, s), messages=3Dprepare_series(request, s, is_cover_lett= er)) =20 @@ -280,5 +297,6 @@ def view_series_message(request, project, thread_id, me= ssage_id): project=3Dproject, navigate_links=3Dnav_path, search=3Dsearch, + results=3D[], patches=3Dprepare_patches(request, s), messages=3Dprepare_series(request, m)) --=20 2.17.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Mon Apr 29 09:35:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1524471742282388.6541620162808; Mon, 23 Apr 2018 01:22:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F09F356D2; Mon, 23 Apr 2018 08:22:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1A1976FEF7; Mon, 23 Apr 2018 08:22:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4ABAF4CAA3; Mon, 23 Apr 2018 08:16:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3N8G14P013017 for ; Mon, 23 Apr 2018 04:16:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id BE7A5781A8; Mon, 23 Apr 2018 08:16:01 +0000 (UTC) Received: from mx1.redhat.com (ext-mx18.extmail.prod.ext.phx2.redhat.com [10.5.110.47]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B5E69781A7 for ; Mon, 23 Apr 2018 08:15:40 +0000 (UTC) Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D25173002A92 for ; Mon, 23 Apr 2018 08:14:18 +0000 (UTC) Received: by mail-wr0-f175.google.com with SMTP id o15-v6so38563862wro.11 for ; Mon, 23 Apr 2018 01:14:18 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id x17sm6468901edx.53.2018.04.23.01.14.16 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 01:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=2WT2bRuH+Ty60iYdWByFvvCkozfwNyvjoNk+8WOUMG8=; b=BqH6zBG9tqjb73NcQEusNxs4dTqfzoB653Pk1LxyGvdTfsbeM6mT77bBB4/ykjnAXK P+GIdjkY1KYLDdT/4wcCfkn62lz0bqEYXj8gq0vdtjboA9RAZuogWos/oln26p0NdVHb m70pe+ZvsqQA2crqdbEtAaAmz/Nt/4IZfZNGL/CZFhocfmkHOIPBXC9Lr4YIJxCBbruu 7WbRDlUNAi6KgmBE52JW0wI3KIwdfK2wpRurnJ9m+Awd7pyAYk5Tbm9hZ7BIWYVVK0VO csxszoL+NAzOf/iyVihkvpbf7T5rBbts3NOi2GE0n+BGblYbpbtFB/mgBKi3F4PdYL7h ursA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=2WT2bRuH+Ty60iYdWByFvvCkozfwNyvjoNk+8WOUMG8=; b=oU05htInt8TJiEZ1rtO/J2tlUYGuSFCeEoNuNdYsv82LdW5mc3e8+HNorCXGYjZMgG XeETcq9fQG/hozat8V9aGkcZouZE1NFJtCCDFBpEpXb0s1F2GRc13KepQqLQRFrmah6Q A7dHeguQOBL27eIrYy5lbxtkUeMTRqvokSy8sfNss+eZqFJJ0qmy7ZQIsh9298IVmB3w IgUwx14IxlnKRvjDlbDgl9utPeu0OQuXyFFByHirN923BX1KGZqPqeHOiU2cPZHOqkNO /zSfpPs/LR9VJk7Pg2TIhWt8DUJr7buqUSeM8XofTB6Ovzyt8nJe8D0q8/30OzXsujD/ 39Yw== X-Gm-Message-State: ALQs6tDKye5TgBRimeMZV2h9yeMKUFp4Gv0+EF+udP3A8sancxnKSZrp lPz4xJF0qGGFjHKnL/96lV1dFv6h X-Google-Smtp-Source: AIpwx4+Fo2N8bPvJQBwE+bdiAVvwaEoNNzRPV1jvXRYuxZCFyMCRZru+CCE3gR2oDAW+bV8Vb7O1Vw== X-Received: by 10.80.252.12 with SMTP id i12mr10301260edr.74.1524471257161; Mon, 23 Apr 2018 01:14:17 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 10:14:13 +0200 Message-Id: <20180423081415.15099-3-pbonzini@redhat.com> In-Reply-To: <20180423081415.15099-1-pbonzini@redhat.com> References: <20180423081415.15099-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 23 Apr 2018 08:14:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 23 Apr 2018 08:14:19 +0000 (UTC) for IP:'209.85.128.175' DOMAIN:'mail-wr0-f175.google.com' HELO:'mail-wr0-f175.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.35 (DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.175 mail-wr0-f175.google.com 209.85.128.175 mail-wr0-f175.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.47 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 2/4] git: add rendering of Results X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 23 Apr 2018 08:22:21 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" --- mods/git.py | 62 +++++++++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/mods/git.py b/mods/git.py index 1f22f2e..3032e39 100644 --- a/mods/git.py +++ b/mods/git.py @@ -122,7 +122,13 @@ class GitModule(PatchewModule): else: git_repo =3D obj.get_property("git.repo") git_tag =3D obj.get_property("git.tag") - data =3D {'repo': git_repo, 'tag': 'refs/tags/' + git_tag} + git_url =3D obj.get_property("git.url") + data =3D {} + if git_repo and git_tag: + data['repo'] =3D git_repo + data['tag'] =3D git_tag + if git_url: + data['url'] =3D git_url status =3D 'success' log_url =3D reverse("git-log", kwargs=3D{'series': obj.message= _id}) else: @@ -130,30 +136,19 @@ class GitModule(PatchewModule): log_url =3D None results.append(Result(name=3D'git', obj=3Dobj, status=3Dstatus, log=3Dlog, log_url=3Dlog_url, data=3Ddata, - request=3Drequest)) + request=3Drequest, renderer=3Dself)) =20 def prepare_message_hook(self, request, message, detailed): if not message.is_series_head: return - l =3D message.get_property("git.apply-log") - if l: - failed =3D message.get_property("git.apply-failed") - log_url =3D reverse("git-log", - kwargs=3D{"series": message.message_id}) - html_log_url =3D log_url + "?html=3D1" - colorbox_a =3D format_html('apply log', - html_log_url, log_url) - if failed: + if message.get_property("git.apply-log"): + if message.get_property("git.apply-failed"): title =3D "Failed in applying to current master" message.status_tags.append({ "title": title, "type": "default", "char": "G", }) - message.extra_status.append({ - "kind": "alert", - "html": format_html('{} ({})', title, colorbox_a), - }) else: git_url =3D message.get_property("git.url") git_repo =3D message.get_property("git.repo") @@ -165,25 +160,12 @@ class GitModule(PatchewModule): "type": "info", "char": "G", }) - if git_repo and git_tag: - message.extra_status.append({ - "kind": "good", - "html": format_html('Patches applied successfu= lly (tree, {}).
git fetch {} {}', - git_url, colorbox_a, git_r= epo, git_tag), - }) else: message.status_tags.append({ "title": format_html("Patches applied successfully= "), "type": "info", "char": "G", }) - message.extra_status.append({ - "kind": "good", - "html": format_html('Patches applied successfully = ({})', - colorbox_a), - "extra": colorbox_div, - "id": "gitlog" - }) if request.user.is_authenticated: if message.get_property("git.apply-failed") !=3D None or \ message.get_property("git.need-apply") =3D=3D None: @@ -195,6 +177,30 @@ class GitModule(PatchewModule): "class": "warning", }) =20 + def render_result(self, result): + if result.status =3D=3D 'pending': + return None + + if result.log_url is not None: + html_log_url =3D result.log_url + "?html=3D1" + colorbox_a =3D format_html('apply log', + html_log_url, result.log_url) + if result.status =3D=3D 'failed': + return format_html('Failed in applying to current master (= {})', title, colorbox_a) + else: + if 'url' in result.data: + s =3D format_html('tree, {}', resul= t.data['url'], colorbox_a) + else: + s =3D colorbox_a + s =3D format_html('Patches applied successfully ({})', s) + if 'repo' in result.data and 'tag' in result.data: + git_repo =3D result.data['repo'] + git_tag =3D result.data['tag'] + if git_tag.startswith('refs/tags/'): + git_tag =3D git_tag[5:] + s +=3D format_html('
git fetch {} {}'= , git_repo, git_tag) + return s + def prepare_project_hook(self, request, project): if not project.maintained_by(request.user): return --=20 2.17.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Mon Apr 29 09:35:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 152447174240290.36504637375617; Mon, 23 Apr 2018 01:22:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D98590C7A; Mon, 23 Apr 2018 08:22:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0B0E03ACF; Mon, 23 Apr 2018 08:22:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2E2944CAA1; Mon, 23 Apr 2018 08:15:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3N8Fp0j012995 for ; Mon, 23 Apr 2018 04:15:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id D018A6E6FF; Mon, 23 Apr 2018 08:15:51 +0000 (UTC) Received: from mx1.redhat.com (ext-mx19.extmail.prod.ext.phx2.redhat.com [10.5.110.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C88DC17596 for ; Mon, 23 Apr 2018 08:15:43 +0000 (UTC) Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CAC63312C02A for ; Mon, 23 Apr 2018 08:14:19 +0000 (UTC) Received: by mail-wr0-f175.google.com with SMTP id w3-v6so38575807wrg.2 for ; Mon, 23 Apr 2018 01:14:19 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id x17sm6468901edx.53.2018.04.23.01.14.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 01:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=KB8dlOjz/RgBBaXjJA72AWk0Ux2vXzim9N2M4jfGgms=; b=bJ/0fx5Jz4WODu1RRqwfsbUQoz2RLcZ7K2UdV18tCWbiFHLQzdBQ26XD6O6NmWqi46 gCBX7CTA9MgvTQJ/dFSFRGHGDHKbKOdDoMCCLyzBgqqxD57assJeRv3nlbNUuXhO51RV zVFhbEDfd8xjsgKrnEJPVhvMosEkaufKH9WvDkzohoPbrEQuPBUUxsaceHSVyXrATjer lx8sJqOhScT0FG1TrOjIvUUyS2nMBqQ9g09R0o4TMA1hL6emC7v4iugnLf0/NQnAKaoj lVu2zI6GEiXddYLQce2SL062qGsGNFzPEjra9fViIXyeB5K/cF0te0dY/g6OzHPFO8Ju 8bjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=KB8dlOjz/RgBBaXjJA72AWk0Ux2vXzim9N2M4jfGgms=; b=knW5+WfYIRjIMumjd4wxqA441/bTwCXL3A/mf3gl/b6BbJJJFoB3ruCqPw7x0Gx5pn UAy5rkm99TfI1bF1IF6k9pCd56o5cPB44OQ+yJXto1O9c61Rxw3twZkZq34lC/M3I8In 4BD6zf1jaH93/o/qyHzA8Xl69NTFIBSqFmDaREagRzh6zWCmfND9I6iCssxb0PdNVCtb fMgn6Hf8A3NFYQUTEN64nksYGIW+7/y/AjwefnMX2TP4Abu0xiIpixhZuolS0sgSYT9E 2l9JySGNJ940eb4JEfL6tBKhsJBQf3n90GG5nXDRAXzfaDyCUFpqIOO95jooQq59BFzP Y+7A== X-Gm-Message-State: ALQs6tCCVRYmFxrrAbLDqQ6VRpfOMki8t1oSytRy7y9MRva7tIUSGfWt WdRVNnau9Ag7Ef/Q4+se/Zh7aJlP X-Google-Smtp-Source: AIpwx49vV25ZkVb5nc3mB4Kg+Ocua85uwXRsIIOWTLxjFVAoCoNS7XYu+8WASQ6j/52I0PZ09BPiKg== X-Received: by 10.80.243.24 with SMTP id p24mr21606384edm.144.1524471258152; Mon, 23 Apr 2018 01:14:18 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 10:14:14 +0200 Message-Id: <20180423081415.15099-4-pbonzini@redhat.com> In-Reply-To: <20180423081415.15099-1-pbonzini@redhat.com> References: <20180423081415.15099-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 23 Apr 2018 08:14:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 23 Apr 2018 08:14:20 +0000 (UTC) for IP:'209.85.128.175' DOMAIN:'mail-wr0-f175.google.com' HELO:'mail-wr0-f175.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.35 (DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.175 mail-wr0-f175.google.com 209.85.128.175 mail-wr0-f175.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.48 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 3/4] testing: add rendering of Results X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 23 Apr 2018 08:22:21 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" --- mods/testing.py | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/mods/testing.py b/mods/testing.py index 24d6ff0..8dc4d0a 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -228,22 +228,6 @@ class TestingModule(PatchewModule): ret[tn]["name"] =3D tn return ret =20 - def prepare_testing_report(self, obj): - for pn, p in obj.get_properties().items(): - if not pn.startswith("testing.report."): - continue - tn =3D pn[len("testing.report."):] - failed =3D not p["passed"] - log_url =3D self.reverse_testing_log(obj, tn, html=3DFalse) - html_log_url =3D self.reverse_testing_log(obj, tn, html=3DTrue) - passed_str =3D "failed" if failed else "passed" - html =3D format_html('Test {} {}', - tn, html_log_url, log_url, passed_str) - obj.extra_status.append({ - "kind": "alert" if failed else "good", - "html": html, - }) - def _build_reset_ops(self, obj): if isinstance(obj, Message): typearg =3D "type=3Dmessage" @@ -292,12 +276,12 @@ class TestingModule(PatchewModule): data =3D p.copy() del data['passed'] results.append(Result(name=3D'testing.' + tn, obj=3Dobj, statu= s=3Dpassed_str, - log=3Dlog, log_url=3Dlog_url, request=3D= request, data=3Ddata)) + log=3Dlog, log_url=3Dlog_url, request=3D= request, data=3Ddata, + renderer=3Dself)) =20 def prepare_message_hook(self, request, message, detailed): if not message.is_series_head: return - self.prepare_testing_report(message) if message.project.maintained_by(request.user) \ and message.get_property("testing.started"): message.extra_ops +=3D self._build_reset_ops(message) @@ -321,6 +305,17 @@ class TestingModule(PatchewModule): "char": "T", }) =20 + def render_result(self, result): + if result.status !=3D 'success' and result.status !=3D 'failure': + return None + pn =3D result.name + tn =3D pn[len("testing."):] + failed =3D result.status =3D=3D 'failure' + html_log_url =3D result.log_url + '&html=3D1' + passed_str =3D "failed" if failed else "passed" + return format_html('Test {} {}', + tn, html_log_url, result.log_url, passed_str) + def check_active_testers(self, project): at =3D [] for k, v in project.get_properties().items(): @@ -347,7 +342,6 @@ class TestingModule(PatchewModule): "content_html": self.build_config_html(= request, = project)}) self.check_active_testers(project) - self.prepare_testing_report(project) =20 if project.maintained_by(request.user) \ and project.get_property("testing.started"): --=20 2.17.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Mon Apr 29 09:35:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1524471822002488.6219011111468; Mon, 23 Apr 2018 01:23:42 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7ABA280462; Mon, 23 Apr 2018 08:23:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EDDD878BBF; Mon, 23 Apr 2018 08:23:39 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C2C8B4CA9E; Mon, 23 Apr 2018 08:23:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3N8Mx0e014817 for ; Mon, 23 Apr 2018 04:22:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id B2CEE3ACB; Mon, 23 Apr 2018 08:22:59 +0000 (UTC) Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AC38B3AC8 for ; Mon, 23 Apr 2018 08:22:51 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E905180486 for ; Mon, 23 Apr 2018 08:14:20 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id s18-v6so38558511wrg.9 for ; Mon, 23 Apr 2018 01:14:20 -0700 (PDT) Received: from donizetti.lan (dynamic-adsl-78-12-189-60.clienti.tiscali.it. [78.12.189.60]) by smtp.gmail.com with ESMTPSA id x17sm6468901edx.53.2018.04.23.01.14.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 01:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=U/BvaQmk5wMbWV7tkUBT3vGZSDuCXESmv2G8Ky8CxRQ=; b=maielhRdBbWeyKlAs5KkcKcnpZHTVTjLDxgp5P+6Va5ynqz8HLsWD0gOVsuuj2GiUQ 07+uTLo+we1AG0HG+uwN8WN7E2lVIq1zs6zShSqzlvkRwQ1Vq8zqVAONj3odbUHG8r3t 17lXMFWeBh5Oc/3+XleA0P4O6qvXdbyIB4wDt/s/EBTmNtcBhmWyPa6nEZWp+cKTe6sB tWVNNo5S+07yl+0WEwzaGRsaXYUs2l/h55ISXuuxhXi9VV1AL2q+PLaN8+unWqQVIx2s nfJ4uPPjWLm02n//vsddL5oifM+rlvp+NT54dCQ1jLUBOTXzYMnurTVhGgEjnCLqK/35 05Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=U/BvaQmk5wMbWV7tkUBT3vGZSDuCXESmv2G8Ky8CxRQ=; b=AMNUQM5Dd4uh5UbefjwK69lOaufS6FHZ0Cq7aMcH9BPNsKUSMac+tJlgYpAzUq9cIs 8uoqyec2Vzjza6TQL6AoIAHScGk73WbD5VjVh5TkQnYD08YRzPPtVLvz5+6cTjT02TIG J9Z/qJgH7Z01NVv1xK//3vfl+k7Wp19XPqb/X+3snnbfMOSPd+dpLQuHTuTImMB/Jipy XR6aBgB8POyPsPIfkXtOLT8Y/rsxg0NztddZeGgghUusUon0dpQ9C5y0N5y1cpGeMgaV paJejxJlNpGztTWcxixjKHt7pItpe7Q1eHn9HUEXs/E3195fyoQplvbWFHIOiQ2Wdp01 tYSg== X-Gm-Message-State: ALQs6tD/AZrsBi1AhViBsv4ABpIDI1wMjOxgT4TWOYtpDrpFPeeVQpxC 6l9gSN9ZQxBLP4hZz4TaaYZuBtr3 X-Google-Smtp-Source: AIpwx48dFJI3S4THv0Zg8NQQcaDru+Gt4+TFVMXanXtPKbK/h4qcqbU0FedkxXyVpz5OlwLjGPbPjw== X-Received: by 10.80.161.198 with SMTP id 64mr27764925edk.56.1524471259232; Mon, 23 Apr 2018 01:14:19 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 23 Apr 2018 10:14:15 +0200 Message-Id: <20180423081415.15099-5-pbonzini@redhat.com> In-Reply-To: <20180423081415.15099-1-pbonzini@redhat.com> References: <20180423081415.15099-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:14:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:14:21 +0000 (UTC) for IP:'209.85.128.193' DOMAIN:'mail-wr0-f193.google.com' HELO:'mail-wr0-f193.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.35 (DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.193 mail-wr0-f193.google.com 209.85.128.193 mail-wr0-f193.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 4/4] www: remove extra_status from series detail view, simplify in project detail X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 23 Apr 2018 08:23:40 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Most of the functionality is not used anymore after conversion to Results. Signed-off-by: Paolo Bonzini --- mods/testing.py | 2 +- static/css/base.css | 2 -- www/templates/project-detail.html | 5 +---- www/templates/series-detail.html | 9 --------- www/views.py | 1 - 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/mods/testing.py b/mods/testing.py index 8dc4d0a..83b3914 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -330,7 +330,7 @@ class TestingModule(PatchewModule): if not at: return project.extra_status.append({ - "kind": "running", + "icon": "fa-refresh fa-spin", "html": "Active testers: " + ", ".join(at) }) =20 diff --git a/static/css/base.css b/static/css/base.css index 35fba6e..545aad1 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -137,11 +137,9 @@ h1, h2, h3, .h1, .h2, .h3 { .status-content > .fa { color: #337ab7; } -.status-content.status-alert > .fa, .status-content.status-failure > .fa { color: #CC0000; } -.status-content.status-good > .fa, .status-content.status-success > .fa { color: #009900; } diff --git a/www/templates/project-detail.html b/www/templates/project-deta= il.html index aaccdc0..35ee845 100644 --- a/www/templates/project-detail.html +++ b/www/templates/project-detail.html @@ -52,10 +52,7 @@ {% endfor %} {% for status in project.extra_status %}
- {% if status.icon %} - {% elif status.kind =3D=3D "running" %} - {% elif status.kind =3D=3D "alert" %} - {% elif status.kind =3D=3D "good" %} {% endif %} + {% if status.icon %}{% = endif %}
{{ status.html }}
{% endfor %} diff --git a/www/templates/series-detail.html b/www/templates/series-detail= .html index 9b2db1c..52b8f96 100644 --- a/www/templates/series-detail.html +++ b/www/templates/series-detail.html @@ -65,15 +65,6 @@
{{ result.html }}
{% endfor %} -{% for status in series.extra_status %} -
- {% if status.icon %} - {% elif status.kind =3D=3D "running" %} - {% elif status.kind =3D=3D "alert" %} - {% elif status.kind =3D=3D "good" %} {% endif %} -
{{ status.html }}
-
-{% endfor %} =20 {% if is_head %} {% if series.get_diff_stat %} diff --git a/www/views.py b/www/views.py index b0ccf48..7816024 100644 --- a/www/views.py +++ b/www/views.py @@ -52,7 +52,6 @@ def prepare_message(request, m, detailed): }) # hook points for plugins m.has_other_revisions =3D False - m.extra_status =3D [] m.extra_ops =3D [] m.extra_links =3D [] dispatch_module_hook("prepare_message_hook", request=3Drequest, messag= e=3Dm, --=20 2.17.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel