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)

defect

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.

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).

Blocks: 1787966
No longer blocks: 1787966
See Also: → 1787966
Attached file GitHub Pull Request
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.

Attachment

General

Created:
Updated:
Size: