From 58bbf2c0912376a14fcd6a608c52909422c7711f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 10 Dec 2020 01:22:55 +1000 Subject: [PATCH] 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):