Last modified: 2014-07-18 10:28:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65188, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63188 - validate sitelinks (value and uniqueness) in ChangeOp
validate sitelinks (value and uniqueness) in ChangeOp
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: testme
Depends on: 63190
Blocks: 62927
  Show dependency treegraph
 
Reported: 2014-03-27 13:55 UTC by Daniel Kinzler
Modified: 2014-07-18 10:28 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2014-03-27 13:55:42 UTC
Doing this validation in the ChangeOp would be consistent with validation for terms and snaks.

However, sitelink uniqueness is a hard constraint, actually enforced by a nunique key in the database. That may mean that it does need to be checked every time the item is saved (not just when the sitelink is modified).
Comment 1 Daniel Kinzler 2014-03-27 13:56:42 UTC
To clarify: validating the value if a ChangeOpSiteLink means calling out to the API of the target wiki to see whether the respective page exists (and is not a redirect).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links