From patchwork Thu Sep 5 16:01:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 19778 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD52924869 for ; Thu, 5 Sep 2013 16:01:29 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id ii20sf2254873qab.5 for ; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=5M4AzNpJ00+6zEsGfW9/oE26xa/fexfcbrzSxyy9Oco=; b=Jeb0IodaXzHssDMUUvOFcg6Y9WlvYNdM3aeepUnxDzVFGq0z2p7jU6kEozK4/mnA7g xE7GsUy1SvWIFC/cj+BmT8mBHiJfmv7/d85Z5BSjBPHH9ScGnPp72U6Dm7/3TzctqzwN FXtAL+gZ0oezAzS+dF279xDkjsX792GYZqCaH5MeeKPKS5cbLIeBQmkqzfAvYjfBhdCW dWt+aNByN9uamQi3YO7xXivm1DSam8+I1AK8An627QVyGzucxKyKlzwkrdYpZtagokCN VFQGsHjn6ODT/GfHdJOd6yORIb06+NTexd1KuftpDH5atADXP3uu5KfHwCI9YpmFwlZ/ n3JA== X-Received: by 10.236.108.233 with SMTP id q69mr3301755yhg.11.1378396889422; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.59.14 with SMTP id v14ls498613qeq.87.gmail; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) X-Received: by 10.58.97.238 with SMTP id ed14mr715526veb.34.1378396889351; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id k11si7425319vcm.73.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 09:01:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id db12so662592veb.8 for ; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) X-Gm-Message-State: ALoCoQnsYzz9eyVTOLRZuqfC2EZaUFnubN5htkuQh+NVVWo+N2OBIaSYgA/hvmmEoDCYSPtKkxNH X-Received: by 10.221.40.10 with SMTP id to10mr6356512vcb.22.1378396889248; Thu, 05 Sep 2013 09:01:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp288148vcz; Thu, 5 Sep 2013 09:01:28 -0700 (PDT) X-Received: by 10.194.235.138 with SMTP id um10mr7641454wjc.30.1378396887953; Thu, 05 Sep 2013 09:01:27 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ei2si3403453wic.58.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 09:01:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VHbzr-0002jo-58 for ; Thu, 05 Sep 2013 16:01:27 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 14EF7E94E4 for ; Thu, 5 Sep 2013 16:01:27 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 418 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 418: Fix for bug 1220416 Message-Id: <20130905160127.17889.79751.launchpad@ackee.canonical.com> Date: Thu, 05 Sep 2013 16:01:27 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16758"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: a0ff22ad686c4e8596c588d4c7819045d9261136 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Fu Wei (fu-wei) ------------------------------------------------------------ revno: 418 [merge] committer: Tyler Baker branch nick: lava-dashboard timestamp: Thu 2013-09-05 09:00:38 -0700 message: Fix for bug 1220416 modified: dashboard_app/models.py dashboard_app/templates/dashboard_app/_test_run_list_table.html --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/models.py' --- dashboard_app/models.py 2013-09-02 20:36:10 +0000 +++ dashboard_app/models.py 2013-09-05 16:00:38 +0000 @@ -1029,6 +1029,21 @@ class Meta: ordering = ['-import_assigned_date'] + def show_device(self): + all_attributes = self.attributes.all() + for one_attributes in all_attributes: + if one_attributes.name == "target": + return one_attributes.value + + for one_attributes in all_attributes: + if one_attributes.name == "target.hostname": + return one_attributes.value + + for one_attributes in all_attributes: + if one_attributes.name == "target.device_type": + return one_attributes.value + return "Target Device" + class TestRunDenormalization(models.Model): """ === modified file 'dashboard_app/templates/dashboard_app/_test_run_list_table.html' --- dashboard_app/templates/dashboard_app/_test_run_list_table.html 2013-08-14 11:32:27 +0000 +++ dashboard_app/templates/dashboard_app/_test_run_list_table.html 2013-09-05 10:26:43 +0000 @@ -14,11 +14,7 @@ {% for test_run in test_run_list %} - {% for attribute in test_run.attributes.all %} - {% if attribute.name == "target" %} - {{ attribute.value }} - {% endif %} - {% endfor %} + {{ test_run.show_device }} {{ test_run.test }} results {{ test_run.test }} {{ test_run.get_summary_results.pass }}