rilldata / rill

Rill is a tool for effortlessly transforming data sets into powerful, opinionated dashboards using SQL. BI-as-code.
https://www.rilldata.com
Apache License 2.0
1.75k stars 118 forks source link

The formatting of generated Metrics View YAML should be consistent with the layout of the Visual Metrics Editor #5970

Open ericpgreen2 opened 1 month ago

ericpgreen2 commented 1 month ago

Currently, generated metrics view YAML does not match the layout of the Visual Metrics Editor.

We should have consistency between:

Here's the Visual Metrics Editor. Note the order in which fields are defined, and the order in which a measure/dimension is defined:

image

Here's YAML that's generated via the "Generate metrics" button, then edited by the Visual Metrics Editor. It's inconsistent & appears jumbled. It does not map 1:1 to the layout of the Visual Metrics Editor.

image