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(example): Superset Community Dashboard #28155

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ dependencies = [
"PyJWT>=2.4.0, <3.0",
"redis>=4.6.0, <5.0",
"selenium>=3.141.0, <4.10.0",
"shillelagh[gsheetsapi]>=1.2.18, <2.0",
"shillelagh[genericjsonapi,githubapi,gsheetsapi,genericxmlapi]>=1.2.18, <2.0",
"shortid",
"sshtunnel>=0.4.0, <0.5",
"simplejson>=3.15.0",
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ rsa==4.9
# via google-auth
selenium==3.141.0
# via apache-superset
shillelagh[gsheetsapi]==1.2.18
shillelagh[genericjsonapi,githubapi,gsheetsapi,genericxmlapi]==1.2.18
# via apache-superset
shortid==0.1.2
# via apache-superset
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# 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: 100 Most Stale Issues
description: null
certified_by: null
certification_details: null
viz_type: table
params:
datasource: 25__table
viz_type: table
slice_id: 83
query_mode: raw
groupby: []
time_grain_sqla: P1D
temporal_columns_lookup:
updated_at: true
created_at: true
all_columns:
- title
- link
- username
- created_at
- updated_at
- days_stale
- days_old
percent_metrics: []
adhoc_filters:
- clause: WHERE
comparator: No filter
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_92e89ndhg9k_77quhii36wg
isExtra: false
isNew: false
operator: TEMPORAL_RANGE
sqlExpression: null
subject: created_at
order_by_cols: []
row_limit: 100
server_page_length: 10
order_desc: true
table_timestamp_format: smart_date
show_cell_bars: true
color_pn: true
column_config:
days_old:
d3NumberFormat: ',.1f'
days_stale:
d3NumberFormat: ',.1f'
conditional_formatting: []
extra_form_data: {}
dashboards:
- 9
query_context: '{"datasource":{"id":25,"type":"table"},"force":false,"queries":[{"filters":[{"col":"created_at","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["title","link","username","created_at","updated_at","days_stale","days_old"],"orderby":[],"annotation_layers":[],"row_limit":100,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"25__table","viz_type":"table","slice_id":83,"query_mode":"raw","groupby":[],"time_grain_sqla":"P1D","temporal_columns_lookup":{"updated_at":true,"created_at":true},"all_columns":["title","link","username","created_at","updated_at","days_stale","days_old"],"percent_metrics":[],"adhoc_filters":[{"clause":"WHERE","comparator":"No
filter","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_92e89ndhg9k_77quhii36wg","isExtra":false,"isNew":false,"operator":"TEMPORAL_RANGE","sqlExpression":null,"subject":"created_at"}],"order_by_cols":[],"row_limit":100,"server_page_length":10,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"column_config":{"days_old":{"d3NumberFormat":",.1f"},"days_stale":{"d3NumberFormat":",.1f"}},"conditional_formatting":[],"extra_form_data":{},"dashboards":[9],"force":false,"result_format":"json","result_type":"full","include_time":false},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 1e747519-6ad1-4c48-add6-30b77aeca0a5
version: 1.0.0
dataset_uuid: 62f869ed-dc5e-4a2d-b5b3-6ae897ecb385
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# 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: 100 Most Stale PRs
description: null
certified_by: null
certification_details: null
viz_type: table
params:
datasource: 24__table
viz_type: table
slice_id: 82
query_mode: raw
groupby: []
time_grain_sqla: P1D
temporal_columns_lookup:
created_at: true
updated_at: true
all_columns:
- title
- link
- username
- created_at
- updated_at
- days_stale
- days_old
percent_metrics: []
adhoc_filters:
- clause: WHERE
comparator: No filter
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_2qpdpgzc47y_ni3xx1demmq
isExtra: false
isNew: false
operator: TEMPORAL_RANGE
sqlExpression: null
subject: created_at
- clause: WHERE
comparator: false
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_dbis9uwbxrm_451s5mj9ruu
isExtra: false
isNew: false
operator: ==
operatorId: IS_FALSE
sqlExpression: null
subject: draft
- clause: WHERE
comparator: open
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_vt3fipjn1dc_x82ah8mv3m
isExtra: false
isNew: false
operator: ==
operatorId: EQUALS
sqlExpression: null
subject: state
order_by_cols: []
row_limit: 100
server_page_length: 10
order_desc: true
table_timestamp_format: smart_date
show_cell_bars: true
color_pn: true
column_config:
days_old:
d3NumberFormat: ',.1f'
days_stale:
currencyFormat: {}
d3NumberFormat: ',.1f'
conditional_formatting: []
extra_form_data: {}
dashboards:
- 9
query_context: '{"datasource":{"id":24,"type":"table"},"force":false,"queries":[{"filters":[{"col":"created_at","op":"TEMPORAL_RANGE","val":"No
filter"},{"col":"draft","op":"==","val":false},{"col":"state","op":"==","val":"open"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["title","link","username","created_at","updated_at","days_stale","days_old"],"orderby":[],"annotation_layers":[],"row_limit":100,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"24__table","viz_type":"table","slice_id":82,"query_mode":"raw","groupby":[],"time_grain_sqla":"P1D","temporal_columns_lookup":{"created_at":true,"updated_at":true},"all_columns":["title","link","username","created_at","updated_at","days_stale","days_old"],"percent_metrics":[],"adhoc_filters":[{"clause":"WHERE","comparator":"No
filter","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_2qpdpgzc47y_ni3xx1demmq","isExtra":false,"isNew":false,"operator":"TEMPORAL_RANGE","sqlExpression":null,"subject":"created_at"},{"clause":"WHERE","comparator":false,"datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_dbis9uwbxrm_451s5mj9ruu","isExtra":false,"isNew":false,"operator":"==","operatorId":"IS_FALSE","sqlExpression":null,"subject":"draft"},{"clause":"WHERE","comparator":"open","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_vt3fipjn1dc_x82ah8mv3m","isExtra":false,"isNew":false,"operator":"==","operatorId":"EQUALS","sqlExpression":null,"subject":"state"}],"order_by_cols":[],"row_limit":100,"server_page_length":10,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"column_config":{"days_old":{"d3NumberFormat":",.1f"},"days_stale":{"currencyFormat":{},"d3NumberFormat":",.1f"}},"conditional_formatting":[],"extra_form_data":{},"dashboards":[9],"force":false,"result_format":"json","result_type":"full","include_time":false},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: ef4e3a16-5550-46b1-9a00-3305cf45cf47
version: 1.0.0
dataset_uuid: 0543be35-e3cb-4b8e-89a9-bee3e424d9a1
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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: 10 Worst Files
description: null
certified_by: null
certification_details: null
viz_type: pie
params:
datasource: 22__table
viz_type: pie
slice_id: 76
groupby:
- File
metric: count
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: Timestamp
row_limit: 10
sort_by_metric: true
color_scheme: supersetColors
show_labels_threshold: 5
show_legend: true
legendType: scroll
legendOrientation: top
label_type: key
number_format: SMART_NUMBER
date_format: smart_date
show_labels: true
labels_outside: true
outerRadius: 70
donut: true
innerRadius: 50
extra_form_data: {}
dashboards:
- 9
query_context: '{"datasource":{"id":22,"type":"table"},"force":false,"queries":[{"filters":[{"col":"Timestamp","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"having":"","where":""},"applied_time_extras":{},"columns":["File"],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{}}],"form_data":{"datasource":"22__table","viz_type":"pie","slice_id":76,"groupby":["File"],"metric":"count","adhoc_filters":[{"clause":"WHERE","comparator":"No
filter","expressionType":"SIMPLE","operator":"TEMPORAL_RANGE","subject":"Timestamp"}],"row_limit":10,"sort_by_metric":true,"color_scheme":"supersetColors","show_labels_threshold":5,"show_legend":true,"legendType":"scroll","legendOrientation":"top","label_type":"key","number_format":"SMART_NUMBER","date_format":"smart_date","show_labels":true,"labels_outside":true,"outerRadius":70,"donut":true,"innerRadius":50,"extra_form_data":{},"dashboards":[9],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: e34a4358-0681-43b1-839e-82f1399b97ce
version: 1.0.0
dataset_uuid: 12fa12ec-9d44-4eb8-8222-9f495849ad82
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: Backlog - ESLint
description: null
certified_by: null
certification_details: null
viz_type: table
params:
datasource: 22__table
viz_type: table
slice_id: 75
query_mode: raw
groupby: []
time_grain_sqla: P1D
temporal_columns_lookup:
Timestamp: true
all_columns:
- Rule
- Link
- Rule Description
- cleaned_file_path
- Line
- Column
- ESLint Message
percent_metrics: []
adhoc_filters:
- clause: WHERE
comparator: No filter
expressionType: SIMPLE
operator: TEMPORAL_RANGE
subject: Timestamp
order_by_cols: []
row_limit: 1000
server_page_length: 10
order_desc: true
table_timestamp_format: smart_date
show_cell_bars: false
color_pn: true
allow_rearrange_columns: false
column_config:
File:
columnWidth: 160
truncateLongCells: true
conditional_formatting: []
extra_form_data: {}
dashboards:
- 9
query_context: '{"datasource":{"id":22,"type":"table"},"force":false,"queries":[{"filters":[{"col":"Timestamp","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["Rule","Link","Rule
Description","cleaned_file_path","Line","Column","ESLint Message"],"orderby":[],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"22__table","viz_type":"table","slice_id":75,"query_mode":"raw","groupby":[],"time_grain_sqla":"P1D","temporal_columns_lookup":{"Timestamp":true},"all_columns":["Rule","Link","Rule
Description","cleaned_file_path","Line","Column","ESLint Message"],"percent_metrics":[],"adhoc_filters":[{"clause":"WHERE","comparator":"No
filter","expressionType":"SIMPLE","operator":"TEMPORAL_RANGE","subject":"Timestamp"}],"order_by_cols":[],"row_limit":1000,"server_page_length":10,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":false,"color_pn":true,"allow_rearrange_columns":false,"column_config":{"File":{"columnWidth":160,"truncateLongCells":true}},"conditional_formatting":[],"extra_form_data":{},"dashboards":[9],"force":false,"result_format":"json","result_type":"full","include_time":false},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 68cf3d84-afe6-496e-8960-401fe27d0c58
version: 1.0.0
dataset_uuid: 12fa12ec-9d44-4eb8-8222-9f495849ad82