LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

Serializer is not 'stable'

Open pasnox opened this issue 9 years ago • 4 comments

When editing a report, even for small change (by example, just a width change) the saved file is then TOO MUCH different than the previous one while only a width changed. The xml tags order is not 'stable' ie - it change place from save to save. This could be easily fixed using a map instead of a hash for the names (if it's what is used), else consider grabbing the keys then sort them (qStableSort) before writing them. This will a lot help users making diff against edited reports, it's actually a nightmare :)

Thanks,

pasnox avatar Jul 11 '16 09:07 pasnox

I build XML tree and then save it to a file why during recording tags are written in a different order for me a big mystery :)

fralx avatar Jul 14 '16 09:07 fralx

Most likely the model hierarchy is changing when loaded from xml in your UI stack then saved with the new stack order. Any progress on that ?

pasnox avatar Jun 14 '18 12:06 pasnox

Is it critycal for you ? To be honest i have forget about it :)

fralx avatar Jun 14 '18 13:06 fralx

It is not critical as I can't live with it ;) But clearly a problem for reports that are under version control and change frequently.

pasnox avatar Jun 14 '18 14:06 pasnox