Page MenuHomePhabricator

[S] Image recommendations - API improvements
Closed, ResolvedPublic

Description

  1. Because the image recommendations call takes a while, we should ensure we are only fetching them if we already know the user qualifies (logged in, 50+ edits, not blocked). This will make the app more efficient and reduce server load. Currently we are making the image recommendations call for everyone, but hiding the card if they don't qualify.
  2. Sometimes image recommendations returned actually do have an article image. We should filter out recommendations against the pageimages MediaWiki API property to confirm there is no existing image for that article. (Background: https://wikimedia.slack.com/archives/CEKKLRDT2/p1714584170403229)

Testing Notes

Please regression test Explore feed suggested edits card appearance, and confirm there are no image suggestions for articles that already have an image.

Event Timeline

Tsevener renamed this task from Image recommendations - API improvements to [S] Image recommendations - API improvements.Wed, May 1, 9:56 PM
Tsevener updated the task description. (Show Details)
HNordeenWMF claimed this task.
HNordeenWMF changed the task status from Unknown Status to Resolved.Tue, May 7, 10:17 PM