From patchwork Wed Sep 26 15:30:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milo Casagrande X-Patchwork-Id: 11738 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0C81424140 for ; Wed, 26 Sep 2012 15:30:25 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9B9ACA18BA1 for ; Wed, 26 Sep 2012 15:30:24 +0000 (UTC) Received: by ieje10 with SMTP id e10so1672175iej.11 for ; Wed, 26 Sep 2012 08:30:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=EIt93eDH1I5ldHhEaoWJblc5rechfWteJP3XmqomOkk=; b=gZGKGpQI6/1uzoc2hxLm0k2xOMyg5Ds7ZvOTtLTuWpcniCTAgB5GtE4jy9azJ3syaM aGJmV53AY+Dg7gXK9kddbZ7d2qMVOZzj2J3YjawMC8BYNoQJGy1KV21NYXhfvAulNLeK lJqWyoXkb829vK4Nv+JHOcdvcFMnT08DRo+vE/5Wp9QBuz3bO/QcTqy95B0fYb8ozGkM Zbpju97TYxu+ssOFJVtz/gMnaz1kHYAi/jzsDUIL+6gJ0URRp+svp7BDVfEXltIVtFRf jevo5kv54MsCbQdZZk13iV+kw6DFXrI29Unrcg+7nxSGsjRogmQZKtSciX2HPJAxI4Wx l12A== Received: by 10.50.150.198 with SMTP id uk6mr806264igb.43.1348673423820; Wed, 26 Sep 2012 08:30:23 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp362338igc; Wed, 26 Sep 2012 08:30:22 -0700 (PDT) Received: by 10.180.104.197 with SMTP id gg5mr2314923wib.9.1348673421838; Wed, 26 Sep 2012 08:30:21 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id i9si8782603wiy.24.2012.09.26.08.30.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 08:30:21 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TGtZ7-0007uz-0C for ; Wed, 26 Sep 2012 15:30:21 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id A511CE0405 for ; Wed, 26 Sep 2012 15:30:20 +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: 349 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 349: Fixed wrong parameter for getting test names. Message-Id: <20120926153020.21136.69659.launchpad@ackee.canonical.com> Date: Wed, 26 Sep 2012 15:30:20 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16033"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 63caec2351ba1dbda2e5ffd81e4745ed592d6a43 X-Gm-Message-State: ALoCoQlONEcezzQSGgJoz8JBMCBCWE6v6G+FLE8rgDzjeiVLxQRR/YTiinQxH3i58yd/bc4lM/cr ------------------------------------------------------------ revno: 349 fixes bug: https://launchpad.net/bugs/1052545 committer: Milo Casagrande branch nick: bug1052545 timestamp: Wed 2012-09-26 16:42:36 +0200 message: Fixed wrong parameter for getting test names. modified: dashboard_app/xmlrpc.py --- 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/xmlrpc.py' --- dashboard_app/xmlrpc.py 2012-09-26 13:55:57 +0000 +++ dashboard_app/xmlrpc.py 2012-09-26 14:42:36 +0000 @@ -408,7 +408,7 @@ 'is_deserialized': bundle.is_deserialized } for bundle in bundle_stream.bundles.all().order_by("uploaded_on")] - @xml_rpc_signature('str', 'str') + @xml_rpc_signature('str') def get_test_names(self, device_type=None): """ Name @@ -433,10 +433,10 @@ for test in Test.objects.filter( test_runs__attributes__name='target.device_type', test_runs__attributes__value=device_type).distinct(): - test_names.append(test.name) + test_names.append(test.test_id) else: for test in Test.objects.all(): - test_names.append(test.name) + test_names.append(test.test_id) return test_names def deserialize(self, content_sha1):