tarantool / tarantool

Get your data in RAM. Get compute close to data. Enjoy the performance.
https://www.tarantool.io
Other
3.4k stars 379 forks source link

Add `encode_key_order` option to json encoder #10584

Open grafin opened 1 week ago

grafin commented 1 week ago

This option allows to pass an array of keys that will be used to sort keys in maps during serialization to json. The order of the provided keys in the resulting string will be the same as in the encode_key_order array. Keys, present in maps and not included in encode_key_order will be serialized after the sorted ones in arbitrary order.

Closes #10606

coveralls commented 1 week ago

Coverage Status

coverage: 87.327% (+0.007%) from 87.32% when pulling 957bd598133d704c4528d0cc5082d74e2e436ba7 on grafin:grafin/improve-log into 53d02c4d927bf1d20d74a9212d9c3dfaa0f2e3c9 on tarantool:master.

grafin commented 2 days ago

I have no idea, why publish-module-api-doc / build-api-doc (pull_request) fails. If anyone can help me - would appreciate.

Totktonada commented 2 days ago

@grafin It seems, it is due to the ubuntu-latest image change: https://github.blog/changelog/2024-09-25-actions-new-images-and-ubuntu-latest-changes/