mediawiki-extensions-Visual.../modules/ve-mw
Máté Szabó d127dc48b7 ve.dm.MWTemplateModel: Don't add spurious empty parameters
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
2020-11-16 19:54:44 +01:00
..
ce build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
dm ve.dm.MWTemplateModel: Don't add spurious empty parameters 2020-11-16 19:54:44 +01:00
init Change selector vectorTabs => vector-menu-tabs 2020-10-26 18:17:42 +00:00
preinit Merge "ArticleTargetLoader: Add ve.loadModules hook" 2020-11-11 01:37:37 +00:00
tests ve.dm.MWTemplateModel: Don't add spurious empty parameters 2020-11-16 19:54:44 +01:00
themes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ui Tweak alignment of save checkboxes 2020-10-27 21:43:53 +00:00