A bug's can_expire attribute is confusing
Bug #595124 reported by
Brad Figg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Brian Murray | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
My example is bug #203251. This bug reached a stage where can_expire was set. If just a comment is added to the bug, can_expire is not unset. If the status of the bug is changed from "Incomplete" to "Triaged" then can_expire *is* unset. However, as soon as the status is set back to "Incomplete" can_expire is set again.
Related branches
lp://qastaging/~brian-murray/launchpad/595124
- Leonard Richardson (community): Approve
-
Diff: 443 lines (+164/-41)12 files modifiedlib/lp/bugs/browser/bugtask.py (+7/-4)
lib/lp/bugs/configure.zcml (+2/-1)
lib/lp/bugs/doc/bug.txt (+6/-6)
lib/lp/bugs/doc/bugtask-expiration.txt (+30/-7)
lib/lp/bugs/interfaces/bug.py (+18/-2)
lib/lp/bugs/model/bug.py (+36/-9)
lib/lp/bugs/model/bugtask.py (+1/-1)
lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt (+16/-6)
lib/lp/bugs/stories/webservice/xx-bug.txt (+42/-0)
lib/lp/bugs/templates/bug-listing-expirable.pt (+3/-3)
lib/lp/bugs/templates/bugtask-index.pt (+1/-1)
lib/lp/bugs/tests/bug.py (+2/-1)
Changed in ubuntu: | |
status: | New → Invalid |
summary: |
- Launchpad's can_expire not being reset when comments added. + Launchpad's can_expire is confusing |
summary: |
- Launchpad's can_expire is confusing + A bug's can_expire attribute is confusing |
Changed in malone: | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → Fix Committed |
milestone: | none → 10.08 |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
bug = launchpad. bugs[203251] last_updated datetime( 2010, 6, 15, 21, 53, 48, 256877, tzinfo=TimeZone(0))
In [3]: bug.can_expire
Out[3]: True
In [4]: bug.date_
Out[4]: datetime.
I wonder how often the can_expire attribute of a bug report is updated.