rfarley3 / Kibana

Kibana 4 configuration index interaction (.kibana index control, import and export of config, dashboards, visualizations, searches)
MIT License
18 stars 15 forks source link

Verify that json output is always recursively sorted #7

Closed rfarley3 closed 8 years ago

rfarley3 commented 8 years ago

This may already be done, but verify with some tests.

Goal is to facilitate git revisioning of dashboards. Also include sorting of the json.dumps data within some of the object types.

json.dumps(d, sort_keys=True)

rfarley3 commented 8 years ago

The dumps function is using sort_keys, but the original list is out of order. Use sort with key on each document's _id.