Merge lp://qastaging/~salgado/launchpad-work-items-tracker/blueprints-over-time into lp://qastaging/~linaro-automation/launchpad-work-items-tracker/linaro

Proposed by Guilherme Salgado
Status: Merged
Merged at revision: 316
Proposed branch: lp://qastaging/~salgado/launchpad-work-items-tracker/blueprints-over-time
Merge into: lp://qastaging/~linaro-automation/launchpad-work-items-tracker/linaro
Diff against target: 793 lines (+478/-33)
15 files modified
collect (+2/-0)
collect_roadmap (+9/-0)
html-report (+1/-0)
lpworkitems/collect_roadmap.py (+26/-0)
lpworkitems/database.py (+17/-3)
lpworkitems/factory.py (+32/-1)
lpworkitems/models.py (+26/-5)
lpworkitems/models_roadmap.py (+15/-0)
lpworkitems/tests/test_collect.py (+0/-1)
lpworkitems/tests/test_collect_roadmap.py (+23/-5)
lpworkitems/tests/test_factory.py (+1/-1)
lpworkitems/tests/test_models.py (+17/-2)
report_tools.py (+46/-15)
roadmap-bp-chart (+254/-0)
templates/roadmap_lane.html (+9/-0)
To merge this branch: bzr merge lp://qastaging/~salgado/launchpad-work-items-tracker/blueprints-over-time
Reviewer Review Type Date Requested Status
Mattias Backman (community) Approve
Review via email: mp+85921@code.qastaging.launchpad.net

Description of the change

This branch adds a new table which stores the number of blueprints per (day, status, lane). This is then used on the roadmap page to show a graph of blueprints per status/day for the quarter.

To post a comment you must log in.
Revision history for this message
Mattias Backman (mabac) wrote :
Download full text (31.5 KiB)

On Thu, Dec 15, 2011 at 6:58 PM, Guilherme Salgado
<email address hidden> wrote:
> Guilherme Salgado has proposed merging lp:~salgado/launchpad-work-items-tracker/blueprints-over-time into lp:~linaro-infrastructure/launchpad-work-items-tracker/linaro.
>
> Requested reviews:
>  Linaro Infrastructure (linaro-infrastructure)
>
> For more details, see:
> https://code.launchpad.net/~salgado/launchpad-work-items-tracker/blueprints-over-time/+merge/85921
>
> This branch adds a new table which stores the number of blueprints per (day, status, lane). This is then used on the roadmap page to show a graph of blueprints per status/day for the quarter.
> --
> https://code.launchpad.net/~salgado/launchpad-work-items-tracker/blueprints-over-time/+merge/85921
> Your team Linaro Infrastructure is requested to review the proposed merge of lp:~salgado/launchpad-work-items-tracker/blueprints-over-time into lp:~linaro-infrastructure/launchpad-work-items-tracker/linaro.
>
> === modified file 'all-projects'
> --- all-projects        2011-12-07 09:03:27 +0000
> +++ all-projects        2011-12-15 17:57:13 +0000
> @@ -117,8 +117,6 @@
>
>         if opts.debug:
>             extra_collect_args.append("--debug")
> -        else:
> -            extra_collect_args.append("--mail")

This should only be removed on staging. It's just so we don't email
about errors while testing.

>
>         if not collect(source_dir, db_file, config_file, extra_collect_args):
>             sys.stderr.write("collect failed for %s" % project_name)
>
> === modified file 'collect'
> --- collect     2011-12-07 09:03:27 +0000
> +++ collect     2011-12-15 17:57:13 +0000
> @@ -6,6 +6,7 @@
>  # Copyright (C) 2010, 2011 Canonical Ltd.
>  # License: GPL-3
>
> +import datetime
>  import urllib, re, sys, optparse, smtplib, pwd, os, urlparse
>  import logging
>  from email.mime.text import MIMEText
> @@ -755,6 +756,8 @@
>
>     # reset status for current day
>     collector.clear_todays_workitems()
> +    # We can delete all blueprints while keeping work items for previous days
> +    # because there's no foreign key reference from WorkItem to Blueprint.
>     collector.clear_blueprints()
>     collector.clear_metas()
>     collector.clear_complexitys()
>
> === modified file 'collect_roadmap'
> --- collect_roadmap     2011-12-15 12:59:35 +0000
> +++ collect_roadmap     2011-12-15 17:57:13 +0000
> @@ -51,9 +51,15 @@
>     except urllib2.HTTPError, e:
>         print "HTTP error for url '%s': %d" % (url, e.code)
>     except urllib2.URLError, e:
> +<<<<<<< TREE
>         print "Network error for url '%s': %s" % (url, e.reason.args[1])
>     except ValueError, e:
>         print "Data error for url '%s': %s" % (url, e.message)
> +=======

> +        print "Network error: %s" % e.reason.args[1]
> +    except ValueError, e:
> +        print "Data error: %s" % e.message
> +>>>>>>> MERGE-SOURCE
>
>     return data
>
> @@ -269,11 +275,14 @@
>     store = get_store(opts.database)
>     collector = CollectorStore(store, '', error_collector)
>
> +    collector.clear_todays_blueprint_daily_count_per_state()
>     collector.clear_lanes()
>     collector.clear_cards()
>
>     kanban_import(collector, cfg, opt...

326. By Guilherme Salgado

merge linaro branch

327. By Guilherme Salgado

Improve a docstring

328. By Guilherme Salgado

Rework the tests and fix blueprints_over_time()

329. By Guilherme Salgado

Fix blueprints_over_time

330. By Guilherme Salgado

Remove some commented out code

331. By Guilherme Salgado

Re-add a test assertion I accidentally removed

332. By Guilherme Salgado

Remove an unnecessary import

Revision history for this message
Mattias Backman (mabac) wrote :

No more staging artifacts that I can find.

review: Approve
333. By Guilherme Salgado

Create a new function in collect_roadmap which takes care of deleting and recreating the blueprint status per day

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches