From 47a43e0ac5d55fc9e214079895f71af7c7e3c350 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:09:35 +0100 Subject: [PATCH 01/11] fix: Security upgrade cross-spawn from 7.0.3 to 7.0.6 (#2629) --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e02da7591..7bc9f8e1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8422,9 +8422,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", From e9c93b0781aa6919b5e1ad896dbb46ca953629ec Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 19 Nov 2024 13:16:38 +0000 Subject: [PATCH 02/11] chore(release): 6.0.0-alpha.20 [skip ci] # [6.0.0-alpha.20](https://github.com/ParsePlatform/parse-dashboard/compare/6.0.0-alpha.19...6.0.0-alpha.20) (2024-11-19) ### Bug Fixes * Security upgrade cross-spawn from 7.0.3 to 7.0.6 ([#2629](https://github.com/ParsePlatform/parse-dashboard/issues/2629)) ([47a43e0](https://github.com/ParsePlatform/parse-dashboard/commit/47a43e0ac5d55fc9e214079895f71af7c7e3c350)) --- changelogs/CHANGELOG_alpha.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changelogs/CHANGELOG_alpha.md b/changelogs/CHANGELOG_alpha.md index f66e69835..604899db8 100644 --- a/changelogs/CHANGELOG_alpha.md +++ b/changelogs/CHANGELOG_alpha.md @@ -1,3 +1,10 @@ +# [6.0.0-alpha.20](https://github.com/ParsePlatform/parse-dashboard/compare/6.0.0-alpha.19...6.0.0-alpha.20) (2024-11-19) + + +### Bug Fixes + +* Security upgrade cross-spawn from 7.0.3 to 7.0.6 ([#2629](https://github.com/ParsePlatform/parse-dashboard/issues/2629)) ([47a43e0](https://github.com/ParsePlatform/parse-dashboard/commit/47a43e0ac5d55fc9e214079895f71af7c7e3c350)) + # [6.0.0-alpha.19](https://github.com/ParsePlatform/parse-dashboard/compare/6.0.0-alpha.18...6.0.0-alpha.19) (2024-10-16) diff --git a/package-lock.json b/package-lock.json index 7bc9f8e1f..25d9550a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "parse-dashboard", - "version": "6.0.0-alpha.19", + "version": "6.0.0-alpha.20", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "parse-dashboard", - "version": "6.0.0-alpha.19", + "version": "6.0.0-alpha.20", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@babel/runtime": "7.20.13", diff --git a/package.json b/package.json index a3eba2e3c..686ebd3d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse-dashboard", - "version": "6.0.0-alpha.19", + "version": "6.0.0-alpha.20", "repository": { "type": "git", "url": "https://github.com/ParsePlatform/parse-dashboard" From c2728f22374999764a9a4e7d5d2a3b9e0cc05cb7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 8 Dec 2024 11:04:07 +0100 Subject: [PATCH 03/11] refactor: Bump path-to-regexp and express (#2630) --- package-lock.json | 22 ++++++++++++---------- package.json | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 25d9550a6..6a5b5be1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "copy-to-clipboard": "3.3.2", "core-js": "3.28.0", "csurf": "1.11.0", - "express": "4.21.1", + "express": "4.21.2", "graphiql": "2.0.8", "graphql": "16.8.1", "immutable": "4.1.0", @@ -10317,10 +10317,9 @@ } }, "node_modules/express": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", - "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", - "license": "MIT", + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", @@ -10341,7 +10340,7 @@ "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "0.1.10", + "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", @@ -10356,6 +10355,10 @@ }, "engines": { "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/express/node_modules/cookie": { @@ -19664,10 +19667,9 @@ } }, "node_modules/path-to-regexp": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", - "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==", - "license": "MIT" + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==" }, "node_modules/path-type": { "version": "4.0.0", diff --git a/package.json b/package.json index 686ebd3d8..f72718609 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "copy-to-clipboard": "3.3.2", "core-js": "3.28.0", "csurf": "1.11.0", - "express": "4.21.1", + "express": "4.21.2", "graphiql": "2.0.8", "graphql": "16.8.1", "immutable": "4.1.0", From 539e88348721bc100a80ae00de81a921bc2c53d4 Mon Sep 17 00:00:00 2001 From: Harshvardhan Sharma <91624754+vardhan0604@users.noreply.github.com> Date: Fri, 24 Jan 2025 05:29:55 +0530 Subject: [PATCH 04/11] fix: Info panel not showing when some apps miss infoPanel config (#2627) --- src/components/BrowserCell/BrowserCell.react.js | 4 ++-- src/components/Toolbar/Toolbar.react.js | 8 ++++---- src/dashboard/Data/Browser/Browser.react.js | 17 ++++++++++------- .../Data/Browser/BrowserToolbar.react.js | 6 +++++- src/dashboard/Data/Browser/DataBrowser.react.js | 10 ++++++---- 5 files changed, 27 insertions(+), 18 deletions(-) diff --git a/src/components/BrowserCell/BrowserCell.react.js b/src/components/BrowserCell/BrowserCell.react.js index 74614feb6..b794f13f6 100644 --- a/src/components/BrowserCell/BrowserCell.react.js +++ b/src/components/BrowserCell/BrowserCell.react.js @@ -294,7 +294,7 @@ export default class BrowserCell extends Component { this.props.setShowAggregatedData(true); this.props.setSelectedObjectId(this.props.objectId); if (this.props.isPanelVisible) { - this.props.callCloudFunction(this.props.objectId, this.props.className); + this.props.callCloudFunction(this.props.objectId, this.props.className, this.props.appId); } } @@ -649,7 +649,7 @@ export default class BrowserCell extends Component { isPanelVisible && ((e.shiftKey && !this.props.firstSelectedCell) || !e.shiftKey) ) { - callCloudFunction(this.props.objectId, this.props.className); + callCloudFunction(this.props.objectId, this.props.className, this.props.appId); } } handleCellClick(e, row, col); diff --git a/src/components/Toolbar/Toolbar.react.js b/src/components/Toolbar/Toolbar.react.js index aad773e70..670cd205d 100644 --- a/src/components/Toolbar/Toolbar.react.js +++ b/src/components/Toolbar/Toolbar.react.js @@ -15,7 +15,7 @@ import { useNavigate, useNavigationType, NavigationType } from 'react-router-dom const POPOVER_CONTENT_ID = 'toolbarStatsPopover'; -const Stats = ({ data, classwiseCloudFunctions, className }) => { +const Stats = ({ data, classwiseCloudFunctions, className, appId , appName}) => { const [selected, setSelected] = React.useState(null); const [open, setOpen] = React.useState(false); const buttonRef = React.useRef(); @@ -98,7 +98,7 @@ const Stats = ({ data, classwiseCloudFunctions, className }) => { setSelected(statsOptions[0]); }, []); - const rightMarginStyle = classwiseCloudFunctions && classwiseCloudFunctions[className] ? '120px' : 'initial'; + const rightMarginStyle = classwiseCloudFunctions && classwiseCloudFunctions[`${appId}${appName}`] && classwiseCloudFunctions[`${appId}${appName}`][className] ? '120px' : 'initial'; return ( <> @@ -140,9 +140,9 @@ const Toolbar = props => { - {props?.selectedData?.length ? : null} + {props?.selectedData?.length ? : null}
{props.children}
- {props.classwiseCloudFunctions && props.classwiseCloudFunctions[props.className] && ( + {props.classwiseCloudFunctions && props.classwiseCloudFunctions[`${props.appId}${props.appName}`] && props.classwiseCloudFunctions[`${props.appId}${props.appName}`][props.className] && (