[API] Add profile photo thumbnail to /users endpoint

VERIFIED FIXED

Status

VERIFIED FIXED
4 years ago
4 years ago

People

(Reporter: williamr, Assigned: rmaceissoft)

Tracking

2014-09.1

Details

(Whiteboard: [kb=1485115] )

(Reporter)

Description

4 years ago
Consumers of the Mozillians API would benefit from being able to access a thumbnail of a user's profile photo. Currently, the API only provides the full-resolution image. The full image is not needed for many use cases, plus it uses more bandwidth and causes aspect ratio issues [0].

We already cache thumbnails. Let's add the thumbnail to the /users endpoint so it is available to Mozilla apps.

[0] https://github.com/mozilla/mozmoderator/issues/70
(Reporter)

Updated

4 years ago
Whiteboard: [kb=1485115]
Assignee: nobody → rmaceissoft
(Assignee)

Comment 1

4 years ago
I just created a PR (https://github.com/mozilla/mozillians/pull/1079) I replaced the full-resolution-image by the thumbnail. is that fine? or do you want to return both images?

Comment 2

4 years ago
Commits pushed to master at https://github.com/mozilla/mozillians

https://github.com/mozilla/mozillians/commit/bbbb0b74ec083912f81cc18830933dbbe53df8ae
[Fix bug 1059076] Add profile photo thumbnail to /users endpoint.

https://github.com/mozilla/mozillians/commit/e3c98152cb12b03b4454ba71632da7a7e0041684
Merge pull request #1087 from johngian/1059076-thumbnails

[Fix bug 1059076] Add profile photo thumbnail to /users endpoint.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED

Updated

4 years ago
Version: other → next
Verified on stage.

The response from the following request [0] with valid app_name, app_key and email includes the photo_thumbnail field.

[0] /api/v1/users/?app_name=foobar&app_key=12345&email=test@example.com
Status: RESOLVED → VERIFIED
Version: next → 2014-09.1
You need to log in before you can comment on or make changes to this bug.