forked from plotly/dash
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] dev from plotly:dev #329
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
558ab0c
update flask
T4rk1n a76d715
remove werkzeug version check from tests
T4rk1n d28bf30
fix lint
T4rk1n 2122fd3
Fix query string parsing regression introduced in 2.18.2 #3106
7aed2b8
Added changelog
b245768
Merge branch 'dev' into update-flask
T4rk1n dea0efa
fix async test werkzeug version check
T4rk1n e2fc683
Merge pull request #3333 from plotly/update-flask
T4rk1n 52f3fbc
Merge branch 'dev' into dev
T4rk1n 11fbbdf
Merge pull request #3341 from C0deBeez/dev
T4rk1n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
components/dash-core-components/tests/integration/store/test_data_lifecycle.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,18 +5,17 @@ | |
| import re | ||
| import sys | ||
| from fnmatch import fnmatch | ||
| from pathlib import Path | ||
| from os.path import isfile, join | ||
| from urllib.parse import parse_qs, unquote | ||
| from pathlib import Path | ||
| from urllib.parse import parse_qs | ||
|
|
||
| import flask | ||
|
|
||
| from . import _validate | ||
| from ._utils import AttributeDict | ||
| from ._get_paths import get_relative_path | ||
| from ._callback_context import context_value | ||
| from ._get_app import get_app | ||
|
|
||
| from ._get_paths import get_relative_path | ||
| from ._utils import AttributeDict | ||
|
|
||
| CONFIG = AttributeDict() | ||
| PAGE_REGISTRY = collections.OrderedDict() | ||
|
|
@@ -114,17 +113,14 @@ def _infer_module_name(page_path): | |
|
|
||
|
|
||
| def _parse_query_string(search): | ||
| search = unquote(search) | ||
| if search and len(search) > 0 and search[0] == "?": | ||
| search = search[1:] | ||
| else: | ||
| if not search or not search.startswith("?"): | ||
| return {} | ||
|
|
||
| parsed_qs = {} | ||
| for (k, v) in parse_qs(search).items(): | ||
| v = v[0] if len(v) == 1 else v | ||
| parsed_qs[k] = v | ||
| return parsed_qs | ||
| query_string = search[1:] | ||
|
|
||
| parsed_qs = parse_qs(query_string, keep_blank_values=True) | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good change adding keep_blank_values=True to preserve empty parameters in query string parsing |
||
| return {k: v[0] if len(v) == 1 else v for k, v in parsed_qs.items()} | ||
|
|
||
|
|
||
| def _parse_path_variables(pathname, path_template): | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improved linting configuration by separating rules for source vs test files