Page MenuHomePhabricator

Configure beta wikis and local development environments to use new image suggestions API
Open, Stalled, Needs TriagePublic

Description

Now that we have a new image suggestion API and are using it in production (T306032: Adapt GrowthExperiments to new Image Suggestions API), we need to set up the beta cluster wikis and local development environments for using it. That's blocked on T306349: Public-facing API for querying image suggestion recommendations and submitting user feedback (or the proxying workaround proposed in T306349#8089263). So this task is stalled for now.

Acceptance Criteria

  1. Beta cluster wikis use the new image suggestion API
  2. Documentation exists for local development environments to use the new image suggestion API
Completion checklist

Functionality

  • The patches have been code reviewed and merged
  • The task passes its acceptance criteria

Engineering

  • There are existing and passing unit/integration tests
  • Tests for every involved patch should pass
  • Coverage for every involved project should have improved or stayed the same

Design & QA

  • If the task is UX/Design related: it must be reviewed and approved by the UX/Design team
  • Must be reviewed and approved by Quality Assurance.

Documentation

  • Related and updated documentation done where necessary

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh changed the task status from Open to Stalled.Jul 29 2022, 2:46 PM

There's two parts to this:

  • Search indices on beta cluster wikis are regularly updated such that hasrecommendation:image produces a list of articles that don't have images
  • Beta cluster wikis can talk to the production image suggestion API by proxying their requests through an as-yet-to-be-created API endpoint in GrowthExperiments (T320739: Provide API module in GrowthExperiments to allow querying image suggestion API for titles is related, but we'd need an endpoint that matches the URL used in includes/NewcomerTasks/AddImage/ProductionImageRecommendationApiHandler.php)

Updating the search indices seems like it would be a pain to do. The existing production workflow is probably not easily adapted to beta cluster (cc @Cparle -- does that sound correct?)

Taking a step back, the main goal is to have the AddImage front-end workflow testable on beta cluster for QA purposes (cc @Etonkovidova).

Perhaps what we should do is pick one beta cluster wiki and set up a static task suggester that includes a few sample articles for image recommendations along with data for the AddImage plugin to reference.

The existing production workflow is probably not easily adapted to beta cluster (cc @Cparle -- does that sound correct?)

It does. It'd be v difficult to set up a meaningful workflow for beta without having a full-blown staging environment

Perhaps what we should do is pick one beta cluster wiki and set up a static task suggester that includes a few sample articles for image recommendations along with data for the AddImage plugin to reference.

Sounds fine to me. Thx!