appuio / appuio-cloud-reporting

Reporting for APPUiO Cloud
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Return subitems in invoices as a map #66

Closed glrf closed 2 years ago

glrf commented 2 years ago

In https://github.com/appuio/appuio-cloud-reporting/pull/65 it was suggested to switch to a map for subitems in invoices.

This is technically a breaking change, but as we did not have a release since introducing subitems we can ignore this

Checklist

glrf commented 2 years ago

One drawback I see is that map items are non deterministically ordered. Just something to be aware of.

Postgres did not return the items in a deterministic order anyway (why we sort the slices in the test), so we don't loose much there