role-strategy-plugin
role-strategy-plugin copied to clipboard
write config sorted into config.xml
problem: every time one saves the config page of this plugin, the resulting xml got randomly reordered speaking of sid and permission elements. this makes diffing messy in case one wants to have the config.xml in a git repo. solution: i made SortedSets (TreeSet) where needed without touching the actual persistence code.
:+1:
The change needs migration tests at least. Just to make sure that the upgrade works correctly
Wouldn't it be possible convert set to treeset only during deserialization?
Is there someone still having this pull request in mind?
Using TreeSet has also the disadvantage that is has worse performance compared to HashSet. So a TreeSet should only be used when writing the config xml or when generating the CasC yaml