mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 19:09:29 +00:00
d127dc48b7
Make ve.dm.MWTemplateModel#serialize ignore empty parameters if they were not present in the transclusion before the edit. This avoids dirty diffs where an user edits a template transclusion via VisualEditor, and the editor adds all available template parameters to the edit wikitext, even if they were not changed during the edit. This logic was ported from the old Wikia-WMF VisualEditor project.[1] Additionally, add tests for ve.dm.MWTemplateModel serialization. --- [1] https://github.com/Wikia/app/pull/6450/commits/858eaa9 Bug: T101075 Change-Id: I35f8812724658904d30034db4e4684193a661c1e |
||
---|---|---|
.. | ||
nodes | ||
ve.dm.Converter.test.js | ||
ve.dm.Document.test.js | ||
ve.dm.mwExample.js | ||
ve.dm.MWImageModel.test.js | ||
ve.dm.MWInternalLinkAnnotation.test.js | ||
ve.dm.MWTemplateModel.test.js | ||
ve.dm.MWTransclusionModel.test.js | ||
ve.dm.SurfaceFragment.test.js |