Merge lp:~adeuring/launchpad/bug-333531-bug-status-expired into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gavin Panella | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~adeuring/launchpad/bug-333531-bug-status-expired | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
533 lines (+183/-44) 11 files modified
lib/lp/bugs/browser/bugtask.py (+7/-5) lib/lp/bugs/browser/tests/test_bugtask.py (+95/-2) lib/lp/bugs/doc/bugtask-expiration.txt (+13/-24) lib/lp/bugs/doc/bugtask-status-workflow.txt (+8/-1) lib/lp/bugs/interfaces/bugtask.py (+10/-2) lib/lp/bugs/model/bugtask.py (+2/-1) lib/lp/bugs/scripts/bugexpire.py (+3/-3) lib/lp/bugs/tests/bugs-emailinterface.txt (+19/-1) lib/lp/bugs/tests/bugtarget-bugcount.txt (+2/-0) lib/lp/bugs/tests/test_bugtask_status.txt (+20/-4) lib/lp/testing/factory.py (+4/-1) |
||||
To merge this branch: | bzr merge lp:~adeuring/launchpad/bug-333531-bug-status-expired | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Abel Deuring (community) | Needs Resubmitting | ||
Review via email: mp+23396@code.launchpad.net |
Description of the change
This branch adds a new bug status "expired" and changes the bug expiry script to set the status of bugs considered to be expired to this status.
Why the integer value 19 for the new status? The method BugTask.
The value 19 keeps the new status "below" those statuses for which a date is implicitly set.
Aside from the obvious change of the bug expiry script I changed the classes BugTaskEditView and BugTaskTableRowView so that the status value "expired" cannot be selected in the web UI: This status should only be set by the expiry script.
tests:
./bin/test -vvt test_bugtask
./bin/test -vvt bugtask-
lint: lots of noise but nothing related to my changes, I think.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/
77: [F0401] Unable to import 'z3c.ptcompat' (No module named z3c.ptcompat)
78: [F0401] Unable to import 'lazr.delegates' (No module named delegates)
79: [F0401] Unable to import 'lazr.enum' (No module named enum)
81: [F0401] Unable to import 'lazr.lifecycle
82: [F0401] Unable to import 'lazr.lifecycle
83: [F0401] Unable to import 'lazr.restful.
84: [F0401] Unable to import 'lazr.restful.
88: [F0401] Unable to import 'canonical.config' (No module named canonical.config)
90: [F0401] Unable to import 'canonical.
91: [F0401] Unable to import 'canonical.
92: [F0401] Unable to import 'canonical.
93: [F0401] Unable to import 'canonical.
94: [F0401] Unable to import 'canonical.
95: [F0401] Unable to import 'canonical.
99: [F0401] Unable to import 'canonical.
101: [F0401] Unable to import 'lp.answers.
102: [F0401] Unable to import 'lp.bugs.
104: [F0401] Unable to import 'lp.bugs.
105: [F0401] Unable to import 'lp.bugs.
107: [F0401] Unable to import 'lp.bugs.
108: [F0401] Unable to import 'lp.bugs.
117: [F0401] Unable to import 'lp.bugs.
118: [F0401] Unable to import 'lp.bugs.
119: [F0401] Unable to import 'lp.bugs.
120: [F0401] Unable to import 'lp.registry.
121: [F0401] Unable to import 'lp.registry.
123: [F0401] Unable to import 'lp.registry.
124: [F0401] Unable to import 'canonical.
126: [F0401] Unable to import 'lp.registry.
127: [F0401] Unable to import 'lp.registry.
128: [F0401] Unable to import 'lp.registry.
129: [F0401] Unable to import 'lp.registry.
130: [F0401] Unable to import 'lp.registry.
131: [F0401] Unable to import 'canonical.
133: [F0401] Unable to import 'canonical.
134: [F0401] Unable to import 'canonical.
137: [F0401] Unable to import 'canonical.
139: [F0401] Unable to import 'canonical.
141: [F0401] Unable to import 'lp.bugs.
142: [F0401] Unable to import 'lp.bugs.
143: [F0401] Unable to import 'canonical.
145: [F0401] Unable to import 'lp.registry.
146: [F0401] Unable to import 'canonical.
148: [F0401] Unable to import 'canonical.
149: [F0401] Unable to import 'canonical.
150: [F0401] Unable to import 'canonical.
151: [F0401] Unable to import 'canonical.
154: [F0401] Unable to import 'canonical.
155: [F0401] Unable to import 'lazr.restful.
157: [F0401] Unable to import 'canonical.
158: [F0401] Unable to import 'canonical.
162: [F0401] Unable to import 'canonical.
163: [F0401] Unable to import 'canonical.
166: [F0401] Unable to import 'canonical.
168: [F0401] Unable to import 'lp.registry.
1196: [E1002, BugTaskEditView
1293: [E1002, BugTaskEditView
3817: [E1002, BugTaskBreadcru
lib/lp/
12: [F0401] Unable to import 'canonical.
13: [F0401] Unable to import 'canonical.
15: [F0401] Unable to import 'canonical.
16: [F0401] Unable to import 'canonical.testing' (No module named canonical.testing)
18: [F0401] Unable to import 'lp.bugs.browser' (No module named lp.bugs.browser)
19: [F0401] Unable to import 'lp.bugs.
21: [F0401] Unable to import 'lp.bugs.
22: [F0401] Unable to import 'lp.testing' (No module named lp.testing)
29: [E1002, TestBugTasksAnd
218: [E1002, TestBugTaskEdit
lib/lp/
54: [F0401] Unable to import 'lazr.enum' (No module named enum)
57: [F0401] Unable to import 'canonical.
58: [F0401] Unable to import 'canonical.
61: [F0401] Unable to import 'lp.bugs.
63: [F0401] Unable to import 'lp.soyuz.
64: [F0401] Unable to import 'canonical.
65: [F0401] Unable to import 'lp.registry.
66: [F0401] Unable to import 'canonical.
67: [F0401] Unable to import 'canonical.
68: [F0401] Unable to import 'canonical.
69: [F0401] Unable to import 'canonical.
70: [F0401] Unable to import 'lazr.restful.
71: [F0401] Unable to import 'lazr.restful.
76: [F0401] Unable to import 'lazr.restful.
1097: [F0401, BugTaskSearchPa
1162: [F0401, BugTaskSearchPa
1212: [C0322, BugTaskSearchPa
search_
^
lib/lp/
17: [F0401] Unable to import 'lazr.lifecycle
19: [F0401] Unable to import 'canonical.config' (No module named canonical.config)
20: [F0401] Unable to import 'lazr.lifecycle
21: [F0401] Unable to import 'canonical.
22: [F0401] Unable to import 'lp.bugs.
23: [F0401] Unable to import 'canonical.
24: [F0401] Unable to import 'canonical.
Looks good :)
The conversation we had on IRC:
<allenap> adeuring: Is there going to be another branch (or two) to add a date_expired field to IBugTask? owner) to avoid the removeSecurityP roxy() call? product_ owner) roxy() hack could be put in LaunchpadObject Factory. makeProduct( ..., bug_supervisor= None). tus(), so consider using that rather than removing the proxy. Expired/ ViewStatusField . If you know where, consider removing it.
<adeuring> allenap: argh... i forgot completely about that...
<adeuring> yes, there _should_ be a branch...
<allenap> adeuring: I think the bug number in the branch name is wrong.
<adeuring> allenap: right...
<allenap> adeuring: Line 75, could you login(product_
<allenap> adeuring: Or even login_person(
<adeuring> allenap: in theory, yes. Problem that things become then more complicated: the owner can't assign another person as the supervisor, so I need to create a team, let another person join that team and finally run the test with that other user
<adeuring> allenap: I was too lazy to do all that ;)
<allenap> adeuring: Argh. Leave it then :)
<adeuring> allenap: OK ;)
<allenap> adeuring: Perhaps the removeSecurityP
<adeuring> allenap: right, good idea!
<allenap> adeuring: Line 124, the bug supervisor or the product owner should be able to call transitionToSta
<adeuring> allenap: right
<allenap> adeuring: 136s/Epired/
<adeuring> allenap: fixed
<allenap> adeuring: One last thing. There's probably some doc test out there that does a similar thing to TestBugTaskEdit
<adeuring> allenap: I did not find anything like that...
<adeuring> that's why I added it ;)