Skip Menu |

This queue is for tickets about the DBIx-Class-Fixtures CPAN distribution.

Report information
The Basics
Id: 118897
Status: open
Priority: 0/
Queue: DBIx-Class-Fixtures

People
Owner: Nobody in particular
Requestors: KES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.001039
Fixed in: (no value)



Subject: Sort keys for dumped data
When dumping you should sort keys, otherwise it makes problems when put `all_tables.json` into git git diff -b -w --ignore-blank-lines share/fixtures/1/conf/all_tables.json diff --git a/share/fixtures/1/conf/all_tables.json b/share/fixtures/1/conf/all_tables.json index 77b6a2b..a059b74 100644 --- a/share/fixtures/1/conf/all_tables.json +++ b/share/fixtures/1/conf/all_tables.json @@ -1,12 +1,12 @@ { - "might_have" : { + "belongs_to" : { "fetch" : 0 }, "sets" : [], - "has_many" : { + "might_have" : { "fetch" : 0 }, - "belongs_to" : { + "has_many" : { "fetch" : 0 } }
Yes, please! This would be very helpful. I think that at https://metacpan.org/source/SKAUFMAN/DBIx-Class-Fixtures-1.001039/lib/DBIx/Class/Fixtures.pm#L913 it might be sufficient to change Dump(\%ds)->Out(); to Dump(\%ds)->SortKeys('alphabetical')->Out(); (based on https://metacpan.org/pod/Data::Dump::Streamer#SortKeys). However, I am no expert, and may be wrong. Thanks for considering this request!