Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292388

Enforce order of display of components in config export

$
0
0

Problem/Motivation

The content element describes how and the order in which fields are displayed. This array is sorted by key and a weight is stored. This is a problem because moving fields in field UI will change weights and if the export of two such changes are merged then fields otherwise unchanged will conflict.

Proposed resolution

Do not store the weights. Rather, sort before saving, remove them and add them back on runtime. This makes for a very simple update, too.

This reverts some of #2388867: Notifying user of config changes when config has never been synched makes no sense / e6cd1fa5b7 however this approach also results in a stable config file so the problems fixed there won't reoccur.

Remaining tasks

Write tests, review, commit, party :)

User interface changes

none

API changes

none


Viewing all articles
Browse latest Browse all 292388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>