From 3c4c93c7ecd17a877fe50baeca049c2b72b5a811 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 31 Jul 2019 21:57:25 +0200 Subject: [PATCH 1/6] Add the new theme with source{d} theme This commit includes for new palettes for source{d} theme: - srcdMain, with the source{d} main colors from the branding docs. - srcdAll, with: - all colors from srcdMain - all other extra colors defined by the branding docs - one extra color from the gradients between main colors - srcdOpaques, with the six main source{d} colors. - srcdRoyal, with source{d} royal and source{d} deep royal Signed-off-by: David Pordomingo --- .../assets/src/customization/index.jsx | 16 +++ .../assets/src/customization/srcdColors.jsx | 99 +++++++++++++++++++ superset/superset/assets/src/preamble.js | 5 + 3 files changed, 120 insertions(+) create mode 100644 srcd/superset/assets/src/customization/index.jsx create mode 100644 srcd/superset/assets/src/customization/srcdColors.jsx diff --git a/srcd/superset/assets/src/customization/index.jsx b/srcd/superset/assets/src/customization/index.jsx new file mode 100644 index 00000000..319543b9 --- /dev/null +++ b/srcd/superset/assets/src/customization/index.jsx @@ -0,0 +1,16 @@ +import { getCategoricalSchemeRegistry } from '@superset-ui/color'; +import srcdColors from './srcdColors'; + + +function setupColors() { + const categoricalSchemeRegistry = getCategoricalSchemeRegistry(); + [srcdColors].forEach((group) => { + group.forEach((scheme) => { + categoricalSchemeRegistry.registerValue(scheme.id, scheme); + }); + }); +} + +export function customize() { + setupColors(); +} diff --git a/srcd/superset/assets/src/customization/srcdColors.jsx b/srcd/superset/assets/src/customization/srcdColors.jsx new file mode 100644 index 00000000..5afdac29 --- /dev/null +++ b/srcd/superset/assets/src/customization/srcdColors.jsx @@ -0,0 +1,99 @@ +/* eslint-disable sort-keys */ + +import { CategoricalScheme } from '@superset-ui/color'; + +const royal = '#8719cb'; +const royalMiddle = '#651Ab1'; +const royalDeep = '#400d9a'; +const royalLight = '#e1c5f2'; +const royalLightDeep = '#cfc2e6'; +const lime = '#00b491'; +const limeMiddle = '#0e949f'; +const blueDeep = '#0174b0'; +const limeLight = '#bfece3'; +const blueLightDeep = '#bfdceb'; +const coral = '#f89c30'; +const coralMiddle = '#f37a4a'; +const coralDeep = '#f15f5f'; +const coralLight = '#fde6cb'; +const coralLightDeep = '#fbd7d7'; +const vanila = '#d024c6'; +const vanilaLight = '#f3c8f1'; +const navy = '#195dca'; +const navyLight = '#48B9FE'; +const sky = '#29bff2'; +const skyLight = '#c9effc'; +const gray = '#6d6e71'; +const grayLight = '#c9c9c9'; + +const schemes = [ + { + id: 'srcdMain', + label: 'source{d} main colors', + colors: [ + royal, + royalDeep, + royalLight, + royalLightDeep, + lime, + blueDeep, + limeLight, + blueLightDeep, + coral, + coralDeep, + coralLight, + coralLightDeep, + ], + }, + { + id: 'srcdAll', + label: 'source{d} all colors + middle gradient', + colors: [ + royal, + royalMiddle, + royalDeep, + royalLight, + royalLightDeep, + lime, + limeMiddle, + blueDeep, + limeLight, + blueLightDeep, + coral, + coralMiddle, + coralDeep, + coralLight, + coralLightDeep, + vanila, + vanilaLight, + navy, + navyLight, + sky, + skyLight, + gray, + grayLight, + ], + }, + { + id: 'srcdOpaques', + label: 'source{d} opaque colors', + colors: [ + royal, + lime, + coral, + vanila, + navy, + sky, + ], + }, + { + id: 'srcdRoyal', + label: 'source{d} royal duo', + colors: [ + royal, + royalDeep, + ], + }, +].map(s => new CategoricalScheme(s)); + +export default schemes; diff --git a/superset/superset/assets/src/preamble.js b/superset/superset/assets/src/preamble.js index 824d7dcb..e777b8e7 100644 --- a/superset/superset/assets/src/preamble.js +++ b/superset/superset/assets/src/preamble.js @@ -22,6 +22,8 @@ import setupClient from './setup/setupClient'; import setupColors from './setup/setupColors'; import setupFormatters from './setup/setupFormatters'; +import { customize } from './customization'; + // Configure translation if (typeof window !== 'undefined') { const root = document.getElementById('app'); @@ -44,3 +46,6 @@ setupColors(); // Setup number formatters setupFormatters(); + +// source{d} CE customizations +customize(); From 9889bf4d1a323ff39f3eddb992fd4652ffeb0013 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 31 Jul 2019 21:58:19 +0200 Subject: [PATCH 2/6] Make srcdMain the default palette for SUPERSET_DEFAULT key Superset is using 'SUPERSET_DEFAULT' as the default CategoricalScheme key i.e. https://github.com/apache-superset/superset-ui/blob/master/packages/superset-ui-color/src/CategoricalSchemeRegistrySingleton.ts This commit assigns 'srcdMain' palette for 'SUPERSET_DEFAULT' key Signed-off-by: David Pordomingo --- srcd/superset/assets/src/customization/index.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcd/superset/assets/src/customization/index.jsx b/srcd/superset/assets/src/customization/index.jsx index 319543b9..f04abdb8 100644 --- a/srcd/superset/assets/src/customization/index.jsx +++ b/srcd/superset/assets/src/customization/index.jsx @@ -1,12 +1,18 @@ import { getCategoricalSchemeRegistry } from '@superset-ui/color'; import srcdColors from './srcdColors'; +export const defaultScheme = 'SUPERSET_DEFAULT'; + +const srcdPaletteId = 'srcdMain'; function setupColors() { const categoricalSchemeRegistry = getCategoricalSchemeRegistry(); [srcdColors].forEach((group) => { group.forEach((scheme) => { categoricalSchemeRegistry.registerValue(scheme.id, scheme); + if (scheme.id === srcdPaletteId) { + categoricalSchemeRegistry.registerValue(defaultScheme, scheme); + } }); }); } From fe18682a2fe4169f7c2525ecb8c070f0a9605684 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Tue, 6 Aug 2019 13:51:51 +0200 Subject: [PATCH 3/6] Make SUPERSET_DEFAULT the default palett for CategoricalScheme It overrides the 'bnbColors' as defined by superset. Signed-off-by: David Pordomingo --- srcd/superset/assets/src/customization/index.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srcd/superset/assets/src/customization/index.jsx b/srcd/superset/assets/src/customization/index.jsx index f04abdb8..a8e483dd 100644 --- a/srcd/superset/assets/src/customization/index.jsx +++ b/srcd/superset/assets/src/customization/index.jsx @@ -15,6 +15,8 @@ function setupColors() { } }); }); + + categoricalSchemeRegistry.setDefaultKey(defaultScheme); } export function customize() { From 2f06d2c1198307c0d26c4761749d00d675fd81c8 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 31 Jul 2019 22:01:02 +0200 Subject: [PATCH 4/6] Make SUPERSET_DEFAULT the default on ColorScheme selectors It will select 'srcdMain' palette from the 'Color Scheme' selector when creating a chart (instead of the current default: 'bnbColors') It does not change current selected schemes, but it will affect only the new charts if no other color is manually asigned. Signed-off-by: David Pordomingo --- superset/superset/assets/src/explore/controls.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/superset/assets/src/explore/controls.jsx b/superset/superset/assets/src/explore/controls.jsx index 913d7fdc..3cd3151a 100644 --- a/superset/superset/assets/src/explore/controls.jsx +++ b/superset/superset/assets/src/explore/controls.jsx @@ -70,6 +70,8 @@ import { defaultViewport } from '../modules/geo'; import ColumnOption from '../components/ColumnOption'; import OptionDescription from '../components/OptionDescription'; +import { defaultScheme } from '../customization'; + const categoricalSchemeRegistry = getCategoricalSchemeRegistry(); const sequentialSchemeRegistry = getSequentialSchemeRegistry(); @@ -2021,7 +2023,7 @@ export const controls = { color_scheme: { type: 'ColorSchemeControl', label: t('Color Scheme'), - default: 'bnbColors', + default: defaultScheme, renderTrigger: true, choices: () => categoricalSchemeRegistry.keys().map(s => ([s, s])), description: t('The color scheme for rendering chart'), From f758a821f9782d6599c94c04c7ed0c345ed9264a Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Tue, 6 Aug 2019 13:47:38 +0200 Subject: [PATCH 5/6] Set default color_scheme in our charts Instead of using 'bnbColors' or 'd3Category10' in our charts, it will be used the default color_scheme: 'SUPERSET_DEFAULT' Signed-off-by: David Pordomingo --- srcd/dashboards/gitbase/overview.json | 8 ++++---- srcd/dashboards/metadata/collaboration.json | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/srcd/dashboards/gitbase/overview.json b/srcd/dashboards/gitbase/overview.json index 7c33feb2..c6208566 100644 --- a/srcd/dashboards/gitbase/overview.json +++ b/srcd/dashboards/gitbase/overview.json @@ -14,7 +14,7 @@ "datasource_name": "gitbase.admin admin-commit_merges-8X2HBrQre", "datasource_type": "table", "id": 9, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"14__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [\"commit_type\"], \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"COUNT(*)\", \"optionName\": \"metric_n4xn9emh55_60hid92bszp\", \"sqlExpression\": \"COUNT(*)\"}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 50000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 4, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"smart_date\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"be4154a6-726c-4dcc-bcff-da20558aaa55\", \"datasource_name\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"schema\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"14__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [\"commit_type\"], \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"COUNT(*)\", \"optionName\": \"metric_n4xn9emh55_60hid92bszp\", \"sqlExpression\": \"COUNT(*)\"}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 50000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 4, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"smart_date\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"be4154a6-726c-4dcc-bcff-da20558aaa55\", \"datasource_name\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"schema\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"database_name\": \"gitbase\"}", "slice_name": "Commits Evolution", "viz_type": "area" } @@ -91,7 +91,7 @@ "datasource_name": "gitbase.admin admin-commits_per_day-lGJ1u0Kbm", "datasource_type": "table", "id": 11, - "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"columns\": [\"commit_type\"], \"contribution\": false, \"datasource\": \"16__table\", \"granularity_sqla\": null, \"groupby\": [\"day\"], \"metrics\": [\"count\"], \"order_bars\": true, \"reduce_x_ticks\": false, \"row_limit\": 50000, \"show_bar_value\": true, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 6, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"Day of the week\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": \".3s\", \"y_axis_label\": \"Number of imports\", \"remote_id\": \"165563fc-6483-4c74-ad9b-13cba38c4752\", \"datasource_name\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"schema\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"columns\": [\"commit_type\"], \"contribution\": false, \"datasource\": \"16__table\", \"granularity_sqla\": null, \"groupby\": [\"day\"], \"metrics\": [\"count\"], \"order_bars\": true, \"reduce_x_ticks\": false, \"row_limit\": 50000, \"show_bar_value\": true, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 6, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"Day of the week\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": \".3s\", \"y_axis_label\": \"Number of imports\", \"remote_id\": \"165563fc-6483-4c74-ad9b-13cba38c4752\", \"datasource_name\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"schema\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"database_name\": \"gitbase\"}", "slice_name": "Number of commits per day of the week", "viz_type": "dist_bar" } @@ -113,7 +113,7 @@ "datasource_name": "null.admin admin-Untitled Query-0scA3HaD5", "datasource_type": "table", "id": 8, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"d3Category10\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"19__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"8d4124f8-568d-4e51-abf3-0118cf5d381e\", \"datasource_name\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"schema\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"19__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"8d4124f8-568d-4e51-abf3-0118cf5d381e\", \"datasource_name\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"schema\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"database_name\": \"gitbase\"}", "slice_name": "Number of commits to HEAD per month", "viz_type": "bar" } @@ -168,7 +168,7 @@ "datasource_name": "null.admin admin-Untitled Query-aI5FBm-R2", "datasource_type": "table", "id": 6, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"34__table\", \"granularity_sqla\": \"date_release\", \"groupby\": [\"repository_id\"], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": \"SUM\", \"column\": {\"column_name\": \"n\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 124, \"is_dttm\": false, \"optionName\": \"_col_n\", \"python_date_format\": null, \"type\": \"LONGLONG\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"SUM(n)\", \"optionName\": \"metric_uv459jfkfhb_jl45fbpfhpe\", \"sqlExpression\": null}], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"slice_id\": 21, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"20da1b7e-7da6-48a9-b506-494f6584b258\", \"datasource_name\": \"null.admin admin-Untitled Query-aI5FBm-R2\", \"schema\": \"null.admin admin-Untitled Query-aI5FBm-R2\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"34__table\", \"granularity_sqla\": \"date_release\", \"groupby\": [\"repository_id\"], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": \"SUM\", \"column\": {\"column_name\": \"n\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 124, \"is_dttm\": false, \"optionName\": \"_col_n\", \"python_date_format\": null, \"type\": \"LONGLONG\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"SUM(n)\", \"optionName\": \"metric_uv459jfkfhb_jl45fbpfhpe\", \"sqlExpression\": null}], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"slice_id\": 21, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"20da1b7e-7da6-48a9-b506-494f6584b258\", \"datasource_name\": \"null.admin admin-Untitled Query-aI5FBm-R2\", \"schema\": \"null.admin admin-Untitled Query-aI5FBm-R2\", \"database_name\": \"gitbase\"}", "slice_name": "Number of releases per month and repository", "viz_type": "bar" } diff --git a/srcd/dashboards/metadata/collaboration.json b/srcd/dashboards/metadata/collaboration.json index b24a7919..f2e27643 100644 --- a/srcd/dashboards/metadata/collaboration.json +++ b/srcd/dashboards/metadata/collaboration.json @@ -25,7 +25,7 @@ "datasource_name": "public.pr_created_at-RVVRcORPF", "datasource_type": "table", "id": 24, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"32__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 22, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"df9b4ac0-ac5c-4004-b85f-fddbfa0065f2\", \"datasource_name\": \"public.pr_created_at-RVVRcORPF\", \"schema\": \"public.pr_created_at-RVVRcORPF\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"32__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 22, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"df9b4ac0-ac5c-4004-b85f-fddbfa0065f2\", \"datasource_name\": \"public.pr_created_at-RVVRcORPF\", \"schema\": \"public.pr_created_at-RVVRcORPF\", \"database_name\": \"metadata\"}", "slice_name": "# of pull requests created", "viz_type": "area" } @@ -36,7 +36,7 @@ "datasource_name": "public.admin admin-pr_dates-4xBftRm5b", "datasource_type": "table", "id": 25, - "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"columns\": [], \"contribution\": false, \"datasource\": \"33__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [\"repository\"], \"metrics\": [{\"aggregate\": \"COUNT\", \"column\": {\"column_name\": \"merged_at\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 121, \"is_dttm\": true, \"optionName\": \"_col_merged_at\", \"python_date_format\": null, \"type\": \"DATETIME\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Merged\", \"optionName\": \"metric_jxumwoerhhf_6h4frowknyp\", \"sqlExpression\": null}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Closed\", \"optionName\": \"metric_ub9fmazo6sg_kfzd36b2uv\", \"sqlExpression\": \"COUNT(closed_at)-COUNT(merged_at)\"}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Open\", \"optionName\": \"metric_0bzo6iod7vl6_oxnj5hz10m\", \"sqlExpression\": \"COUNT(*)-COUNT(closed_at)\"}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 23, \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 30 days\", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"090f84ba-0c13-47d8-9661-75fc0b65dd5f\", \"datasource_name\": \"public.admin admin-pr_dates-4xBftRm5b\", \"schema\": \"public.admin admin-pr_dates-4xBftRm5b\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"columns\": [], \"contribution\": false, \"datasource\": \"33__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [\"repository\"], \"metrics\": [{\"aggregate\": \"COUNT\", \"column\": {\"column_name\": \"merged_at\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 121, \"is_dttm\": true, \"optionName\": \"_col_merged_at\", \"python_date_format\": null, \"type\": \"DATETIME\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Merged\", \"optionName\": \"metric_jxumwoerhhf_6h4frowknyp\", \"sqlExpression\": null}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Closed\", \"optionName\": \"metric_ub9fmazo6sg_kfzd36b2uv\", \"sqlExpression\": \"COUNT(closed_at)-COUNT(merged_at)\"}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Open\", \"optionName\": \"metric_0bzo6iod7vl6_oxnj5hz10m\", \"sqlExpression\": \"COUNT(*)-COUNT(closed_at)\"}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 23, \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 30 days\", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"090f84ba-0c13-47d8-9661-75fc0b65dd5f\", \"datasource_name\": \"public.admin admin-pr_dates-4xBftRm5b\", \"schema\": \"public.admin admin-pr_dates-4xBftRm5b\", \"database_name\": \"metadata\"}", "slice_name": "Most Active Repositories", "viz_type": "dist_bar" } @@ -47,7 +47,7 @@ "datasource_name": "public.pr_resolution-c5KRWDa_V", "datasource_type": "table", "id": 26, - "params": "{\"adhoc_filters\": [], \"color_scheme\": \"bnbColors\", \"datasource\": \"34__table\", \"granularity_sqla\": null, \"groupby\": [\"repository\", \"resolution_type\"], \"metric\": \"count\", \"row_limit\": 1000, \"secondary_metric\": null, \"slice_id\": 24, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"sunburst\", \"remote_id\": \"009d992c-b750-4886-8193-ed2f5f0e68c8\", \"datasource_name\": \"public.pr_resolution-c5KRWDa_V\", \"schema\": \"public.pr_resolution-c5KRWDa_V\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"color_scheme\": \"SUPERSET_DEFAULT\", \"datasource\": \"34__table\", \"granularity_sqla\": null, \"groupby\": [\"repository\", \"resolution_type\"], \"metric\": \"count\", \"row_limit\": 1000, \"secondary_metric\": null, \"slice_id\": 24, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"sunburst\", \"remote_id\": \"009d992c-b750-4886-8193-ed2f5f0e68c8\", \"datasource_name\": \"public.pr_resolution-c5KRWDa_V\", \"schema\": \"public.pr_resolution-c5KRWDa_V\", \"database_name\": \"metadata\"}", "slice_name": "Breakdown by Pull Request Outcome", "viz_type": "sunburst" } @@ -80,7 +80,7 @@ "datasource_name": "public.admin admin-pr_by_days-XSb1QtdX4", "datasource_type": "table", "id": 29, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"bnbColors\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"37__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"cardinal\", \"metrics\": [{\"aggregate\": \"AVG\", \"column\": {\"column_name\": \"days\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 138, \"is_dttm\": false, \"optionName\": \"_col_days\", \"python_date_format\": null, \"type\": \"FLOAT\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Average\", \"optionName\": \"metric_v6tqzr5nihp_l7qb802z3jo\", \"sqlExpression\": null}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"send_time_range\": false, \"show_brush\": \"auto\", \"show_legend\": true, \"show_markers\": true, \"slice_id\": 27, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"line\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_axis_label\": \"avg. # of days\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"459f2caf-abe7-4efc-90c0-b89c1c0b2561\", \"datasource_name\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"schema\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"37__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"cardinal\", \"metrics\": [{\"aggregate\": \"AVG\", \"column\": {\"column_name\": \"days\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 138, \"is_dttm\": false, \"optionName\": \"_col_days\", \"python_date_format\": null, \"type\": \"FLOAT\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Average\", \"optionName\": \"metric_v6tqzr5nihp_l7qb802z3jo\", \"sqlExpression\": null}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"send_time_range\": false, \"show_brush\": \"auto\", \"show_legend\": true, \"show_markers\": true, \"slice_id\": 27, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"line\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_axis_label\": \"avg. # of days\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"459f2caf-abe7-4efc-90c0-b89c1c0b2561\", \"datasource_name\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"schema\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"database_name\": \"metadata\"}", "slice_name": "Time to Merge Change Over Time", "viz_type": "line" } From eadfeb369dc7de8dc7ca33c48a01dbc7112ffee0 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Tue, 6 Aug 2019 14:41:57 +0200 Subject: [PATCH 6/6] Use simpler palettes for charts with only a few metrics Signed-off-by: David Pordomingo --- srcd/dashboards/gitbase/overview.json | 8 ++++---- srcd/dashboards/metadata/collaboration.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/srcd/dashboards/gitbase/overview.json b/srcd/dashboards/gitbase/overview.json index c6208566..6bb8074f 100644 --- a/srcd/dashboards/gitbase/overview.json +++ b/srcd/dashboards/gitbase/overview.json @@ -14,7 +14,7 @@ "datasource_name": "gitbase.admin admin-commit_merges-8X2HBrQre", "datasource_type": "table", "id": 9, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"14__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [\"commit_type\"], \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"COUNT(*)\", \"optionName\": \"metric_n4xn9emh55_60hid92bszp\", \"sqlExpression\": \"COUNT(*)\"}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 50000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 4, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"smart_date\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"be4154a6-726c-4dcc-bcff-da20558aaa55\", \"datasource_name\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"schema\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdRoyal\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"14__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [\"commit_type\"], \"line_interpolation\": \"linear\", \"metrics\": [{\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"COUNT(*)\", \"optionName\": \"metric_n4xn9emh55_60hid92bszp\", \"sqlExpression\": \"COUNT(*)\"}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 50000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 4, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"smart_date\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"be4154a6-726c-4dcc-bcff-da20558aaa55\", \"datasource_name\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"schema\": \"gitbase.admin admin-commit_merges-8X2HBrQre\", \"database_name\": \"gitbase\"}", "slice_name": "Commits Evolution", "viz_type": "area" } @@ -91,7 +91,7 @@ "datasource_name": "gitbase.admin admin-commits_per_day-lGJ1u0Kbm", "datasource_type": "table", "id": 11, - "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"columns\": [\"commit_type\"], \"contribution\": false, \"datasource\": \"16__table\", \"granularity_sqla\": null, \"groupby\": [\"day\"], \"metrics\": [\"count\"], \"order_bars\": true, \"reduce_x_ticks\": false, \"row_limit\": 50000, \"show_bar_value\": true, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 6, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"Day of the week\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": \".3s\", \"y_axis_label\": \"Number of imports\", \"remote_id\": \"165563fc-6483-4c74-ad9b-13cba38c4752\", \"datasource_name\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"schema\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdRoyal\", \"columns\": [\"commit_type\"], \"contribution\": false, \"datasource\": \"16__table\", \"granularity_sqla\": null, \"groupby\": [\"day\"], \"metrics\": [\"count\"], \"order_bars\": true, \"reduce_x_ticks\": false, \"row_limit\": 50000, \"show_bar_value\": true, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 6, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"Day of the week\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": \".3s\", \"y_axis_label\": \"Number of imports\", \"remote_id\": \"165563fc-6483-4c74-ad9b-13cba38c4752\", \"datasource_name\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"schema\": \"gitbase.admin admin-commits_per_day-lGJ1u0Kbm\", \"database_name\": \"gitbase\"}", "slice_name": "Number of commits per day of the week", "viz_type": "dist_bar" } @@ -113,7 +113,7 @@ "datasource_name": "null.admin admin-Untitled Query-0scA3HaD5", "datasource_type": "table", "id": 8, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"19__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"8d4124f8-568d-4e51-abf3-0118cf5d381e\", \"datasource_name\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"schema\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdRoyal\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"19__table\", \"granularity_sqla\": \"commit_author_when\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"reduce_x_ticks\": false, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_bar_value\": false, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": false, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"url_params\": {}, \"viz_type\": \"bar\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": null, \"y_axis_label\": \"\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"8d4124f8-568d-4e51-abf3-0118cf5d381e\", \"datasource_name\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"schema\": \"null.admin admin-Untitled Query-0scA3HaD5\", \"database_name\": \"gitbase\"}", "slice_name": "Number of commits to HEAD per month", "viz_type": "bar" } @@ -223,7 +223,7 @@ "datasource_name": "null.admin admin-Untitled Query-rpq4L7GFr", "datasource_type": "table", "id": 15, - "params": "{\"adhoc_filters\": [], \"bar_stacked\": false, \"bottom_margin\": 100, \"color_scheme\": \"SUPERSET_DEFAULT\", \"columns\": [], \"contribution\": false, \"datasource\": \"23__table\", \"granularity_sqla\": null, \"groupby\": [\"repository_id\"], \"metrics\": [{\"aggregate\": \"MAX\", \"column\": {\"column_name\": \"n\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 98, \"is_dttm\": false, \"python_date_format\": null, \"type\": \"LONGLONG\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"MAX(n)\", \"optionName\": \"metric_ozqrfezkw4o_zf5mkt49ns\", \"sqlExpression\": null}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": false, \"slice_id\": 14, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"url_params\": {}, \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"staggered\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"bdceb4b8-808e-47cc-84a3-f497d31c0dbc\", \"datasource_name\": \"null.admin admin-Untitled Query-rpq4L7GFr\", \"schema\": \"null.admin admin-Untitled Query-rpq4L7GFr\", \"database_name\": \"gitbase\"}", + "params": "{\"adhoc_filters\": [], \"bar_stacked\": false, \"bottom_margin\": 100, \"color_scheme\": \"srcdRoyal\", \"columns\": [], \"contribution\": false, \"datasource\": \"23__table\", \"granularity_sqla\": null, \"groupby\": [\"repository_id\"], \"metrics\": [{\"aggregate\": \"MAX\", \"column\": {\"column_name\": \"n\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 98, \"is_dttm\": false, \"python_date_format\": null, \"type\": \"LONGLONG\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": false, \"label\": \"MAX(n)\", \"optionName\": \"metric_ozqrfezkw4o_zf5mkt49ns\", \"sqlExpression\": null}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": false, \"slice_id\": 14, \"time_grain_sqla\": \"P1D\", \"time_range\": \"100 years ago : \", \"url_params\": {}, \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"staggered\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"bdceb4b8-808e-47cc-84a3-f497d31c0dbc\", \"datasource_name\": \"null.admin admin-Untitled Query-rpq4L7GFr\", \"schema\": \"null.admin admin-Untitled Query-rpq4L7GFr\", \"database_name\": \"gitbase\"}", "slice_name": "Total number of commits per repository", "viz_type": "dist_bar" } diff --git a/srcd/dashboards/metadata/collaboration.json b/srcd/dashboards/metadata/collaboration.json index f2e27643..adb7b9c5 100644 --- a/srcd/dashboards/metadata/collaboration.json +++ b/srcd/dashboards/metadata/collaboration.json @@ -25,7 +25,7 @@ "datasource_name": "public.pr_created_at-RVVRcORPF", "datasource_type": "table", "id": 24, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"32__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 22, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"df9b4ac0-ac5c-4004-b85f-fddbfa0065f2\", \"datasource_name\": \"public.pr_created_at-RVVRcORPF\", \"schema\": \"public.pr_created_at-RVVRcORPF\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdRoyal\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"32__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"line_interpolation\": \"linear\", \"metrics\": [\"count\"], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"show_brush\": \"auto\", \"show_controls\": false, \"show_legend\": true, \"slice_id\": 22, \"stacked_style\": \"stack\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"area\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_log_scale\": false, \"remote_id\": \"df9b4ac0-ac5c-4004-b85f-fddbfa0065f2\", \"datasource_name\": \"public.pr_created_at-RVVRcORPF\", \"schema\": \"public.pr_created_at-RVVRcORPF\", \"database_name\": \"metadata\"}", "slice_name": "# of pull requests created", "viz_type": "area" } @@ -36,7 +36,7 @@ "datasource_name": "public.admin admin-pr_dates-4xBftRm5b", "datasource_type": "table", "id": 25, - "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"columns\": [], \"contribution\": false, \"datasource\": \"33__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [\"repository\"], \"metrics\": [{\"aggregate\": \"COUNT\", \"column\": {\"column_name\": \"merged_at\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 121, \"is_dttm\": true, \"optionName\": \"_col_merged_at\", \"python_date_format\": null, \"type\": \"DATETIME\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Merged\", \"optionName\": \"metric_jxumwoerhhf_6h4frowknyp\", \"sqlExpression\": null}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Closed\", \"optionName\": \"metric_ub9fmazo6sg_kfzd36b2uv\", \"sqlExpression\": \"COUNT(closed_at)-COUNT(merged_at)\"}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Open\", \"optionName\": \"metric_0bzo6iod7vl6_oxnj5hz10m\", \"sqlExpression\": \"COUNT(*)-COUNT(closed_at)\"}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 23, \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 30 days\", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"090f84ba-0c13-47d8-9661-75fc0b65dd5f\", \"datasource_name\": \"public.admin admin-pr_dates-4xBftRm5b\", \"schema\": \"public.admin admin-pr_dates-4xBftRm5b\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"bar_stacked\": true, \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdOpaques\", \"columns\": [], \"contribution\": false, \"datasource\": \"33__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [\"repository\"], \"metrics\": [{\"aggregate\": \"COUNT\", \"column\": {\"column_name\": \"merged_at\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 121, \"is_dttm\": true, \"optionName\": \"_col_merged_at\", \"python_date_format\": null, \"type\": \"DATETIME\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Merged\", \"optionName\": \"metric_jxumwoerhhf_6h4frowknyp\", \"sqlExpression\": null}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Closed\", \"optionName\": \"metric_ub9fmazo6sg_kfzd36b2uv\", \"sqlExpression\": \"COUNT(closed_at)-COUNT(merged_at)\"}, {\"aggregate\": null, \"column\": null, \"expressionType\": \"SQL\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Open\", \"optionName\": \"metric_0bzo6iod7vl6_oxnj5hz10m\", \"sqlExpression\": \"COUNT(*)-COUNT(closed_at)\"}], \"order_bars\": false, \"reduce_x_ticks\": false, \"row_limit\": 1000, \"show_bar_value\": false, \"show_controls\": false, \"show_legend\": true, \"slice_id\": 23, \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 30 days\", \"viz_type\": \"dist_bar\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"y_axis_format\": null, \"y_axis_label\": \"\", \"remote_id\": \"090f84ba-0c13-47d8-9661-75fc0b65dd5f\", \"datasource_name\": \"public.admin admin-pr_dates-4xBftRm5b\", \"schema\": \"public.admin admin-pr_dates-4xBftRm5b\", \"database_name\": \"metadata\"}", "slice_name": "Most Active Repositories", "viz_type": "dist_bar" } @@ -80,7 +80,7 @@ "datasource_name": "public.admin admin-pr_by_days-XSb1QtdX4", "datasource_type": "table", "id": 29, - "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"SUPERSET_DEFAULT\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"37__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"cardinal\", \"metrics\": [{\"aggregate\": \"AVG\", \"column\": {\"column_name\": \"days\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 138, \"is_dttm\": false, \"optionName\": \"_col_days\", \"python_date_format\": null, \"type\": \"FLOAT\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Average\", \"optionName\": \"metric_v6tqzr5nihp_l7qb802z3jo\", \"sqlExpression\": null}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"send_time_range\": false, \"show_brush\": \"auto\", \"show_legend\": true, \"show_markers\": true, \"slice_id\": 27, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"line\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_axis_label\": \"avg. # of days\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"459f2caf-abe7-4efc-90c0-b89c1c0b2561\", \"datasource_name\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"schema\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"database_name\": \"metadata\"}", + "params": "{\"adhoc_filters\": [], \"annotation_layers\": [], \"bottom_margin\": \"auto\", \"color_scheme\": \"srcdRoyal\", \"comparison_type\": \"values\", \"contribution\": false, \"datasource\": \"37__table\", \"granularity_sqla\": \"created_at\", \"groupby\": [], \"left_margin\": \"auto\", \"line_interpolation\": \"cardinal\", \"metrics\": [{\"aggregate\": \"AVG\", \"column\": {\"column_name\": \"days\", \"database_expression\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"id\": 138, \"is_dttm\": false, \"optionName\": \"_col_days\", \"python_date_format\": null, \"type\": \"FLOAT\", \"verbose_name\": null}, \"expressionType\": \"SIMPLE\", \"fromFormData\": true, \"hasCustomLabel\": true, \"label\": \"Average\", \"optionName\": \"metric_v6tqzr5nihp_l7qb802z3jo\", \"sqlExpression\": null}], \"order_desc\": true, \"resample_fillmethod\": null, \"resample_how\": null, \"resample_rule\": null, \"rich_tooltip\": true, \"rolling_type\": \"None\", \"row_limit\": 1000, \"send_time_range\": false, \"show_brush\": \"auto\", \"show_legend\": true, \"show_markers\": true, \"slice_id\": 27, \"time_grain_sqla\": \"P1M\", \"time_range\": \"100 years ago : \", \"timeseries_limit_metric\": null, \"viz_type\": \"line\", \"x_axis_format\": \"%b/%y\", \"x_axis_label\": \"\", \"x_axis_showminmax\": false, \"x_ticks_layout\": \"auto\", \"y_axis_bounds\": [null, null], \"y_axis_format\": \".3s\", \"y_axis_label\": \"avg. # of days\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"remote_id\": \"459f2caf-abe7-4efc-90c0-b89c1c0b2561\", \"datasource_name\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"schema\": \"public.admin admin-pr_by_days-XSb1QtdX4\", \"database_name\": \"metadata\"}", "slice_name": "Time to Merge Change Over Time", "viz_type": "line" }