Skip to content

Commit

Permalink
refactor: Blossom metric fields for dataset API column selection (#20732
Browse files Browse the repository at this point in the history
)
  • Loading branch information
john-bodley committed Jul 20, 2022
1 parent 1debaca commit 5a04a28
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion superset/datasets/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
"owners.username",
"owners.first_name",
"owners.last_name",
"columns.advanced_data_type",
"columns.changed_on",
"columns.column_name",
"columns.created_on",
Expand All @@ -162,7 +163,18 @@ class DatasetRestApi(BaseSupersetModelRestApi):
"columns.type",
"columns.uuid",
"columns.verbose_name",
"metrics",
"metrics", # TODO(john-bodley): Deprecate in 3.0.
"metrics.changed_on",
"metrics.created_on",
"metrics.d3format",
"metrics.description",
"metrics.expression",
"metrics.extra",
"metrics.id",
"metrics.metric_name",
"metrics.metric_type",
"metrics.verbose_name",
"metrics.warning_text",
"datasource_type",
"url",
"extra",
Expand Down

0 comments on commit 5a04a28

Please sign in to comment.