Page MenuHomePhabricator

validate sitelinks (value and uniqueness) in ChangeOp
Open, MediumPublic

Description

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).


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz63188

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:51 AM
bzimport set Reference to bz63188.
bzimport added a subscriber: Unknown Object (MLST).

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).

Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).