Page MenuHomePhabricator

Invoke automatic wikidata linking only if the article published to Main namespace
Closed, ResolvedPublic1 Estimated Story Points

Description

T87410 added automatic wikidata linking to published aritcles using CX. But it seems the check to see if the article published is in Main namespace is missing in that module

Event Timeline

santhosh raised the priority of this task from to Medium.
santhosh updated the task description. (Show Details)
santhosh added subscribers: santhosh, Amire80.
Amire80 raised the priority of this task from Medium to High.Jun 9 2015, 3:28 PM
Amire80 added a project: Wikidata.

Apparently Wikibase doesn't block linking user pages as I thought, so it must be fixed. Raising priority. Tagging Wikidata because it's related, but it's a CX bug.

Change 217025 had a related patch set uploaded (by Amire80):
Add Wikibase link only to pages in the main namespace

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

Change 217025 merged by jenkins-bot:
Add Wikibase link only to pages in the main namespace

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

Please check the patch comments. The fix looks incorrect to me.

Change 217234 had a related patch set uploaded (by Amire80):
In Wikibase linking, check the target title instead of source

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

Change 217234 merged by jenkins-bot:
In Wikibase linking, check the target title instead of source

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

Wikidata linking is configurable and not exclusive to the main namespace. Connected namespaces can be whitelisted using the "namespaces" setting, or blacklisted using the "excludeNamespaces" setting in $wgWBClientSettings.

Amire80 removed a project: Patch-For-Review.

This was updated in production yesterday. I just tested it carefully:

It definitely doesn't happen anymore. You can see that no link was added to the Wikidata item. Compare it with https://www.wikidata.org/w/index.php?title=Q134396&action=history , where links to test pages were auto-added and manually deleted.