[Pkg-debile-commits] [debile-web] 13/14: Improve the links to the reports

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Sep 2 15:52:53 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch update-usuability
in repository debile-web.

commit 567fd4181080b353fef9a76cb9e052f6cbceb730
Author: Sylvestre Ledru <sylvestre at debian.org>
Date:   Mon Sep 2 12:58:36 2013 +0200

    Improve the links to the reports
---
 debileweb/blueprints/frontend.py |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index e87b6d2..6aad5d1 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -250,9 +250,10 @@ def source(package_name="", owner_name="fred", package_version="latest", run_num
     for j in source_jobs:
         info = {}
         info['job'] = j
-        info['job_link'] = '/report/%s#full_log' % j.id
+        info['job_link'] = '/report/%s/%s/%s/%s#full_log' % (package_name, this_version, j.type, j.id)
         if j.type == "clanganalyzer":
             # Special case (I know) for clang to point directly to the HTML report
+            # TODO: update the path to a nicer one (like job_link)
             info['job_report_link'] = '/static-job-reports/%s/scan-build/' % j.id
         else:
             info['job_report_link'] = info['job_link']
@@ -280,7 +281,7 @@ def source(package_name="", owner_name="fred", package_version="latest", run_num
     for j in binaries_jobs:
         info = {}
         info['job'] = j
-        info['job_link'] = '/report/%s' % j.id
+        info['job_link'] = '/report/%s/%s/%s/%s#full_log' % (package_name, this_version, j.type, j.id)
         if j.machine:
             info['job_machine_link'] = '/machine/%s' % j.machine.name
         if not j.is_finished():
@@ -338,7 +339,8 @@ def hacker(hacker_login):
 
 
 @frontend.route("/report/<job_id>/")
-def report(job_id):
+ at frontend.route("/report/<package_name>/<version>/<job_type>/<job_id>/")
+def report(job_id, package_name="", version="", job_type=""):
 # TODO : design architecture Pending, firewose ?
 #    report = Report.load(report_id)
     config = Config()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git



More information about the Pkg-debile-commits mailing list