Merge lp:~deryck/launchpad/allow-reporter-fixed-released-unsetting-664096 into lp:launchpad
Proposed by
Deryck Hodge
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gavin Panella | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 11849 | ||||
Proposed branch: | lp:~deryck/launchpad/allow-reporter-fixed-released-unsetting-664096 | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~deryck/launchpad/lock-fix-released-status-126516 | ||||
Diff against target: |
98 lines (+52/-8) 2 files modified
lib/lp/bugs/model/bugtask.py (+8/-5) lib/lp/bugs/model/tests/test_bugtask_status.py (+44/-3) |
||||
To merge this branch: | bzr merge lp:~deryck/launchpad/allow-reporter-fixed-released-unsetting-664096 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+39754@code.launchpad.net |
Commit message
Allow the bug reporter to transition away from Fix Released bug task status.
Description of the change
This is the final branch required to completely fix bug 664096. Previously, the tests were updated in a branch and then the status was locked so that only bug supervisor or owner could transition away from Fix Released. This branch adds the ability for the bug reporter to transition away from fix released, so that the bug can be reopened by the reporter if it is not fixed.
Thanks for the review!
To post a comment you must log in.
Cool :) A few trivial comments, that's it.
[1]
+ elif (user.inTeam( self.pillar. bug_supervisor) or
user. inTeam( self.pillar. owner) or
user. id == celebrities. bug_watch_ updater. id or
user. id == celebrities. bug_importer. id or
Not your code, but the following lines don't line up.
[2]
+ user == self.bug.owner):
Here (and elsewhere) inTeam() is not used. Works but seems odd to not
use inTeam() because it will DTRT for individuals and teams.
[3]
+ layer = LaunchpadFuncti onalLayer
You might be able to get away with DatabaseFunctio nalLayer here.
[4]
+ self.assertEqual( canTransitionTo Status( CONFIRMED, self.reporter),
+ self.task.
+ BugTaskStatus.
+ True)
self.assertTrue() would work here too.