Skip to content

Commit

Permalink
Release v0.6.2
Browse files Browse the repository at this point in the history
# Release notes

## dff.stats

- Fix tests for statistics module (#272)
- Dashboard config now persists after restart (#227)
- Fix several bugs with SQL statements for datasets (#227)
- Update guide with information about custom charts (#227)
- Add text descriptions for charts in dashboard (#227)
- Various chart fixes (#227)


## Other

- Update PR template (#258)
- Small doc fixesRelease v0.6.2
  • Loading branch information
RLKRo authored Nov 10, 2023
2 parents 3e37ae3 + a2483b1 commit 8b397d0
Show file tree
Hide file tree
Showing 58 changed files with 3,205 additions and 1,416 deletions.
3 changes: 2 additions & 1 deletion .env_file
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ CLICKHOUSE_USER=username
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
CLICKHOUSE_PASSWORD=pass
SUPERSET_USERNAME=superset
SUPERSET_PASSWORD=superset
SUPERSET_PASSWORD=superset
SUPERSET_METADATA_PORT=5433
17 changes: 12 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Description

*Please describe here what changes are made and why. If this pull request fixes a GitHub issue, reference it.*
*Please describe here what changes are made and why.*

# Checklist

- [ ] I have covered the code with tests
- [ ] I have added comments to my code to help others understand it
- [ ] I have updated the documentation to reflect the changes
- [ ] I have performed a self-review of the changes
- [ ] I have performed a self-review of the changes

*List here tasks to do in order to complete this PR.*

# To Consider

- Add tests (if functionality is changed)
- Update API reference / tutorials / guides
- Update CONTRIBUTING.md (if devel workflow is changed)
- Update `.ignore` files, scripts (such as `lint`), distribution manifest (if files are added/deleted)
- Search for references to changed entities in the codebase
64 changes: 0 additions & 64 deletions .github/process_github_events.py

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/event_handler.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/update_dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- 'master'
paths:
- 'dff/utils/docker/dockerfile_stats'
- 'dff/utils/docker/entrypoint_stats.sh'
- 'dff/utils/docker/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion dff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = "Denis Kuznetsov"
__email__ = "[email protected]"
__version__ = "0.6.1"
__version__ = "0.6.2"


import nest_asyncio
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
slice_name: Current topic slot [bar chart]
description: null
certified_by: null
certification_details: null
viz_type: dist_bar
params:
datasource: 3__table
viz_type: dist_bar
slice_id: 6
granularity_sqla: start_time
time_range: No filter
metrics:
- count
adhoc_filters:
- clause: WHERE
comparator: get_slots
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_sz14lhn7d1d_c0zqn5dpgk
isExtra: false
isNew: false
operator: ==
operatorId: EQUALS
sqlExpression: null
subject: data_key
- clause: WHERE
comparator: null
datasourceWarning: false
expressionType: SQL
filterOptionName: filter_945dhn41x2m_sci7gkxy7o
isExtra: false
isNew: false
operator: null
sqlExpression: JSON_VALUE(data, '$.current_topic') <> ''
subject: null
groupby:
- request_id
columns:
- expressionType: SQL
label: My column
sqlExpression: JSON_VALUE(data, '$.current_topic')
datasourceWarning: false
row_limit: 10000
order_desc: true
color_scheme: echarts4Colors
show_legend: true
rich_tooltip: true
bar_stacked: true
order_bars: false
y_axis_format: SMART_NUMBER
y_axis_label: Topic counts
y_axis_bounds:
- null
- null
x_axis_label: Dialog turn
bottom_margin: auto
x_ticks_layout: auto
extra_form_data: {}
dashboards:
- 1
query_context: '{"datasource":{"id":3,"type":"table"},"force":false,"queries":[{"time_range":"No
filter","granularity":"start_time","filters":[{"col":"data_key","op":"==","val":"get_slots"}],"extras":{"having":"","where":"(JSON_VALUE(data,
''$.current_topic'') <> '''')"},"applied_time_extras":{},"columns":["request_id",{"expressionType":"SQL","label":"My
column","sqlExpression":"JSON_VALUE(data, ''$.current_topic'')","datasourceWarning":false}],"metrics":["count"],"annotation_layers":[],"row_limit":10000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{}}],"form_data":{"datasource":"3__table","viz_type":"dist_bar","slice_id":6,"granularity_sqla":"start_time","time_range":"No
filter","metrics":["count"],"adhoc_filters":[{"clause":"WHERE","comparator":"get_slots","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_sz14lhn7d1d_c0zqn5dpgk","isExtra":false,"isNew":false,"operator":"==","operatorId":"EQUALS","sqlExpression":null,"subject":"data_key"},{"clause":"WHERE","comparator":null,"datasourceWarning":false,"expressionType":"SQL","filterOptionName":"filter_945dhn41x2m_sci7gkxy7o","isExtra":false,"isNew":false,"operator":null,"sqlExpression":"JSON_VALUE(data,
''$.current_topic'') <> ''''","subject":null}],"groupby":["request_id"],"columns":[{"expressionType":"SQL","label":"My
column","sqlExpression":"JSON_VALUE(data, ''$.current_topic'')","datasourceWarning":false}],"row_limit":10000,"order_desc":true,"color_scheme":"echarts4Colors","show_legend":true,"rich_tooltip":true,"bar_stacked":true,"order_bars":false,"y_axis_format":"SMART_NUMBER","y_axis_label":"Topic
counts","y_axis_bounds":[null,null],"x_axis_label":"Dialog turn","bottom_margin":"auto","x_ticks_layout":"auto","extra_form_data":{},"dashboards":[1],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: a70c05d0-770b-4068-a55d-934283f5b1bb
version: 1.0.0
dataset_uuid: 8ba2e188-2bf8-4809-a5ee-2477a539d493
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
slice_name: Current topic [time series bar chart]
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_bar
params:
datasource: 3__table
viz_type: echarts_timeseries_bar
slice_id: 10
granularity_sqla: start_time
time_grain_sqla: PT1M
time_range: No filter
metrics:
- count
groupby:
- datasourceWarning: false
expressionType: SQL
label: context_id
sqlExpression: JSON_VALUE(data, '$.current_topic')
adhoc_filters:
- clause: WHERE
comparator: get_slots
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_8tft5fr07ea_urtdezftgn
isExtra: false
isNew: false
operator: ==
operatorId: EQUALS
sqlExpression: null
subject: data_key
- clause: WHERE
comparator: null
datasourceWarning: false
expressionType: SQL
filterOptionName: filter_4ffdpny1zzm_vmlo11yw7i
isExtra: false
isNew: false
operator: null
sqlExpression: JSON_VALUE(data, '$.current_topic') <> ''
subject: null
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
orientation: vertical
x_axis_title: Time axis
x_axis_title_margin: 30
y_axis_title: Value counts over time
y_axis_title_margin: 30
y_axis_title_position: Left
color_scheme: echarts4Colors
show_value: false
stack: true
only_total: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
y_axis_format: SMART_NUMBER
y_axis_bounds:
- null
- null
rich_tooltip: true
tooltipSortByMetric: true
tooltipTimeFormat: smart_date
extra_form_data: {}
dashboards:
- 1
query_context: '{"datasource":{"id":3,"type":"table"},"force":false,"queries":[{"time_range":"No
filter","granularity":"start_time","filters":[{"col":"data_key","op":"==","val":"get_slots"}],"extras":{"time_grain_sqla":"PT1M","having":"","where":"(JSON_VALUE(data,
''$.current_topic'') <> '''')"},"applied_time_extras":{},"columns":[{"datasourceWarning":false,"expressionType":"SQL","label":"context_id","sqlExpression":"JSON_VALUE(data,
''$.current_topic'')"}],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10000,"series_columns":[{"datasourceWarning":false,"expressionType":"SQL","label":"context_id","sqlExpression":"JSON_VALUE(data,
''$.current_topic'')"}],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"is_timeseries":true,"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["__timestamp"],"columns":["context_id"],"aggregates":{"count":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"rename","options":{"columns":{"count":null},"level":0,"inplace":true}},{"operation":"flatten"}]}],"form_data":{"datasource":"3__table","viz_type":"echarts_timeseries_bar","slice_id":10,"granularity_sqla":"start_time","time_grain_sqla":"PT1M","time_range":"No
filter","metrics":["count"],"groupby":[{"datasourceWarning":false,"expressionType":"SQL","label":"context_id","sqlExpression":"JSON_VALUE(data,
''$.current_topic'')"}],"adhoc_filters":[{"clause":"WHERE","comparator":"get_slots","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_8tft5fr07ea_urtdezftgn","isExtra":false,"isNew":false,"operator":"==","operatorId":"EQUALS","sqlExpression":null,"subject":"data_key"},{"clause":"WHERE","comparator":null,"datasourceWarning":false,"expressionType":"SQL","filterOptionName":"filter_4ffdpny1zzm_vmlo11yw7i","isExtra":false,"isNew":false,"operator":null,"sqlExpression":"JSON_VALUE(data,
''$.current_topic'') <> ''''","subject":null}],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"orientation":"vertical","x_axis_title":"Time
axis","x_axis_title_margin":30,"y_axis_title":"Value counts over time","y_axis_title_margin":30,"y_axis_title_position":"Left","color_scheme":"echarts4Colors","show_value":false,"stack":true,"only_total":true,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","y_axis_format":"SMART_NUMBER","y_axis_bounds":[null,null],"rich_tooltip":true,"tooltipSortByMetric":true,"tooltipTimeFormat":"smart_date","extra_form_data":{},"dashboards":[1],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: f8215b4d-cdaf-489a-90b2-040da840ab35
version: 1.0.0
dataset_uuid: 8ba2e188-2bf8-4809-a5ee-2477a539d493

This file was deleted.

Loading

0 comments on commit 8b397d0

Please sign in to comment.