You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2022/07/16 16:57:28 UTC

[superset] branch john-bodley--datasets-api-column-selection created (now 1d5473e29e)

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

johnbodley pushed a change to branch john-bodley--datasets-api-column-selection
in repository https://gitbox.apache.org/repos/asf/superset.git


      at 1d5473e29e refactor: Blossom metric fields for dataset API column selection

This branch includes the following new commits:

     new 1d5473e29e refactor: Blossom metric fields for dataset API column selection

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[superset] 01/01: refactor: Blossom metric fields for dataset API column selection

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--datasets-api-column-selection
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 1d5473e29e26f1c8559fea9063f1b8660cd82803
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Sat Jul 16 09:57:14 2022 -0700

    refactor: Blossom metric fields for dataset API column selection
---
 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",