Exporting task_age breaks editing over the API unless you PATCH within a second of GET
Bug #515747 reported by
James Westby
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
James Westby |
Bug Description
Bug 510985 exported task_age, but this means that it is part of the etag
calculation. This means that the etag changes every second. This means
that if you cross a second boundary between doing the GET on a bug task
and doing a PATCH on it you get a 412. This makes editing bugs with the
API all but impossible.
Thanks,
James
Related branches
lp:~james-w/launchpad/kill-task_age
Merged
into
lp:launchpad
- Francis J. Lacoste (community): Approve (release-critical)
- Eleanor Berger (community): Approve
-
Diff: 37 lines (+2/-11)2 files modifiedlib/lp/bugs/interfaces/bugtask.py (+2/-4)
lib/lp/bugs/stories/webservice/xx-bug.txt (+0/-7)
Changed in malone: | |
milestone: | none → 10.02 |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In hindsight, I think adding BugTask.age wasn't such a good idea after all. It's easy to calculate it locally anyway. Let's get rid of it to unblock editing bugs using the API.