Skip to content

Commit

Permalink
feat: new Slack dashboard (#12415)
Browse files Browse the repository at this point in the history
* feat: new Slack dashboard

* Add ASL license

* Fix test
  • Loading branch information
betodealmeida committed Jan 12, 2021
1 parent e47350e commit 8f83afc
Show file tree
Hide file tree
Showing 24 changed files with 2,738 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion superset/datasets/commands/importers/v1/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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

Expand All @@ -41,6 +41,7 @@


type_map = {
"BOOLEAN": Boolean(),
"VARCHAR": String(255),
"STRING": String(255),
"TEXT": Text(),
Expand Down
60 changes: 60 additions & 0 deletions superset/examples/configs/charts/Cross_Channel_Relationship.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions superset/examples/configs/charts/Members_per_Channel.yaml
Original file line number Diff line number Diff line change
@@ -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
107 changes: 107 additions & 0 deletions superset/examples/configs/charts/Messages_per_Channel.yaml
Original file line number Diff line number Diff line change
@@ -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
69 changes: 69 additions & 0 deletions superset/examples/configs/charts/New_Members_per_Month.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 8f83afc

Please sign in to comment.