Last modified: 2014-05-07 14:10:35 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 T64927, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62927 - Perform input validation based on ChangeOp (tracking)
Perform input validation based on ChangeOp (tracking)
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=story p=0 s=0
: tracking
Depends on: 63188 62425 62643 62644
Blocks: tracking
  Show dependency treegraph
 
Reported: 2014-03-21 15:08 UTC by Daniel Kinzler
Modified: 2014-05-07 14:10 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2014-03-21 15:08:00 UTC
Input validation should be performed by (or based on) ChangeOp objects. This way, soft constraints can be enforced when part of a change, while ignoring them when unrelated aspects of an entity are changed.

Also, by binding the validation to the ChangeOp, there is a central place to specify what kind of change should apply what kind of validation.

This means that the validation of labels and descriptions should be done in the relevant ChangeOp (see bug 49583). Similarly, snak validation should be moved to the respective ChangeOp.

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


Navigation
Links