Page MenuHomePhabricator

mobile watchlist shows deleted articles in the full list with a white star
Closed, ResolvedPublic


To reproduce:

0. Log in.

  1. Add a non-existent article to your watchlist.
  2. Open the watchlist in list view:
  3. Search for the name of the deleted article.

Observed: The star in that line is white.

Expected: The star in that line is supposed to be green. The article is in the watchlist, so it should be marked just like all others. The red color of the link already indicates that it's deleted.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:30 AM
bzimport set Reference to bz70078.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card

  • Bug 70798 has been marked as a duplicate of this bug. ***

Bahodir did some investigation into this. Here's what he discovered:

"My findings so far: 1. You can only watch a non-existent page in the destop version of the site. If you try to do so in the mobile version, your change to watch the page doesn't stick. Try refreshing the page and you'll see the watch start is white again.

  1. The API returns missing pages with ID of 0 and no 'watched' property, which prevents us from knowing if a page has been watched or not. Also it's worth considering what happens if you watch 2 non-existing pages."

Essentially the problem we have is we use id's to control watching an article but this doesn't work for new pages which have no id. We will need to rethink this code...

  • Bug 71199 has been marked as a duplicate of this bug. ***

gerritadmin wrote:

Change 165398 had a related patch set uploaded by Jdlrobson:
Allow watching of missing pages

gerritadmin wrote:

Change 165398 merged by jenkins-bot:
Allow watching of missing pages