It's impossible to modify a field resource that is a link to another object
Bug #431986 reported by
Leonard Richardson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
To navigate to a field resource you must use the internal name of the field. For instance, a bug assignee is "assignee", not "assignee_link". This is incorrect. lazr.restful should accept "assignee_link" all the time and never accept "assignee".
Not only is the current behavior inconsistent, it makes it impossible to modify field resources that are links to other objects. The traversal code expects "assignee" and the modification code expects "assignee_link". So if you PATCH /firefox/
Related branches
lp:~leonardr/lazr.restful/431986-field-resource-link
Merged
into
lp:lazr.restful
- Paul Hummer (community): Approve
-
Diff: 104 lines5 files modifiedsrc/lazr/restful/NEWS.txt (+6/-0)
src/lazr/restful/_resource.py (+1/-1)
src/lazr/restful/example/base/tests/field.txt (+30/-0)
src/lazr/restful/publisher.py (+9/-0)
src/lazr/restful/version.txt (+1/-1)
Changed in lazr.restful: | |
status: | New → Fix Released |
To post a comment you must log in.