You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/10/05 21:04:50 UTC
[GitHub] john-bodley closed pull request #6023: [tablemodelview] Fixing JSON
api/read serializable issue
john-bodley closed pull request #6023: [tablemodelview] Fixing JSON api/read serializable issue
URL: https://github.com/apache/incubator-superset/pull/6023
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py
index 037eb779a0..78b5873358 100644
--- a/superset/connectors/sqla/models.py
+++ b/superset/connectors/sqla/models.py
@@ -317,6 +317,10 @@ def description_markeddown(self):
def datasource_name(self):
return self.table_name
+ @property
+ def database_name(self):
+ return self.database.name
+
@property
def link(self):
name = escape(self.name)
diff --git a/superset/connectors/sqla/views.py b/superset/connectors/sqla/views.py
index 2766385d51..1bae52eddf 100644
--- a/superset/connectors/sqla/views.py
+++ b/superset/connectors/sqla/views.py
@@ -160,7 +160,7 @@ class TableModelView(DatasourceModelView, DeleteMixin, YamlExportMixin): # noqa
edit_title = _('Edit Table')
list_columns = [
- 'link', 'database',
+ 'link', 'database_name',
'changed_by_', 'modified']
order_columns = ['modified']
add_columns = ['database', 'schema', 'table_name']
@@ -229,6 +229,7 @@ class TableModelView(DatasourceModelView, DeleteMixin, YamlExportMixin): # noqa
'link': _('Table'),
'changed_by_': _('Changed By'),
'database': _('Database'),
+ 'database_name': _('Database'),
'changed_on_': _('Last Changed'),
'filter_select_enabled': _('Enable Filter Select'),
'schema': _('Schema'),
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org