Page MenuHomePhabricator

Link existence checker in LinkTargetInputWidget doesn't work for interwikis, language links
Closed, ResolvedPublic

Description

Create a link to [[bugzilla:12345]] and the link inspector thinks it's a redlink. Not great. :-(


Version: unspecified
Severity: minor

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:55 AM
bzimport set Reference to bz70504.

gerritadmin wrote:

Change 160155 had a related patch set uploaded by Alex Monk:
Try to handle interwiki links in LinkTargetInputWidget

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

So it turns out this patch is basically useless because iw_api is barely populated anywhere. The MW installer doesn't do it (bug 46992), and WMF sites don't do it (maybe we should file a bug for this). Clever past-me filled the value for 'wikipedia' on my own install (which I what I had been testing against) and left it at that.

gerritadmin wrote:

Change 160155 abandoned by Alex Monk:
Try to handle interwiki links in LinkTargetInputWidget

Reason:
Pretty much depends on upstream MediaWiki core + Wikimedia interwiki cache work, see bug for info

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

Jdforrester-WMF renamed this task from VisualEditor: Link existence checker in LinkTargetInputWidget doesn't work for interwikis, language links to Link existence checker in LinkTargetInputWidget doesn't work for interwikis, language links.Nov 23 2014, 11:14 PM
Jdforrester-WMF added a project: VisualEditor.
Jdforrester-WMF set Security to None.
Jdforrester-WMF moved this task from To Triage to TR6: Visual diffs on the VisualEditor board.

I looked at this again and remembered that MW does nothing clever with interwiki titles. It does not try to check existence of interwiki titles. We should just be able to check to see if something is an interwiki title, and if so assume it exists.

https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/Title.php;HEAD$4284

Also, from that it looks like extensions can just decide that some titles are always blue, and VE can't do much about this without a server-side check.

Change 182988 had a related patch set uploaded (by Alex Monk):
Mark interwiki links as known in LinkTargetInputWidget

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

Patch-For-Review

Change 182988 merged by jenkins-bot:
Mark interwiki links as known in LinkTargetInputWidget

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

So now "Wikipedia:thispagedoesnotexist" always returns as a matching page in the suggestions list. :-(

Oh! Okay, yeah, there's a kind of crucial part missing. Will patch.

Change 185925 had a related patch set uploaded (by Alex Monk):
Actually perform interwiki check in MWLinkTargetInputWidget

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

Patch-For-Review

Change 185925 merged by jenkins-bot:
Actually perform interwiki check in MWLinkTargetInputWidget

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