ash-project / ash_postgres

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

improvement: order keys in snapshot json #339

Closed vonagam closed 2 months ago

vonagam commented 2 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 2 months ago

🚀 Thank you for your contribution! 🚀