Export.json with a constant ordering

(jean-pierre paris) #1

When you want to put kibana 4 export.json under git (or any VC system), you'll see that the file changes even if you did not touch searches, vizs or dashboards. The script below uses jq to keep kibana 4 objects (and object keys) in a constant order. Thus, no diffs if you left your kibana untouched. And more git friendly!
Here is the gist : https://gist.github.com/jpparis-orange/e79dbfae1cba54799b1476fb4ddfed93

Would it be good to have Kibana itself exporting objects with a constant order?

(Stacey Gammon) #2

Once we say "our json order is deterministic", it's something we'd have to keep up long term, so while it does sound useful, I'm not sure it's something we'd want to implement. I suggest you add this as a feature request in the Kibana repo (https://github.com/elastic/kibana/issues) and tag it with discuss so other team members can weigh in as well.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.