Merge lp:~wgrant/launchpad/bug-830849 into lp:launchpad
Proposed by
William Grant
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13754 |
Proposed branch: | lp:~wgrant/launchpad/bug-830849 |
Merge into: | lp:launchpad |
Prerequisite: | lp:~wgrant/launchpad/bug-830803 |
Diff against target: |
304 lines (+73/-101) 3 files modified
lib/lp/bugs/model/bugtask.py (+43/-97) lib/lp/bugs/model/tests/test_bugsummary.py (+7/-4) lib/lp/bugs/model/tests/test_bugtask.py (+23/-0) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-830849 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | Approve | ||
Review via email: mp+72379@code.launchpad.net |
Commit message
Merge validate_
Description of the change
Now that all writes to BugTask's target key attributes go through transitionToTarget, we can merge the ugly Storm column validators into the method.
validate_
validate_
To post a comment you must log in.
Thank you for branch. The code looks same to me but I have two issues with style:
Multi-line if conditions don't read well as it is hard to distinguish the condition from the body of the statement. Please either use a variable for the condition or apply an extra step of indentation for the second line of the condition.
I, too, favor short code and short names for variables that are short-lived, but single-letter variable names are still an abomination. ;-) No reason not to use "target" instead of t. And while you are at it, I don't think "distroseries" is *that* long that it needs to be shortened.