This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5a04a28518 refactor: Blossom metric fields for dataset API column 
selection (#20732)
5a04a28518 is described below

commit 5a04a28518b02526dc19723515373d3296473d34
Author: John Bodley <[email protected]>
AuthorDate: Wed Jul 20 10:01:32 2022 -0700

    refactor: Blossom metric fields for dataset API column selection (#20732)
---
 superset/datasets/api.py | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/superset/datasets/api.py b/superset/datasets/api.py
index d63aa35a20..f6890655ed 100644
--- a/superset/datasets/api.py
+++ b/superset/datasets/api.py
@@ -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",
@@ -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",

Reply via email to