ash-project / ash_postgres

The PostgreSQL data layer for Ash Framework
https://hexdocs.pm/ash_postgres
MIT License
140 stars 73 forks source link

improvement: order keys in snapshot json #339

Closed vonagam closed 5 months ago

vonagam commented 5 months ago

This makes order of keys in a snapshot stable. Easier for computer and human eye to diff.

Note: There is StableJason (which does the same thing but because of need to support structs, which snapshot does not use, it instead encodes -> decodes -> orders -> encodes). Upside is that the change would have looked even smaller but don't know if a dependency is worth it in this case.

zachdaniel commented 5 months ago

🚀 Thank you for your contribution! 🚀