Page MenuHomePhabricator

API Underpinnings for watchlist
Closed, ResolvedPublic

Description

Background
The iOS team is bringing the watchlist feature to the app. This will enable users to monitor and track article changes on their selected articles. The engineers need to work on the API underpinnings as the designers work with the designs.

Task

  • Create all the non-UI mechanics needed to fetch and display Watchlists.
  • Technical consideration: How many calls should the API make?

Requirements
The functions that are required should include (but not limited to):

  • Retrieving the current user's watchlist, with continuation.
  • Adding an article to the current user's watchlist.
  • Removing an article from the current user's watchlist.
  • Should have items from all the language wikis that the user has selected on the app.

References
Mediawiki - API Details

Related Objects

StatusSubtypeAssignedTask
ResolvedJTannerWMF
ResolvedNone

Event Timeline

@RWambua-WMF please check in with @Dmantena to ensure he understands this to mean the API provides 500 edits in a call and when Android implemented it had to test it to make sure it wasn't trying to do a continuous pull to show the entire list

Technical consideration: How many calls should the API make?

Note: Updated above PRs with Undo and Rollback calls.

Merged - this will be tested with the UI tickets.

@Tsevener Forgive me if I'm missing something, but a watchlist data element we're missing in WKWatchlist/WKWatchlistService is the per revision byte size.

Tsevener subscribed.

Final API fixes are wrapped up - this will be tested with the UI tickets.