Page MenuHomePhabricator

[Bug] Show more meaningful messages on the client wiki when a relevant sitelink is changed on the repo
Closed, ResolvedPublic

Description

Observed:

  1. when the sitelink for enwiki is changed from Foo to Bar, the client wiki shows RC entries for Foo and Bar, with the original message from the repo ("Sitelinks for enwiki was changed from Foo to Bar")
  2. when the sitelink for Foo on enwiki is removed, the client wiki shows a specialized message for Foo, saying that the link was removed.
  3. when a sitelink for Bar on enwiki is added (and none existed for enwiki before), the client wiki shows a specialized message for Bar, saying that a data item was connected to the page.

Expected:

  • when the sitelink for enwiki is changed from Foo to Bar, the client wiki shows specialized messages for Foo and Bar, saying that a data item was unlinked/linked, as is done for case (2) and (3).

Event Timeline

daniel assigned this task to Jonas.
daniel raised the priority of this task from to High.
daniel updated the task description. (Show Details)
daniel added subscribers: gerritbot, daniel, Tobi_WMDE_SW and 5 others.
daniel added a subscriber: Jonas.

SiteLinkCommentCreator doesn't know about which page it is currently formatting a comment for, so that it can't do this right now. In order to fix that, SiteLinkCommentCreator needs to be made aware of the page that it's formatting a comment for.

@hoo or we could just not call SiteLinkCommentCreator if the affected page isn't the connected page. ChangeHandler::getEditComment() should have the necessary knowledge.

@hoo or we could just not call SiteLinkCommentCreator if the affected page isn't the connected page. ChangeHandler::getEditComment() should have the necessary knowledge.

But we have to call SiteLinkCommentCreator once for the now unlinked page and once for the newly linked page as far as I see.

@hoo you are right, I was confused about what the issue is here.

Change 246190 had a related patch set uploaded (by Hoo man):
Fix rc comments for pages directly affected by a sitelink change

https://gerrit.wikimedia.org/r/246190

Change 246190 merged by jenkins-bot:
Fix rc comments for pages directly affected by a sitelink change

https://gerrit.wikimedia.org/r/246190

hoo removed a project: Patch-For-Review.
hoo moved this task from Review to Done on the Wikidata-Sprint-2015-11-03 board.