This is an automated email from the ASF dual-hosted git repository.
elizabeth 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 4119bb9 fix: reverting Dataset names (#16243)
4119bb9 is described below
commit 4119bb9c1e22ed3740191770029ebda6c3115487
Author: AAfghahi <[email protected]>
AuthorDate: Tue Aug 17 15:16:15 2021 -0400
fix: reverting Dataset names (#16243)
* reverting dataset name changes
* remove extra quotes
Co-authored-by: Elizabeth Thompson <[email protected]>
---
superset/examples/configs/datasets/examples/users.yaml | 2 +-
.../configs/datasets/examples/users_channels-uzooNNtSRO.yaml | 6 +++---
superset/examples/configs/datasets/examples/users_channels.yaml | 2 +-
superset/examples/configs/datasets/examples/video_game_sales.yaml | 2 +-
superset/examples/energy.py | 2 +-
superset/examples/world_bank.py | 4 ++--
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/superset/examples/configs/datasets/examples/users.yaml
b/superset/examples/configs/datasets/examples/users.yaml
index 7c9fc69..c26b96b 100644
--- a/superset/examples/configs/datasets/examples/users.yaml
+++ b/superset/examples/configs/datasets/examples/users.yaml
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-table_name: Slack Users
+table_name: users
main_dttm_col: updated
description: null
default_endpoint: null
diff --git
a/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml
b/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml
index 68f836c..5ba899b 100644
--- a/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml
+++ b/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-table_name: Slack Channel Combinations and Users
+table_name: users_channels-uzooNNtSRO
main_dttm_col: null
description: null
default_endpoint: null
@@ -23,8 +23,8 @@ cache_timeout: null
schema: null
sql: >
SELECT uc1.name as channel_1, uc2.name as channel_2, count(*) AS cnt
- FROM "Slack Users and Channels" uc1
- JOIN "Slack Users and Channels" uc2 ON uc1.user_id = uc2.user_id
+ FROM users_channels uc1
+ JOIN users_channels uc2 ON uc1.user_id = uc2.user_id
GROUP BY uc1.name, uc2.name
HAVING uc1.name <> uc2.name
params: null
diff --git a/superset/examples/configs/datasets/examples/users_channels.yaml
b/superset/examples/configs/datasets/examples/users_channels.yaml
index e688fb4..a69db42 100644
--- a/superset/examples/configs/datasets/examples/users_channels.yaml
+++ b/superset/examples/configs/datasets/examples/users_channels.yaml
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-table_name: Slack Users and Channels
+table_name: users_channels
main_dttm_col: null
description: null
default_endpoint: null
diff --git a/superset/examples/configs/datasets/examples/video_game_sales.yaml
b/superset/examples/configs/datasets/examples/video_game_sales.yaml
index 6099e28..7748f6a 100644
--- a/superset/examples/configs/datasets/examples/video_game_sales.yaml
+++ b/superset/examples/configs/datasets/examples/video_game_sales.yaml
@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-table_name: Video Game Sales
+table_name: video_game_sales
main_dttm_col: null
description: null
default_endpoint: null
diff --git a/superset/examples/energy.py b/superset/examples/energy.py
index 2c2003f..4ad56b0 100644
--- a/superset/examples/energy.py
+++ b/superset/examples/energy.py
@@ -56,7 +56,7 @@ def load_energy(
method="multi",
)
- print("Creating table [World Bank Health Data] reference")
+ print("Creating table [wb_health_population] reference")
table = get_table_connector_registry()
tbl = db.session.query(table).filter_by(table_name=tbl_name).first()
if not tbl:
diff --git a/superset/examples/world_bank.py b/superset/examples/world_bank.py
index 624fdc7..ccfcfca 100644
--- a/superset/examples/world_bank.py
+++ b/superset/examples/world_bank.py
@@ -45,7 +45,7 @@ def load_world_bank_health_n_pop( # pylint:
disable=too-many-locals, too-many-s
only_metadata: bool = False, force: bool = False, sample: bool = False,
) -> None:
"""Loads the world bank health dataset, slices and a dashboard"""
- tbl_name = "World Bank Health Data"
+ tbl_name = "wb_health_population"
database = utils.get_example_database()
table_exists = database.has_table_by_name(tbl_name)
@@ -76,7 +76,7 @@ def load_world_bank_health_n_pop( # pylint:
disable=too-many-locals, too-many-s
index=False,
)
- print("Creating table [World Bank Health Data] reference")
+ print("Creating table [wb_health_population] reference")
table = get_table_connector_registry()
tbl = db.session.query(table).filter_by(table_name=tbl_name).first()
if not tbl: