Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new Slack dashboard #12415

Merged
merged 3 commits into from
Jan 12, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
44 changes: 44 additions & 0 deletions superset/examples/configs/charts/Cross_Channel_Relationship.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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,54 @@
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
28 changes: 28 additions & 0 deletions superset/examples/configs/charts/Members_per_Channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
91 changes: 91 additions & 0 deletions superset/examples/configs/charts/Messages_per_Channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
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
53 changes: 53 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,53 @@
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
23 changes: 23 additions & 0 deletions superset/examples/configs/charts/Number_of_Members.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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
37 changes: 37 additions & 0 deletions superset/examples/configs/charts/Top_Timezones.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
35 changes: 35 additions & 0 deletions superset/examples/configs/charts/Weekly_Messages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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
Loading