• 
      

    Sort keys in the json_dumps template filter.

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

    Information

    Djblets
    release-2.0.x

    Reviewers

    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 ID
    Sort keys in the json_dumps template filter.
    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.
    3e456d3064bc6efa5feccd4e53eea29502c9028b
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (9e2e8d4)