-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for default visible dimensions and measures in dashboard config #3974
Conversation
af8e061
to
f6ba43b
Compare
repeated DimensionV2 dimensions = 6; | ||
repeated string default_selected_dimensions = 18; | ||
// Measures in the metrics view | ||
repeated MeasureV2 measures = 7; | ||
repeated string default_selected_measures = 19; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about just default_dimensions
and default_measures
? We also have default_time_range
instead of default_selected_time_range
, and same for comparison defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either is fine with me. I just kept the same field as product requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed after consulting product.
@@ -425,6 +445,7 @@ func (p *Parser) parseMetricsView(ctx context.Context, node *Node) error { | |||
Unnest: dim.Unnest, | |||
}) | |||
} | |||
spec.DefaultSelectedDimensions = slices.Clone(tmp.DefaultSelectedDimensions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is slices.Clone
needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Addressing Support default selected dimensions and measures
default_measures
anddefault_dimensions
in dashboard config