daniel added a comment.

prepareSave() is indeed a misnomer, but this is hard to fix. There is an isValid() method which we could call when performing an edit, but that returns a boolean. It does not provide a way to report anything helpful to the user.

We could introduce a new method, but adding methods to the Content interface is always problematic, since there is no way to provide backwards compatibility for extensions that implement the interface directly.


TASK DETAIL
https://phabricator.wikimedia.org/T192777

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Aklapper, hoo, Anomie, Tgr, Lydia_Pintscher, daniel, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to