Skip to content

Commit f495cf3

Browse files
committed
Merge branch 'dev' into master-2.3.1
2 parents 8ec69cc + 1ab5aba commit f495cf3

File tree

15 files changed

+138
-44
lines changed

15 files changed

+138
-44
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ jobs:
385385
PERCY_ENABLE: 1
386386
PERCY_PARALLEL_TOTAL: -1
387387

388-
parallelism: 4
388+
parallelism: 5
389389

390390
steps:
391391
- checkout:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [2.3.1] - 2022-03-29
6+
7+
### Fixed
8+
9+
- [#1963](https://github.com/plotly/dash/pull/1963) Fix [#1780](https://github.com/plotly/dash/issues/1780) flask shutdown deprecation warning when running dashduo threaded tests.
10+
- [#1995](https://github.com/plotly/dash/pull/1995) Fix [#1992](https://github.com/plotly/dash/issues/1992) ImportError: cannot import name 'get_current_traceback' from 'werkzeug.debug.tbtools'.
11+
512
## [2.3.0] - 2022-03-13
613

714
### Added

components/dash-table/tests/selenium/test_sizing.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import dash
2-
import pytest
32

43
from utils import (
5-
basic_modes,
64
get_props,
7-
generate_mock_data,
8-
generate_markdown_mock_data,
9-
generate_mixed_markdown_data,
105
)
116

127
from dash.dependencies import Input, Output
@@ -294,12 +289,7 @@ def test_szng002_percentages_result_in_same_widths(test):
294289
assert test.get_log_errors() == []
295290

296291

297-
@pytest.mark.parametrize("props", basic_modes)
298-
@pytest.mark.parametrize(
299-
"data_fn",
300-
[generate_mock_data, generate_markdown_mock_data, generate_mixed_markdown_data],
301-
)
302-
def test_szng004_on_focus(test, props, data_fn):
292+
def on_focus(test, props, data_fn):
303293
app = dash.Dash(__name__)
304294

305295
baseProps1 = get_props(data_fn=data_fn)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_mock_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
def test_szng004_on_focus(test, props):
13+
on_focus(test, props, generate_mock_data)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_markdown_mock_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
def test_szng005_on_focus(test, props):
13+
on_focus(test, props, generate_markdown_mock_data)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
3+
from test_sizing import on_focus
4+
5+
from utils import (
6+
basic_modes,
7+
generate_mixed_markdown_data,
8+
)
9+
10+
11+
@pytest.mark.parametrize("props", basic_modes)
12+
def test_szng006_on_focus(test, props):
13+
on_focus(test, props, generate_mixed_markdown_data)

dash/_dash_renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.11.3"
1+
__version__ = "1.11.4"
22

33
_js_dist_dependencies = [
44
{
@@ -39,7 +39,7 @@
3939
{
4040
"relative_package_path": "dash-renderer/build/dash_renderer.min.js",
4141
"dev_package_path": "dash-renderer/build/dash_renderer.dev.js",
42-
"external_url": "https://unpkg.com/[email protected].3"
42+
"external_url": "https://unpkg.com/[email protected].4"
4343
"/build/dash_renderer.min.js",
4444
"namespace": "dash",
4545
},

dash/_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import logging
99
import io
1010
import json
11+
import secrets
12+
import string
1113
from functools import wraps
1214

1315
logger = logging.getLogger()
@@ -206,3 +208,9 @@ def _wrapper(*args, **kwargs):
206208
return _wrapper
207209

208210
return wrapper
211+
212+
213+
def gen_salt(chars):
214+
return "".join(
215+
secrets.choice(string.ascii_letters + string.digits) for _ in range(chars)
216+
)

dash/dash-renderer/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash/dash-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-renderer",
3-
"version": "1.11.3",
3+
"version": "1.11.4",
44
"description": "render dash components in react",
55
"main": "build/dash_renderer.min.js",
66
"scripts": {

0 commit comments

Comments
 (0)