From 302d40464b9ac8edabdd5bd79aed2eec1afec4fd Mon Sep 17 00:00:00 2001 From: wbrgss Date: Thu, 27 Aug 2020 18:56:31 -0400 Subject: [PATCH 01/59] Bump Flask due to https://github.com/pytest-dev/pytest/issues/5532 --- requires-install.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requires-install.txt b/requires-install.txt index a23dd78567..d3f2c163fc 100644 --- a/requires-install.txt +++ b/requires-install.txt @@ -1,4 +1,4 @@ -Flask>=1.0.2 +Flask>=1.0.4 flask-compress plotly dash_renderer==1.7.0 From 0b39bd5d00678338b3bdf41f8479bcddf60b1655 Mon Sep 17 00:00:00 2001 From: tcbegley Date: Sat, 7 Nov 2020 21:06:20 +0000 Subject: [PATCH 02/59] Generate Julia components with nested structure --- dash/development/_jl_components_generation.py | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/dash/development/_jl_components_generation.py b/dash/development/_jl_components_generation.py index 981b249d31..642221d678 100644 --- a/dash/development/_jl_components_generation.py +++ b/dash/development/_jl_components_generation.py @@ -4,7 +4,6 @@ import copy import os import shutil -import glob import warnings import sys import importlib @@ -526,14 +525,21 @@ def generate_module( os.makedirs("deps") - for javascript in glob.glob("{}/*.js".format(project_shortname)): - shutil.copy(javascript, "deps/") + for rel_dirname, _, filenames in os.walk(project_shortname): + for filename in filenames: + extension = os.path.splitext(filename)[1] - for css in glob.glob("{}/*.css".format(project_shortname)): - shutil.copy(css, "deps/") + if extension in [".py", ".pyc", ".json"]: + continue - for sourcemap in glob.glob("{}/*.map".format(project_shortname)): - shutil.copy(sourcemap, "deps/") + target_dirname = os.path.join( + "deps/", os.path.relpath(rel_dirname, project_shortname) + ) + + if not os.path.exists(target_dirname): + os.makedirs(target_dirname) + + shutil.copy(os.path.join(rel_dirname, filename), target_dirname) generate_package_file(project_shortname, components, pkg_data, prefix) generate_toml_file(project_shortname, pkg_data) From 918144e06fd0fbf75965c3563ed5fd7d510112a6 Mon Sep 17 00:00:00 2001 From: Jingning Zhang <50333592+jingningzhang1@users.noreply.github.com> Date: Mon, 9 Nov 2020 17:59:09 -0500 Subject: [PATCH 03/59] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 76868b5cff..e28b47688f 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ Built on top of Plotly.js, React and Flask, Dash ties modern UI elements like dr - [User Guide](https://dash.plotly.com/getting-started) -- [Offline (PDF) Documentation](https://github.com/plotly/dash-docs/blob/master/pdf-docs/Dash_User_Guide_and_Documentation.pdf) - - [Dash Docs on Heroku](https://dash-docs.herokuapp.com/) (for corporate network that cannot access plotly.com) - [Open-Source App Gallery](https://dash-gallery.plotly.host/Portal/) With sample code and templates! From 86e6785975575fc332e4f81d9709d33abe8ab7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= Date: Fri, 13 Nov 2020 11:18:10 +0100 Subject: [PATCH 04/59] Update pinned dependencies in order to use Dash on Py39 --- requires-testing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requires-testing.txt b/requires-testing.txt index 1b14e7d6e9..f22a1bf729 100644 --- a/requires-testing.txt +++ b/requires-testing.txt @@ -3,7 +3,7 @@ pytest==4.6.9;python_version=="2.7" pytest-sugar==0.9.4 pytest-mock==3.2.0;python_version>="3.0" pytest-mock==2.0.0;python_version=="2.7" -lxml==4.5.0 +lxml==4.6.1 selenium==3.141.0 percy==2.0.2 cryptography==3.0 From 7d23031ecc0b9fa6feb8793ee22592bbff79423b Mon Sep 17 00:00:00 2001 From: Harrisonn Griffin <36603687+harryturr@users.noreply.github.com> Date: Mon, 7 Dec 2020 11:36:08 -0500 Subject: [PATCH 05/59] [prerelease] bump version 1.18.0 (#1483) --- CHANGELOG.md | 2 ++ dash/version.py | 2 +- requires-install.txt | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31313657eb..9cc2151c43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to `dash` will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). +## [1.18.0] - 2020-12-07 + ## [1.17.0] - 2020-10-29 ### Changed - [#1442](https://github.com/plotly/dash/pull/1442) Update from React 16.13.0 to 16.14.0 diff --git a/dash/version.py b/dash/version.py index 30244104a5..6cea18d86c 100644 --- a/dash/version.py +++ b/dash/version.py @@ -1 +1 @@ -__version__ = "1.17.0" +__version__ = "1.18.0" diff --git a/requires-install.txt b/requires-install.txt index adc499b804..5f90cd5fb0 100644 --- a/requires-install.txt +++ b/requires-install.txt @@ -2,7 +2,7 @@ Flask>=1.0.2 flask-compress plotly dash_renderer==1.8.3 -dash-core-components==1.13.0 +dash-core-components>=1.13.0 dash-html-components==1.1.1 -dash-table==4.11.0 +dash-table>=4.11.0 future From d437d38219aa4b8bd04733bb35005b51c40567e9 Mon Sep 17 00:00:00 2001 From: harrisonn Date: Mon, 7 Dec 2020 16:13:59 -0500 Subject: [PATCH 06/59] stricten versions --- requires-install.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requires-install.txt b/requires-install.txt index 5f90cd5fb0..083a53dd23 100644 --- a/requires-install.txt +++ b/requires-install.txt @@ -2,7 +2,7 @@ Flask>=1.0.2 flask-compress plotly dash_renderer==1.8.3 -dash-core-components>=1.13.0 +dash-core-components==1.14.0 dash-html-components==1.1.1 -dash-table>=4.11.0 +dash-table==4.11.1 future From 6e3236ce0d8ba3d35a81299f7d65562bd568cf0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Rivet?= Date: Wed, 9 Dec 2020 08:24:02 -0500 Subject: [PATCH 07/59] Update CODEOWNERS --- .github/CODEOWNERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b98a20fb9a..0b9bec774f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,3 @@ # These owners will be the default owners for everything in # the repo. Unless a later match takes precedence -* @alexcjohnson @Marc-Andre-Rivet - -_r_* @alexcjohnson @Marc-Andre-Rivet @rpkyle +* @alexcjohnson @Marc-Andre-Rivet @rpkyle From d2bc002abd04d711339b6594075bef426e7b066f Mon Sep 17 00:00:00 2001 From: harrisonn Date: Wed, 9 Dec 2020 09:46:53 -0500 Subject: [PATCH 08/59] [prerelease] dash 1.18.1, loosen versions --- CHANGELOG.md | 2 ++ dash/version.py | 2 +- requires-install.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cc2151c43..ed58be33f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to `dash` will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). +## [1.18.1] - 2020-12-09 + ## [1.18.0] - 2020-12-07 ## [1.17.0] - 2020-10-29 diff --git a/dash/version.py b/dash/version.py index 6cea18d86c..4a7bff5447 100644 --- a/dash/version.py +++ b/dash/version.py @@ -1 +1 @@ -__version__ = "1.18.0" +__version__ = "1.18.1" diff --git a/requires-install.txt b/requires-install.txt index 083a53dd23..2a6df29fa9 100644 --- a/requires-install.txt +++ b/requires-install.txt @@ -2,7 +2,7 @@ Flask>=1.0.2 flask-compress plotly dash_renderer==1.8.3 -dash-core-components==1.14.0 +dash-core-components>=1.14.0 dash-html-components==1.1.1 dash-table==4.11.1 future From ce4852bf5c39369831874fd3c2391bb85db3e024 Mon Sep 17 00:00:00 2001 From: harrisonn Date: Wed, 9 Dec 2020 10:01:24 -0500 Subject: [PATCH 09/59] trigger build From 58bbf2c0912376a14fcd6a608c52909422c7711f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 10 Dec 2020 01:22:55 +1000 Subject: [PATCH 10/59] Fix spelling --- .github/pull_request_template.md | 6 +++--- .../error/CallbackGraph/CallbackGraphContainer.react.js | 4 ++-- .../components/error/CallbackGraph/CallbackGraphEffects.js | 6 +++--- dash-renderer/src/observers/prioritizedCallbacks.ts | 6 +++--- dash-renderer/src/reducers/profile.js | 2 +- tests/integration/test_integration.py | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1a66a491bc..c685706a69 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -11,6 +11,6 @@ ### optionals - [ ] I have added entry in the `CHANGELOG.md` -- [ ] If this PR needs a follow-up in **dash docs**, **community thread**, I have mentioned the relevant URLS as follow - - [ ] this github [#PR number]() updates the dash docs - - [ ] here is the show and tell thread in plotly dash community +- [ ] If this PR needs a follow-up in **dash docs**, **community thread**, I have mentioned the relevant URLS as follows + - [ ] this GitHub [#PR number]() updates the dash docs + - [ ] here is the show and tell thread in Plotly Dash community diff --git a/dash-renderer/src/components/error/CallbackGraph/CallbackGraphContainer.react.js b/dash-renderer/src/components/error/CallbackGraph/CallbackGraphContainer.react.js index 6acb49512c..5765ab4e6d 100644 --- a/dash-renderer/src/components/error/CallbackGraph/CallbackGraphContainer.react.js +++ b/dash-renderer/src/components/error/CallbackGraph/CallbackGraphContainer.react.js @@ -24,7 +24,7 @@ Cytoscape.use(dagre); Cytoscape.use(fcose); /* - * Generates all the elements (nodes, edeges) for the dependency graph. + * Generates all the elements (nodes, edges) for the dependency graph. */ function generateElements(graphs, profile, extraLinks) { const consumed = []; @@ -229,7 +229,7 @@ function CallbackGraph() { }; } - // Adds callbacks once cyctoscape is intialized. + // Adds callbacks once cyctoscape is initialized. useCytoscapeEffect( cy => { cytoscape.on('tap', 'node', e => setSelected(e.target)); diff --git a/dash-renderer/src/components/error/CallbackGraph/CallbackGraphEffects.js b/dash-renderer/src/components/error/CallbackGraph/CallbackGraphEffects.js index 05c777f8cc..3f42f51405 100644 --- a/dash-renderer/src/components/error/CallbackGraph/CallbackGraphEffects.js +++ b/dash-renderer/src/components/error/CallbackGraph/CallbackGraphEffects.js @@ -6,7 +6,7 @@ import {STATUS, STATUSMAP} from '../../../constants/constants'; * Finds all edges connected to a node and splits them by type. * * @param {Object} node - Cytoscape node. - * @returns {Object} - Object contaiing the edges, sorted by type. + * @returns {Object} - Object containing the edges, sorted by type. */ function getEdgeTypes(node) { const elements = node.connectedEdges(); @@ -30,7 +30,7 @@ export function updateSelectedNode(cy, id) { if (id) { const node = cy.getElementById(id); - // Highlght the selected node. + // Highlight the selected node. node.addClass('selected-node'); @@ -112,7 +112,7 @@ export function updateChangedProps(cy, id, props, flashTime = 500) { * * @param {Object} cy - Reference to the cytoscape instance. * @param {String} id - The id of the callback (i.e., it's output identifier) - * @param {Object} profile - The callback profiling infomration. + * @param {Object} profile - The callback profiling information. * @param {Number} flashTime - The time to flash classes for in ms. * @returns {undefined} */ diff --git a/dash-renderer/src/observers/prioritizedCallbacks.ts b/dash-renderer/src/observers/prioritizedCallbacks.ts index dfda545878..4651d41411 100644 --- a/dash-renderer/src/observers/prioritizedCallbacks.ts +++ b/dash-renderer/src/observers/prioritizedCallbacks.ts @@ -114,7 +114,7 @@ const observer: IStoreObserverDefinition = { } if (pickedAsyncCallbacks.length) { - const deffered = map( + const deferred = map( cb => ({ ...cb, ...getStash(cb, paths), @@ -126,7 +126,7 @@ const observer: IStoreObserverDefinition = { dispatch( aggregateCallbacks([ removePrioritizedCallbacks(pickedAsyncCallbacks), - addBlockedCallbacks(deffered) + addBlockedCallbacks(deferred) ]) ); @@ -165,7 +165,7 @@ const observer: IStoreObserverDefinition = { addExecutingCallbacks([executingCallback]) ]) ); - }, deffered); + }, deferred); } }, inputs: ['callbacks.prioritized', 'callbacks.completed'] diff --git a/dash-renderer/src/reducers/profile.js b/dash-renderer/src/reducers/profile.js index 28ba2d0ec1..2e70dd9b83 100644 --- a/dash-renderer/src/reducers/profile.js +++ b/dash-renderer/src/reducers/profile.js @@ -28,7 +28,7 @@ const defaultState = { const profile = (state = defaultState, action) => { if (action.type === 'UPDATE_RESOURCE_USAGE') { // Keep a record of the most recent change. This - // is subtly different from history.present becasue + // is subtly different from history.present because // it watches all props, not just inputs. const {id, usage, status} = action.payload; const statusMapped = STATUSMAP[status] || status; diff --git a/tests/integration/test_integration.py b/tests/integration/test_integration.py index fbd3ad4591..1506576807 100644 --- a/tests/integration/test_integration.py +++ b/tests/integration/test_integration.py @@ -152,7 +152,7 @@ def test_inin008_index_customization(dash_duo):