Merge lp:~intellectronica/launchpad/unexport-task-age-again into lp:launchpad

Proposed by Eleanor Berger
Status: Merged
Approved by: Eleanor Berger
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~intellectronica/launchpad/unexport-task-age-again
Merge into: lp:launchpad
Diff against target: 37 lines (+2/-11)
2 files modified
lib/lp/bugs/interfaces/bugtask.py (+2/-4)
lib/lp/bugs/stories/webservice/xx-bug.txt (+0/-7)
To merge this branch: bzr merge lp:~intellectronica/launchpad/unexport-task-age-again
Reviewer Review Type Date Requested Status
Francis J. Lacoste (community) release-critical Approve
Eleanor Berger (community) code Approve
Review via email: mp+20900@code.launchpad.net

Commit message

Unexport Bugtask.task_age (again).

Description of the change

This branch unexports Bugtask.task_age once again. It got re-introduced with the merge of stable into devel.

To post a comment you must log in.
Revision history for this message
Eleanor Berger (intellectronica) wrote :

rs=deryck

review: Approve (rs)
Revision history for this message
Eleanor Berger (intellectronica) :
review: Approve (code)
Revision history for this message
Francis J. Lacoste (flacoste) :
review: Approve (release-critical)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/bugs/interfaces/bugtask.py'
2--- lib/lp/bugs/interfaces/bugtask.py 2010-02-27 20:20:03 +0000
3+++ lib/lp/bugs/interfaces/bugtask.py 2010-03-09 11:04:34 +0000
4@@ -502,11 +502,9 @@
5 description=_("The age of this task, expressed as the "
6 "length of time between the creation date "
7 "and now."))
8- task_age = exported(
9- Int(title=_("Age of the bug task"),
10+ task_age = Int(title=_("Age of the bug task"),
11 description=_("The age of this task in seconds, a delta between "
12- "now and the date the bug task was created."),
13- readonly=True))
14+ "now and the date the bug task was created."))
15 owner = exported(
16 Reference(title=_("The owner"), schema=Interface, readonly=True))
17 target = exported(Reference(
18
19=== modified file 'lib/lp/bugs/stories/webservice/xx-bug.txt'
20--- lib/lp/bugs/stories/webservice/xx-bug.txt 2010-03-08 09:02:25 +0000
21+++ lib/lp/bugs/stories/webservice/xx-bug.txt 2010-03-09 11:04:34 +0000
22@@ -339,15 +339,8 @@
23 self_link: u'http://api.../debian/+source/mozilla-firefox/+bug/1'
24 status: u'Confirmed'
25 target_link: u'http://api.../debian/+source/mozilla-firefox'
26- task_age: ...
27 title: u'Bug #1 in mozilla-firefox (Debian): "Firefox does not support SVG"'
28
29-Because task age is a dynamic calculation between now and the date_created
30-we will just verify that an integer is returned.
31-
32- >>> print type(bug_one_bugtasks[0]['task_age'])
33- <type 'int'>
34-
35 The collection of bug tasks is not exposed as a resource:
36
37 >>> webservice.get("/bug_tasks").status