Change a param key name, and save - you now have a different name in the paramOrder - so on subsequent edits, your param no longer appears in the list. The model is basically in an invalid state.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T138247: Herald should not automatically add VisualEditor tag, where TemplateData tag is added
T138219: Remind users to update the TemplateData of a template when they edit the template
T127958: TemplateData shouldn't store paramOrder as a separate list - Mentioned Here
- T138800: When you change the name of a parameter, ParamOrder should get updated to use the new name
T127958: TemplateData shouldn't store paramOrder as a separate list
T138219: Remind users to update the TemplateData of a template when they edit the template
Event Timeline
Comment Actions
I think I misunderstood Ed's comment. I assumed the intention was to automatically update the list to match the same order (which is what the UI does right now, but source edits don't/can't).
However, think the more low-level problem was that it was possible to save an edit that led to an invalid model. That is, there would be entries in paramOrder that don't exist in the params object. That has been fixed at some point:
Closing as such given it now can't be broken by wikitext edits anymore. For the better UX, see T127958.
