gouline/dbt-metabase

Making exposures output idempotent

ernesto-jimenez opened this issue · 1 comments

Running the command twice changes the exposures file due to changes in the order of the outputs.

This results in noisy diffs which make it harder to follow what changed.

Proposal: When preparing the output, sort all arrays alphabetically.

I'm happy with the suggested approach. However, I'm not using the exposure functionality myself, that entire area of the codebase was contributed by the community. As a result, you (or somebody else interested) will have to work on that and contribute yourself.