Export of feed entities changing order from export to export

Created on 6 June 2023, about 1 year ago
Updated 7 June 2023, about 1 year ago

When using drush content_as_config:export-all the data in file content_as_config.feeds_feed.yml is ordered randomly causing a diff even though there is no actual difference.

Example:

diff --git a/config/sync/content_as_config.feeds_feed.yml b/config/sync/content_as_config.feeds_feed.yml
index d6dd82a4..9e40af5a 100644
--- a/config/sync/content_as_config.feeds_feed.yml
+++ b/config/sync/content_as_config.feeds_feed.yml
@@ -3,11 +3,6 @@ d8ef7653-45a3-4310-8b81-952db5dd85df:
   title: 'Data A'
   source: 'private://data_a.xml'
   type: feed_data_a
-a1005251-2a6b-4820-bd70-f5f0a27d3faf:
-  uuid: a1005251-2a6b-4820-bd70-f5f0a27d3faf
-  title: 'Data B'
-  source: 'private://data_b.xml'
-  type: feed_data_b
 a3b1416e-f799-4c41-a4b7-6feae7b5a807:
   uuid: a3b1416e-f799-4c41-a4b7-6feae7b5a807
   title: 'Data C'
@@ -23,6 +18,11 @@ a3b1416e-f799-4c41-a4b7-6feae7b5a807:
   title: 'Data K'
   source: 'private://data_k.csv'
   type: feed_data_k
+a1005251-2a6b-4820-bd70-f5f0a27d3faf:
+  uuid: a1005251-2a6b-4820-bd70-f5f0a27d3faf
+  title: 'Data B'
+  source: 'private://data_b.xml'
+  type: feed_data_b
 9c0367e1-1377-46da-a819-c5aa3786abb1:
   uuid: 9c0367e1-1377-46da-a819-c5aa3786abb1
   title: 'Data X'

It is easy to ignore as it does not cause any issues ... but it would be best if the generated output is always identical when there is no actual difference - especially if working with repositories / git

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Rudi Teschner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024