Sort keys in the json_dumps template filter.

Review Request #10470 — Created March 27, 2019 and submitted

chipx86
Djblets
release-2.0.x
djblets

This updates the json_dumps template filter to always sort keys,
providing a consistent result that won't differ based on Python version
or other factors.

This change may regress some unit tests that were checking serialized
content against a specific version of Python's sorting order, but for
broader Python compatibility, those have to be fixed anyway.

Djblets unit tests pass. Review Board tests are impacted, but will
be addressed in a future change (landed alongside this one).

Summary
Sort keys in the json_dumps template filter.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (9e2e8d4)
Loading...