Use testing criteria from https://phabricator.wikimedia.org/T189066
Visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:EditWatchlist
Open the network tab - many API requests are made (one for each missing page). o_O
Not only that.. but for pages that do not exist (red links) the watchstar is unfilled and it's impossible to remove the item from the watchlist.
Expected: No API call should be necessary on this page.
Acceptance criteria
- On the Watchlist, for pages loaded via PHP, no API call for watch status should be necessary. They are on the watchlist so we know they are watched!
- Infinite scroll should trigger 1 API request (as it does currently)
- Watch stars for missing links should be filled
- Hygiene patches should be merged.
Testing criteria
Use testing criteria from https://phabricator.wikimedia.org/T189066
Visit https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:EditWatchlist
- Verify that you can add/remove items from your watchlist (including red links)
- Verify that you watch articles on pages via the top page actions menu.
- Verify that you can watch articles on Special:Nearby and that refreshing the page continues to show the pages as watched
- Verify that you can watch/unwatch articles while making a search