You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project config diffs can get unwieldy and ugly pretty quickly. In an enterprise environment where multiple developers are contributing to a Craft project, this can create some very ugly and misleading diffs of the project.yaml file. Alphabetizing entries would help mitigate this.
The text was updated successfully, but these errors were encountered:
To add to @ryanpcmcquen 's description of the unwieldy diffs, this can also cause merge errors-- if two sections that contain mostly the same stuff are moved around, Git's merger can tend to really munge them up since it's not data-structure-aware.
@brandonkelly With that issue you referenced, some of Craft's resources have keys like sortorder, right? Would it solve this to extend that approach to all (or more) things?
@tprobinson Yes, but the issue is that it was a breaking change for plugins as well. We’ll probably go back to sorting all indexed arrays by keys again in Craft 4. In the meantime I suspect that 1e808dc is going to go a long way in helping.
Description
Project config diffs can get unwieldy and ugly pretty quickly. In an enterprise environment where multiple developers are contributing to a Craft project, this can create some very ugly and misleading diffs of the
project.yaml
file. Alphabetizing entries would help mitigate this.The text was updated successfully, but these errors were encountered: