From 8f83afcf494c0f5065b828294368d23717587c80 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 12 Jan 2021 15:24:44 -0800 Subject: [PATCH] feat: new Slack dashboard (#12415) * feat: new Slack dashboard * Add ASL license * Fix test --- .../integration/chart_list/list_view.test.ts | 2 +- .../explore/visualizations/treemap.test.js | 2 +- .../datasets/commands/importers/v1/utils.py | 3 +- .../charts/Cross_Channel_Relationship.yaml | 60 +++ ...oss_Channel_Relationship_heatmap_2786.yaml | 70 +++ .../configs/charts/Members_per_Channel.yaml | 44 ++ .../configs/charts/Messages_per_Channel.yaml | 107 ++++ .../configs/charts/New_Members_per_Month.yaml | 69 +++ .../configs/charts/Number_of_Members.yaml | 39 ++ .../configs/charts/Top_Timezones.yaml | 53 ++ .../configs/charts/Weekly_Messages.yaml | 51 ++ .../configs/charts/Weekly_Threads.yaml | 50 ++ .../configs/dashboards/Slack_Dashboard.yaml | 275 ++++++++++ .../datasets/examples/channel_members.yaml | 63 +++ .../configs/datasets/examples/channels.yaml | 363 +++++++++++++ .../datasets/examples/exported_stats.yaml | 263 ++++++++++ .../datasets/examples/members_channels_2.yaml | 63 +++ .../configs/datasets/examples/messages.yaml | 483 ++++++++++++++++++ .../datasets/examples/messages_channels.yaml | 73 +++ .../datasets/examples/new_members_daily.yaml | 63 +++ .../configs/datasets/examples/threads.yaml | 183 +++++++ .../configs/datasets/examples/users.yaml | 223 ++++++++ .../examples/users_channels-uzooNNtSRO.yaml | 76 +++ .../datasets/examples/users_channels.yaml | 63 +++ 24 files changed, 2738 insertions(+), 3 deletions(-) create mode 100644 superset/examples/configs/charts/Cross_Channel_Relationship.yaml create mode 100644 superset/examples/configs/charts/Cross_Channel_Relationship_heatmap_2786.yaml create mode 100644 superset/examples/configs/charts/Members_per_Channel.yaml create mode 100644 superset/examples/configs/charts/Messages_per_Channel.yaml create mode 100644 superset/examples/configs/charts/New_Members_per_Month.yaml create mode 100644 superset/examples/configs/charts/Number_of_Members.yaml create mode 100644 superset/examples/configs/charts/Top_Timezones.yaml create mode 100644 superset/examples/configs/charts/Weekly_Messages.yaml create mode 100644 superset/examples/configs/charts/Weekly_Threads.yaml create mode 100644 superset/examples/configs/dashboards/Slack_Dashboard.yaml create mode 100644 superset/examples/configs/datasets/examples/channel_members.yaml create mode 100644 superset/examples/configs/datasets/examples/channels.yaml create mode 100644 superset/examples/configs/datasets/examples/exported_stats.yaml create mode 100644 superset/examples/configs/datasets/examples/members_channels_2.yaml create mode 100644 superset/examples/configs/datasets/examples/messages.yaml create mode 100644 superset/examples/configs/datasets/examples/messages_channels.yaml create mode 100644 superset/examples/configs/datasets/examples/new_members_daily.yaml create mode 100644 superset/examples/configs/datasets/examples/threads.yaml create mode 100644 superset/examples/configs/datasets/examples/users.yaml create mode 100644 superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml create mode 100644 superset/examples/configs/datasets/examples/users_channels.yaml diff --git a/superset-frontend/cypress-base/cypress/integration/chart_list/list_view.test.ts b/superset-frontend/cypress-base/cypress/integration/chart_list/list_view.test.ts index 5b5503613c..0b99aeaa8e 100644 --- a/superset-frontend/cypress-base/cypress/integration/chart_list/list_view.test.ts +++ b/superset-frontend/cypress-base/cypress/integration/chart_list/list_view.test.ts @@ -46,6 +46,6 @@ describe('chart list view', () => { .first() .find('[data-test="table-row-cell"]') .find('[data-test="cell-text"]') - .contains('Country of Citizenship'); + .contains('Location of Current Developers'); }); }); diff --git a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js index 3fbd7de4ca..654c7c7e85 100644 --- a/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js +++ b/superset-frontend/cypress-base/cypress/integration/explore/visualizations/treemap.test.js @@ -20,7 +20,7 @@ describe('Visualization > Treemap', () => { const TREEMAP_FORM_DATA = { datasource: '2__table', viz_type: 'treemap', - slice_id: 50, + slice_id: 10, granularity_sqla: 'year', time_grain_sqla: 'P1D', time_range: 'No filter', diff --git a/superset/datasets/commands/importers/v1/utils.py b/superset/datasets/commands/importers/v1/utils.py index ad09235a26..2aa0c461f0 100644 --- a/superset/datasets/commands/importers/v1/utils.py +++ b/superset/datasets/commands/importers/v1/utils.py @@ -24,7 +24,7 @@ from typing import Any, Dict from urllib import request import pandas as pd -from sqlalchemy import BigInteger, Date, DateTime, Float, String, Text +from sqlalchemy import BigInteger, Boolean, Date, DateTime, Float, String, Text from sqlalchemy.orm import Session from sqlalchemy.sql.visitors import VisitableType @@ -41,6 +41,7 @@ JSON_KEYS = {"params", "template_params", "extra"} type_map = { + "BOOLEAN": Boolean(), "VARCHAR": String(255), "STRING": String(255), "TEXT": Text(), diff --git a/superset/examples/configs/charts/Cross_Channel_Relationship.yaml b/superset/examples/configs/charts/Cross_Channel_Relationship.yaml new file mode 100644 index 0000000000..07b4d3dd3a --- /dev/null +++ b/superset/examples/configs/charts/Cross_Channel_Relationship.yaml @@ -0,0 +1,60 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Cross Channel Relationship +viz_type: chord +params: + adhoc_filters: [] + color_scheme: supersetColors + columns: channel_2 + datasource: 59__table + groupby: channel_1 + label_colors: {} + metric: + aggregate: SUM + column: + column_name: cnt + description: null + expression: null + filterable: true + groupby: true + id: 1777 + is_dttm: false + optionName: _col_cnt + python_date_format: null + type: INT + verbose_name: null + expressionType: SIMPLE + hasCustomLabel: false + isNew: false + label: SUM(cnt) + optionName: metric_i1djbl8i2y_2vdl690dkyu + sqlExpression: null + queryFields: + columns: groupby + groupby: groupby + metric: metrics + row_limit: 1000 + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + viz_type: chord + y_axis_format: SMART_NUMBER +cache_timeout: null +uuid: f2a8731b-3d8c-4d86-9d33-7c0a3e64d21c +version: 1.0.0 +dataset_uuid: 473d6113-b44a-48d8-a6ae-e0ef7e2aebb0 diff --git a/superset/examples/configs/charts/Cross_Channel_Relationship_heatmap_2786.yaml b/superset/examples/configs/charts/Cross_Channel_Relationship_heatmap_2786.yaml new file mode 100644 index 0000000000..24453df8cf --- /dev/null +++ b/superset/examples/configs/charts/Cross_Channel_Relationship_heatmap_2786.yaml @@ -0,0 +1,70 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Cross Channel Relationship heatmap +viz_type: heatmap +params: + adhoc_filters: [] + all_columns_x: channel_1 + all_columns_y: channel_2 + bottom_margin: auto + canvas_image_rendering: pixelated + datasource: 35__table + left_margin: auto + linear_color_scheme: schemeBlues + metric: + aggregate: SUM + column: + column_name: cnt + description: null + expression: null + filterable: true + groupby: true + id: 1777 + is_dttm: false + optionName: _col_cnt + python_date_format: null + type: INT + verbose_name: null + expressionType: SIMPLE + hasCustomLabel: false + isNew: false + label: SUM(cnt) + optionName: metric_i1djbl8i2y_2vdl690dkyu + sqlExpression: null + normalize_across: heatmap + row_limit: 1000 + show_legend: true + show_perc: false + show_values: true + sort_x_axis: alpha_asc + sort_y_axis: alpha_asc + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: heatmap + xscale_interval: null + y_axis_bounds: + - null + - null + y_axis_format: SMART_NUMBER + yscale_interval: null +cache_timeout: null +uuid: 6cb43397-5c62-4f32-bde2-95344c412b5a +version: 1.0.0 +dataset_uuid: 473d6113-b44a-48d8-a6ae-e0ef7e2aebb0 diff --git a/superset/examples/configs/charts/Members_per_Channel.yaml b/superset/examples/configs/charts/Members_per_Channel.yaml new file mode 100644 index 0000000000..083355b0ff --- /dev/null +++ b/superset/examples/configs/charts/Members_per_Channel.yaml @@ -0,0 +1,44 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Members per Channel +viz_type: treemap +params: + adhoc_filters: [] + color_scheme: supersetColors + datasource: 57__table + groupby: + - channel_name + label_colors: {} + metrics: + - count + number_format: SMART_NUMBER + queryFields: + groupby: groupby + metrics: metrics + row_limit: null + slice_id: 2396 + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + treemap_ratio: 1.618033988749895 + url_params: {} + viz_type: treemap +cache_timeout: null +uuid: d44e416d-1647-44e4-b442-6da34b44adc4 +version: 1.0.0 +dataset_uuid: 3d9c0054-b31b-4102-92de-b1ef9f9e5e77 diff --git a/superset/examples/configs/charts/Messages_per_Channel.yaml b/superset/examples/configs/charts/Messages_per_Channel.yaml new file mode 100644 index 0000000000..29a6202fc1 --- /dev/null +++ b/superset/examples/configs/charts/Messages_per_Channel.yaml @@ -0,0 +1,107 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Messages per Channel +viz_type: area +params: + adhoc_filters: + - clause: WHERE + comparator: github-notifications + expressionType: SIMPLE + filterOptionName: filter_7ud3u2eujnw_1pmeehxvw0b + isExtra: false + isNew: false + operator: '!=' + sqlExpression: null + subject: name + annotation_layers: [] + bottom_margin: auto + color_scheme: supersetColors + comparison_type: values + datasource: 56__table + granularity_sqla: ts + groupby: + - name + label_colors: + '0': '#1FA8C9' + '1': '#454E7C' + announcements: '#A868B7' + apache-releases: '#666666' + beginners: '#666666' + commits: '#E04355' + community-feedback: '#EFA1AA' + contributing: '#8FD3E4' + cypress-tests: '#FDE380' + dashboard-filters: '#FCC700' + dashboard-level-access: '#D1C6BC' + dashboards: '#3CCCCB' + design: '#1FA8C9' + developers: '#9EE5E5' + embedd-dashboards: '#ACE1C4' + feature-requests: '#454E7C' + general: '#3CCCCB' + github-notifications: '#E04355' + globalnav_search: '#A1A6BD' + graduation: '#A1A6BD' + helm-k8-deployment: '#FEC0A1' + introductions: '#5AC189' + jobs: '#FF7F44' + localization: '#5AC189' + newsletter: '#FF7F44' + product_feedback: '#D3B3DA' + pull-requests: '#A38F79' + superset-champions: '#FCC700' + superset_prod_reports: '#A868B7' + superset_stage_alerts: '#A38F79' + support: '#8FD3E4' + visualization_plugins: '#B2B2B2' + limit: 10 + line_interpolation: linear + metrics: + - count + min_periods: 0 + order_desc: true + queryFields: + groupby: groupby + metrics: metrics + rich_tooltip: true + rolling_periods: 14 + rolling_type: mean + row_limit: 1000 + show_brush: auto + show_controls: false + show_legend: true + slice_id: 2395 + stacked_style: stream + time_grain_sqla: P1D + time_range: Last quarter + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: area + x_axis_format: smart_date + x_axis_showminmax: true + x_ticks_layout: auto + y_axis_bounds: + - 0 + - null + y_axis_format: SMART_NUMBER + y_log_scale: false +cache_timeout: null +uuid: b0f11bdf-793f-473f-b7d5-b9265e657896 +version: 1.0.0 +dataset_uuid: 6e533506-fce6-4f6a-b116-d139df6dbdea diff --git a/superset/examples/configs/charts/New_Members_per_Month.yaml b/superset/examples/configs/charts/New_Members_per_Month.yaml new file mode 100644 index 0000000000..be26e37eed --- /dev/null +++ b/superset/examples/configs/charts/New_Members_per_Month.yaml @@ -0,0 +1,69 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: New Members per Month +viz_type: big_number +params: + adhoc_filters: [] + color_picker: + a: 1 + b: 135 + g: 122 + r: 0 + compare_lag: 1 + compare_suffix: MoM + datasource: 66__table + granularity_sqla: date + header_font_size: 0.4 + metric: + aggregate: SUM + column: + column_name: new_members + description: null + expression: null + filterable: true + groupby: true + id: 1849 + is_dttm: false + optionName: _col_New Members + python_date_format: null + type: BIGINT + verbose_name: null + expressionType: SIMPLE + hasCustomLabel: false + isNew: false + label: SUM(New Members) + optionName: metric_7pksdivmphp_bicn1fji7en + sqlExpression: null + queryFields: + metric: metrics + rolling_type: None + show_trend_line: true + slice_id: 3055 + start_y_axis_at_zero: true + subheader_font_size: 0.15 + time_grain_sqla: P1M + time_range: Last year + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: big_number + y_axis_format: SMART_NUMBER +cache_timeout: null +uuid: 92e1d712-bcf9-4d7e-9b94-26cffe502908 +version: 1.0.0 +dataset_uuid: 9dd99cda-ff6b-4575-9a74-684d06e871ab diff --git a/superset/examples/configs/charts/Number_of_Members.yaml b/superset/examples/configs/charts/Number_of_Members.yaml new file mode 100644 index 0000000000..54aded3f5c --- /dev/null +++ b/superset/examples/configs/charts/Number_of_Members.yaml @@ -0,0 +1,39 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Number of Members +viz_type: big_number_total +params: + adhoc_filters: [] + datasource: 31__table + granularity_sqla: updated + header_font_size: 0.4 + metric: count + queryFields: + metric: metrics + subheader: Slack Members + subheader_font_size: 0.125 + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: big_number_total + y_axis_format: SMART_NUMBER +cache_timeout: null +uuid: 7dad983b-e9f6-d2e8-91da-c2262d4e84e8 +version: 1.0.0 +dataset_uuid: 7195db6b-2d17-7619-b7c7-26b15378df8c diff --git a/superset/examples/configs/charts/Top_Timezones.yaml b/superset/examples/configs/charts/Top_Timezones.yaml new file mode 100644 index 0000000000..2e0239ce70 --- /dev/null +++ b/superset/examples/configs/charts/Top_Timezones.yaml @@ -0,0 +1,53 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Top Timezones +viz_type: table +params: + adhoc_filters: [] + align_pn: false + all_columns: [] + color_pn: true + datasource: 31__table + granularity_sqla: updated + groupby: + - tz + include_search: false + metrics: + - count + order_by_cols: [] + order_desc: true + page_length: 0 + percent_metrics: [] + queryFields: + groupby: groupby + metrics: metrics + query_mode: aggregate + row_limit: 10 + show_cell_bars: true + slice_id: 1908 + table_timestamp_format: smart_date + time_grain_sqla: P1D + time_range: No filter + time_range_endpoints: + - inclusive + - exclusive + url_params: {} + viz_type: table +cache_timeout: null +uuid: 62b7242e-decc-2d1b-7f80-c62776939d1e +version: 1.0.0 +dataset_uuid: 7195db6b-2d17-7619-b7c7-26b15378df8c diff --git a/superset/examples/configs/charts/Weekly_Messages.yaml b/superset/examples/configs/charts/Weekly_Messages.yaml new file mode 100644 index 0000000000..daeb72c530 --- /dev/null +++ b/superset/examples/configs/charts/Weekly_Messages.yaml @@ -0,0 +1,51 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Weekly Messages +viz_type: big_number +params: + adhoc_filters: [] + color_picker: + a: 1 + b: 135 + g: 122 + r: 0 + compare_lag: 1 + compare_suffix: WoW + datasource: 34__table + granularity_sqla: ts + header_font_size: 0.4 + metric: count + queryFields: + metric: metrics + rolling_type: None + show_trend_line: true + slice_id: 1905 + start_y_axis_at_zero: true + subheader_font_size: 0.15 + time_grain_sqla: P1W + time_range: Last quarter + time_range_endpoints: + - inclusive + - exclusive + time_range_fixed: false + url_params: {} + viz_type: big_number + y_axis_format: SMART_NUMBER +cache_timeout: null +uuid: abe2c022-ceee-a60a-e601-ab93f7ee52b1 +version: 1.0.0 +dataset_uuid: e032c69e-716e-d700-eff7-07800d0f9989 diff --git a/superset/examples/configs/charts/Weekly_Threads.yaml b/superset/examples/configs/charts/Weekly_Threads.yaml new file mode 100644 index 0000000000..28626eb17c --- /dev/null +++ b/superset/examples/configs/charts/Weekly_Threads.yaml @@ -0,0 +1,50 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +slice_name: Weekly Threads +viz_type: big_number +params: + adhoc_filters: [] + color_picker: + a: 1 + b: 135 + g: 122 + r: 0 + compare_lag: 1 + compare_suffix: WoW + datasource: 35__table + granularity_sqla: ts + header_font_size: 0.4 + metric: count + queryFields: + metric: metrics + rolling_type: None + show_trend_line: true + start_y_axis_at_zero: true + subheader_font_size: 0.15 + time_grain_sqla: P1W + time_range: '2020-08-05T00:00:00 : 2020-09-06T00:00:00' + time_range_endpoints: + - inclusive + - exclusive + time_range_fixed: false + url_params: {} + viz_type: big_number + y_axis_format: SMART_NUMBER +cache_timeout: null +uuid: 9f742bdd-cac1-468c-3a37-35c9b3cfd5bb +version: 1.0.0 +dataset_uuid: d7438be6-6078-17dd-cf9a-56f0ef546c80 diff --git a/superset/examples/configs/dashboards/Slack_Dashboard.yaml b/superset/examples/configs/dashboards/Slack_Dashboard.yaml new file mode 100644 index 0000000000..e7ee6ccc05 --- /dev/null +++ b/superset/examples/configs/dashboards/Slack_Dashboard.yaml @@ -0,0 +1,275 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +dashboard_title: Slack Dashboard +description: null +css: null +slug: null +uuid: 9726d8b0-222f-eb2c-034a-02b9f51ef5fd +position: + CHART-EYIBwyUiHc: + children: [] + id: CHART-EYIBwyUiHc + meta: + chartId: 2396 + height: 70 + sliceName: Members per Channel + uuid: d44e416d-1647-44e4-b442-6da34b44adc4 + width: 3 + parents: + - ROOT_ID + - GRID_ID + - ROW-PgcMF2PpB + type: CHART + CHART-FwpJA_o1-n: + children: [] + id: CHART-FwpJA_o1-n + meta: + chartId: 3055 + height: 44 + sliceName: New Members per Month + uuid: 92e1d712-bcf9-4d7e-9b94-26cffe502908 + width: 2 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + type: CHART + CHART-JhE-Y0xxgi: + children: [] + id: CHART-JhE-Y0xxgi + meta: + chartId: 1908 + height: 44 + sliceName: Top Timezones + sliceNameOverride: Top Timezones for Members + uuid: 62b7242e-decc-2d1b-7f80-c62776939d1e + width: 4 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + type: CHART + CHART-RbxP2Dl7Ad: + children: [] + id: CHART-RbxP2Dl7Ad + meta: + chartId: 1905 + height: 44 + sliceName: Weekly Messages + uuid: abe2c022-ceee-a60a-e601-ab93f7ee52b1 + width: 2 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + type: CHART + CHART-cj9KtCNRq3: + children: [] + id: CHART-cj9KtCNRq3 + meta: + chartId: 1903 + height: 19 + sliceName: Number of Members + uuid: 7dad983b-e9f6-d2e8-91da-c2262d4e84e8 + width: 3 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + - COLUMN-4bvhV9jxDI + type: CHART + CHART-ej0FpkKxzj: + children: [] + id: CHART-ej0FpkKxzj + meta: + chartId: 2398 + height: 69 + sliceName: Cross Channel Relationship + uuid: 6cb43397-5c62-4f32-bde2-95344c412b5a + width: 5 + parents: + - ROOT_ID + - GRID_ID + - ROW-PgcMF2PpB + type: CHART + CHART-f42-kMWQPd: + children: [] + id: CHART-f42-kMWQPd + meta: + chartId: 2397 + height: 68 + sliceName: Cross Channel Relationship + uuid: f2a8731b-3d8c-4d86-9d33-7c0a3e64d21c + width: 4 + parents: + - ROOT_ID + - GRID_ID + - ROW-PgcMF2PpB + type: CHART + CHART-tMLHDtzb67: + children: [] + id: CHART-tMLHDtzb67 + meta: + chartId: 2395 + height: 85 + sliceName: Messages per Channel + uuid: b0f11bdf-793f-473f-b7d5-b9265e657896 + width: 12 + parents: + - ROOT_ID + - GRID_ID + - ROW-y62Rf2K3m + type: CHART + CHART-vIvrauAMxV: + children: [] + id: CHART-vIvrauAMxV + meta: + chartId: 1906 + height: 44 + sliceName: Weekly Threads + uuid: 9f742bdd-cac1-468c-3a37-35c9b3cfd5bb + width: 2 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + type: CHART + COLUMN-4bvhV9jxDI: + children: + - MARKDOWN--8u3tfVF49 + - CHART-cj9KtCNRq3 + id: COLUMN-4bvhV9jxDI + meta: + background: BACKGROUND_TRANSPARENT + width: 2 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + type: COLUMN + DASHBOARD_VERSION_KEY: v2 + GRID_ID: + children: + - ROW-aseZBdP1v + - ROW-y62Rf2K3m + - ROW-PgcMF2PpB + id: GRID_ID + parents: + - ROOT_ID + type: GRID + HEADER_ID: + id: HEADER_ID + meta: + text: Slack Dashboard + type: HEADER + MARKDOWN--8u3tfVF49: + children: [] + id: MARKDOWN--8u3tfVF49 + meta: + code: + height: 23 + width: 3 + parents: + - ROOT_ID + - GRID_ID + - ROW-aseZBdP1v + - COLUMN-4bvhV9jxDI + type: MARKDOWN + ROOT_ID: + children: + - GRID_ID + id: ROOT_ID + type: ROOT + ROW-PgcMF2PpB: + children: + - CHART-EYIBwyUiHc + - CHART-f42-kMWQPd + - CHART-ej0FpkKxzj + id: ROW-PgcMF2PpB + meta: + '0': ROOT_ID + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + type: ROW + ROW-aseZBdP1v: + children: + - COLUMN-4bvhV9jxDI + - CHART-vIvrauAMxV + - CHART-RbxP2Dl7Ad + - CHART-FwpJA_o1-n + - CHART-JhE-Y0xxgi + id: ROW-aseZBdP1v + meta: + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + type: ROW + ROW-y62Rf2K3m: + children: + - CHART-tMLHDtzb67 + id: ROW-y62Rf2K3m + meta: + '0': ROOT_ID + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + type: ROW +metadata: + timed_refresh_immune_slices: [] + expanded_slices: {} + refresh_frequency: 0 + default_filters: '{}' + color_scheme: supersetColors + label_colors: + '0': '#1FA8C9' + '1': '#454E7C' + introductions: '#5AC189' + jobs: '#FF7F44' + apache-releases: '#666666' + commits: '#E04355' + dashboard-filters: '#FCC700' + announcements: '#A868B7' + general: '#3CCCCB' + superset_stage_alerts: '#A38F79' + contributing: '#8FD3E4' + graduation: '#A1A6BD' + embedd-dashboards: '#ACE1C4' + helm-k8-deployment: '#FEC0A1' + visualization_plugins: '#B2B2B2' + community-feedback: '#EFA1AA' + cypress-tests: '#FDE380' + product_feedback: '#D3B3DA' + developers: '#9EE5E5' + dashboard-level-access: '#D1C6BC' + design: '#1FA8C9' + feature-requests: '#454E7C' + localization: '#5AC189' + newsletter: '#FF7F44' + beginners: '#666666' + github-notifications: '#E04355' + superset-champions: '#FCC700' + superset_prod_reports: '#A868B7' + dashboards: '#3CCCCB' + pull-requests: '#A38F79' + support: '#8FD3E4' + globalnav_search: '#A1A6BD' +version: 1.0.0 diff --git a/superset/examples/configs/datasets/examples/channel_members.yaml b/superset/examples/configs/datasets/examples/channel_members.yaml new file mode 100644 index 0000000000..da7e60b598 --- /dev/null +++ b/superset/examples/configs/datasets/examples/channel_members.yaml @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: channel_members +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 3e8130eb-0831-d568-b531-c3ce6d68d3d8 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: channel_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: user_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/channel_members.csv diff --git a/superset/examples/configs/datasets/examples/channels.yaml b/superset/examples/configs/datasets/examples/channels.yaml new file mode 100644 index 0000000000..3707e03e9b --- /dev/null +++ b/superset/examples/configs/datasets/examples/channels.yaml @@ -0,0 +1,363 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: channels +main_dttm_col: created +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: f7db6d45-7056-f395-d24a-6c805fb4c97d +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: topic__last_set + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: purpose__last_set + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: created + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: unlinked + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: topic__creator + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: purpose__creator + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: topic__value + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: purpose__value + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: parent_conversation + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name_normalized + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: channel_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: creator + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_pending_ext_shared + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_ext_shared + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_org_shared + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_archived + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_channel + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_shared + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_general + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_private + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_member + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_group + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_mpim + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_im + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: num_members + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: pending_connected_team_ids + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: shared_team_ids + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: pending_shared + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: previous_names + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: members + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/channels.csv diff --git a/superset/examples/configs/datasets/examples/exported_stats.yaml b/superset/examples/configs/datasets/examples/exported_stats.yaml new file mode 100644 index 0000000000..d69e404dfc --- /dev/null +++ b/superset/examples/configs/datasets/examples/exported_stats.yaml @@ -0,0 +1,263 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: exported_stats +main_dttm_col: Date +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: '' +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 0bd5d01c-b7d8-471b-b3a5-366ce6c920d4 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: null + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: new_members + verbose_name: New Members + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: 'total_membership - LAG(total_membership) OVER (ORDER BY date)' + description: null + python_date_format: null +- column_name: percent_of_messages_private_channels + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: percent_of_messages_public_channels + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: percent_of_views_private_channels + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: percent_of_views_public_channels + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: percent_of_messages_dms + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: percent_of_views_dms + verbose_name: null + is_dttm: false + is_active: null + type: DOUBLE PRECISION + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: date + verbose_name: null + is_dttm: true + is_active: null + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: daily_members_posting_messages + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: messages_in_shared_channels + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: messages_in_private_channels + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: messages_in_public_channels + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: weekly_members_posting_messages + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: public_channels_single_workspace + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: messages_in_dms + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: daily_active_members + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: weekly_active_members + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: full_members + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: messages_posted + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: total_membership + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: guests + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: null + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/exported_stats.csv diff --git a/superset/examples/configs/datasets/examples/members_channels_2.yaml b/superset/examples/configs/datasets/examples/members_channels_2.yaml new file mode 100644 index 0000000000..b6967002f8 --- /dev/null +++ b/superset/examples/configs/datasets/examples/members_channels_2.yaml @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: members_channels_2 +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: SELECT c.name AS channel_name, u.name AS member_name FROM channel_members cm + JOIN channels c ON cm.channel_id = c.id JOIN users u ON cm.user_id = u.id +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 3d9c0054-b31b-4102-92de-b1ef9f9e5e77 +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: channel_name + verbose_name: null + is_dttm: false + is_active: true + type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: member_name + verbose_name: null + is_dttm: false + is_active: true + type: null + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee diff --git a/superset/examples/configs/datasets/examples/messages.yaml b/superset/examples/configs/datasets/examples/messages.yaml new file mode 100644 index 0000000000..2b8c3ebc79 --- /dev/null +++ b/superset/examples/configs/datasets/examples/messages.yaml @@ -0,0 +1,483 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: messages +main_dttm_col: bot_profile__updated +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: e032c69e-716e-d700-eff7-07800d0f9989 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: bot_profile__updated + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: last_read + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: ts + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_profile__team_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_profile__app_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_profile__name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_profile__id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: parent_user_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: client_msg_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: icons__emoji + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: channel_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: source_team + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: thread_ts + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: old_name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: latest_reply + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: user_team + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: file_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: username + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: permalink + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: team + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: subtype + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: topic + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: inviter + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: purpose + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: type + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: user + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: text + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: bot_profile__deleted + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: display_as_bot + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_delayed_message + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_starred + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_intro + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: upload + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: subscribed + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_users_count + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: unread_count + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_count + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: file_ids + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: pinned_to + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_users + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reactions + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: blocks + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/messages.csv diff --git a/superset/examples/configs/datasets/examples/messages_channels.yaml b/superset/examples/configs/datasets/examples/messages_channels.yaml new file mode 100644 index 0000000000..87e8507672 --- /dev/null +++ b/superset/examples/configs/datasets/examples/messages_channels.yaml @@ -0,0 +1,73 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: messages_channels +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: SELECT m.ts, c.name, m.text FROM messages m JOIN channels c ON m.channel_id = + c.id +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 6e533506-fce6-4f6a-b116-d139df6dbdea +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: ts + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: VAR_STRING + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: text + verbose_name: null + is_dttm: false + is_active: true + type: BLOB + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee diff --git a/superset/examples/configs/datasets/examples/new_members_daily.yaml b/superset/examples/configs/datasets/examples/new_members_daily.yaml new file mode 100644 index 0000000000..4ab93d09bc --- /dev/null +++ b/superset/examples/configs/datasets/examples/new_members_daily.yaml @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: new_members_daily +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: SELECT date, total_membership - lag(total_membership) OVER (ORDER BY date) AS + new_members FROM exported_stats +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 9dd99cda-ff6b-4575-9a74-684d06e871ab +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: date + verbose_name: null + is_dttm: true + is_active: true + type: DATETIME + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: new_members + verbose_name: null + is_dttm: false + is_active: true + type: LONGLONG + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee diff --git a/superset/examples/configs/datasets/examples/threads.yaml b/superset/examples/configs/datasets/examples/threads.yaml new file mode 100644 index 0000000000..9e030074f4 --- /dev/null +++ b/superset/examples/configs/datasets/examples/threads.yaml @@ -0,0 +1,183 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: threads +main_dttm_col: ts +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: d7438be6-6078-17dd-cf9a-56f0ef546c80 +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: ts + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: client_msg_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: channel_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: thread_ts + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: latest_reply + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: team + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: type + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: user + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: text + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: subscribed + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_count + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_users + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: blocks + verbose_name: null + is_dttm: false + is_active: true + type: TEXT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: reply_users_count + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/threads.csv diff --git a/superset/examples/configs/datasets/examples/users.yaml b/superset/examples/configs/datasets/examples/users.yaml new file mode 100644 index 0000000000..1ea9b8a8ea --- /dev/null +++ b/superset/examples/configs/datasets/examples/users.yaml @@ -0,0 +1,223 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: users +main_dttm_col: updated +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 7195db6b-2d17-7619-b7c7-26b15378df8c +metrics: +- metric_name: count + verbose_name: COUNT(*) + metric_type: count + expression: COUNT(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: updated + verbose_name: null + is_dttm: true + is_active: true + type: TIMESTAMP WITHOUT TIME ZONE + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: has_2fa + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: real_name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: tz_label + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: team_id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: color + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: id + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: tz + verbose_name: null + is_dttm: false + is_active: true + type: VARCHAR + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_ultra_restricted + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_primary_owner + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_app_user + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_admin + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_bot + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_restricted + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: is_owner + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: deleted + verbose_name: null + is_dttm: false + is_active: true + type: BOOLEAN + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: tz_offset + verbose_name: null + is_dttm: false + is_active: true + type: BIGINT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/users.csv diff --git a/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml b/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml new file mode 100644 index 0000000000..f54d061def --- /dev/null +++ b/superset/examples/configs/datasets/examples/users_channels-uzooNNtSRO.yaml @@ -0,0 +1,76 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: users_channels-uzooNNtSRO +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: 'SELECT uc1.name as channel_1, uc2.name as channel_2, count(*) AS cnt + 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 +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 473d6113-b44a-48d8-a6ae-e0ef7e2aebb0 +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: channel_1 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: channel_2 + verbose_name: null + is_dttm: false + is_active: true + type: STRING + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: cnt + verbose_name: null + is_dttm: false + is_active: true + type: INT + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: 566ca280-3da8-967e-4aa4-4b349218736a diff --git a/superset/examples/configs/datasets/examples/users_channels.yaml b/superset/examples/configs/datasets/examples/users_channels.yaml new file mode 100644 index 0000000000..8b3a7ac2eb --- /dev/null +++ b/superset/examples/configs/datasets/examples/users_channels.yaml @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +table_name: users_channels +main_dttm_col: null +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: null +sql: null +params: null +template_params: null +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 29b18573-c9d6-40bc-b8cb-f70c9a1b6244 +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: null + warning_text: null +columns: +- column_name: user_id + verbose_name: null + is_dttm: false + is_active: true + type: STRING + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +- column_name: name + verbose_name: null + is_dttm: false + is_active: true + type: STRING + groupby: true + filterable: true + expression: null + description: null + python_date_format: null +version: 1.0.0 +database_uuid: a2dc77af-e654-49bb-b321-40f6b559a1ee +data: https://raw.githubusercontent.com/apache-superset/examples-data/master/datasets/examples/slack/users_channels.csv