Merge lp:~salgado/launchpad-work-items-tracker/linaro-use-lp-workitems-property into lp:~linaro-automation/launchpad-work-items-tracker/linaro
Proposed by
Guilherme Salgado
Status: | Merged |
---|---|
Approved by: | Mattias Backman |
Approved revision: | 334 |
Merged at revision: | 333 |
Proposed branch: | lp:~salgado/launchpad-work-items-tracker/linaro-use-lp-workitems-property |
Merge into: | lp:~linaro-automation/launchpad-work-items-tracker/linaro |
Diff against target: |
52 lines (+19/-9) 1 file modified
collect (+19/-9) |
To merge this branch: | bzr merge lp:~salgado/launchpad-work-items-tracker/linaro-use-lp-workitems-property |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mattias Backman (community) | Approve | ||
Linaro Infrastructure | Pending | ||
Review via email: mp+96152@code.launchpad.net |
Description of the change
Change lp_import_
API property instead of the whiteboard.
Soon we'll be migrating all work items in LP from the whiteboard to a new
field. This will allow us to implement things like
https:/
Because of that, lp-wi-tracker will have to extract work items from the new
property (workitems_text), which uses the existing format for work items.
To post a comment you must log in.
> Because of that, lp-wi-tracker will have to extract work items from the new
> property (workitems_text), which uses the existing format for work items.
It just struck me that we don't use exactly the same format. I thought it would be redundant to have the leading "Work items:" line in the Work Items text area, so I omitted that. Perhaps we should tweak workitems_text to include that line for work item blocks that are not milestoned.
If we don't do that we need to do
if bp.workitems_text:
in_workitems_ block = True text.splitlines ():
for l in bp.workitems_
if not in_workitems_block:
so we assume we're in a workitems_block from the beginning of the workitems_text field. If there are no non-milestoned work items, the field would of course start with a "Work items for 2012.x:" line but then the entire bp should be retargetted.