Merge lp:~mabac/launchpad-work-items-tracker/misc-clean-up into lp:~linaro-automation/launchpad-work-items-tracker/linaro

Proposed by Mattias Backman
Status: Merged
Merged at revision: 324
Proposed branch: lp:~mabac/launchpad-work-items-tracker/misc-clean-up
Merge into: lp:~linaro-automation/launchpad-work-items-tracker/linaro
Diff against target: 62 lines (+18/-5) (has conflicts)
3 files modified
collect_roadmap (+15/-0)
report_tools.py (+2/-3)
templates/roadmap_lane.html (+1/-2)
Text conflict in collect_roadmap
To merge this branch: bzr merge lp:~mabac/launchpad-work-items-tracker/misc-clean-up
Reviewer Review Type Date Requested Status
Данило Шеган (community) Approve
Review via email: mp+86680@code.launchpad.net

Description of the change

Latest kiko requests.

To post a comment you must log in.
325. By Mattias Backman

Get the Papyrs link from custom_field_2 in Kanbantool.

Revision history for this message
Данило Шеган (danilo) wrote :

There's a conflict marker in now.

Also, to move the "Lane:" to the same line as the h1, you can output it to HTML before it and set the style to "float: right".

Otherwise, looks good to land.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'collect_roadmap'
2--- collect_roadmap 2011-12-21 14:05:45 +0000
3+++ collect_roadmap 2011-12-22 11:04:11 +0000
4@@ -138,6 +138,7 @@
5 model_card.sponsor = get_json_item(task['task'],
6 'custom_field_1')
7
8+<<<<<<< TREE
9 external_link = task['task']['external_link']
10 if external_link is not None and external_link is not '':
11 model_card.url = unicode_or_None(external_link)
12@@ -148,6 +149,20 @@
13 model_card.acceptance_criteria = get_json_item(
14 papyrs_data, 'acceptance_criteria')
15 collector.store_card(model_card)
16+=======
17+ external_link = task['task']['custom_field_2']
18+ if external_link is not None and external_link is not '':
19+ model_card.url = unicode_or_None(external_link)
20+ dbg('Getting Papyrs information from %s.' % external_link)
21+ papyrs_data = papyrs_import(collector, external_link)
22+ model_card.description = get_json_item(papyrs_data,
23+ 'description')
24+ model_card.acceptance_criteria = get_json_item(
25+ papyrs_data, 'acceptance_criteria')
26+ collector.store_card(model_card)
27+ else:
28+ dbg("Task '%s' does not have a status." % task['task']['name'])
29+>>>>>>> MERGE-SOURCE
30
31
32 def kanban_import(collector, cfg, board_id, api_token):
33
34=== modified file 'report_tools.py'
35--- report_tools.py 2011-12-19 14:19:45 +0000
36+++ report_tools.py 2011-12-22 11:04:11 +0000
37@@ -207,9 +207,8 @@
38 def roadmap_pages(my_path, database, basename, config, lane, root=None):
39 cfg = load_config(config)
40 fh = open(basename + '.html', 'w')
41- # XXX fix this. the intention is to have the chart in the same dir as the
42- # html. This is not essential but makes linking in roadmap_lane.html easier
43- chart_name = '/'.join(basename.split('/')[:-1]) + '/current_quarter.svg'
44+ chart_path, _ = os.path.split(basename)
45+ chart_name = os.path.join(chart_path, 'current_quarter.svg')
46 try:
47 args = [os.path.join(my_path, 'html-report'), '-d', database]
48 args += ['--report-type', 'roadmap_page']
49
50=== modified file 'templates/roadmap_lane.html'
51--- templates/roadmap_lane.html 2011-12-20 10:26:10 +0000
52+++ templates/roadmap_lane.html 2011-12-22 11:04:11 +0000
53@@ -13,8 +13,7 @@
54 <h1>${title()}</h1>
55
56 <p style="text-align: right; color: green; font-size: 13pt">
57-Select calendar quarter to view:<br>
58-<select name="laneselect" onchange="window.location=this.value;">
59+Lane:&nbsp;<select name="laneselect" onchange="window.location=this.value;">
60 % for lane in lanes:
61 <option value="${lane.name}.html"${' selected="selected"' if lane.name == lane_title else ''}>${lane.name}${' (current)' if lane.is_current else ''}</option>
62 % endfor

Subscribers

People subscribed via source and target branches