Closed
Bug 1787954
Opened 2 years ago
Closed 2 years ago
Certain fields missing from get user API when added by extensions and specifically requested with include_fields
Categories
(bugzilla.mozilla.org :: API, defect)
bugzilla.mozilla.org
API
Tracking
()
RESOLVED
FIXED
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file)
The way extensions add fields to the user data that is returned by the GET /rest/user/<user> API endpoint can break if the client asks for those fields specifically. This is due to the id
attribute missing for each each user result to be returned. I will refactor the way the extension hook works by returning a list of user objects as well as the resulting data that will be returned. This will make sure that the id
attribute and others that might be needed will always be accessible by the extension code.
Comment 1•2 years ago
|
||
Based on your explanation, I found that the fields will not be missing if I request the id
field (e.g., include_fields=id,requests
).
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•