Skip to content

Commit f94bb4d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 7371d06 + e1c27ab commit f94bb4d

File tree

4 files changed

+89
-32
lines changed

4 files changed

+89
-32
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
# Parse Dashboard Changelog
22

33
# master
4-
[Full Changelog](https://github.com/parse-community/parse-dashboard/compare/2.2.0...master)
4+
[Full Changelog](https://github.com/parse-community/parse-dashboard/compare/3.0.0...master)
5+
6+
## New Features
7+
## Improvements
8+
## Fixes
9+
10+
# 3.0.0
11+
[Full Changelog](https://github.com/parse-community/parse-dashboard/compare/2.2.0...3.0.0)
12+
13+
## BREAKING CHANGE
14+
- Parse Dashboard requires Node >=12.0.0 <16.0.0
15+
- Reverts PR [#1706](https://github.com/parse-community/parse-dashboard/pull/1706) which introduced new database index requirements for pagination and was a breaking change that can lead to database performance issues if database indices were not adapted; reverting #1706 removes the `objectId` from the compound query; make sure that the database indices satisfy your dashboard sorting and filter usage before upgrading to this release to prevent database performance issues due to missing indices (Christopher Brookes) [#1800](https://github.com/parse-community/parse-dashboard/pull/1800)
516

617
## New Features
718
- Add multi-factor authentication to dashboard login. To use one-time password, run `parse-dashboard --createMFA` or `parse-dashboard --createUser`. (Daniel Blyth) [#1624](https://github.com/parse-community/parse-dashboard/pull/1624)
819

920
## Improvements
21+
- Sidebar: Class counts are now updated when all counts are returned instead of after each call (Christopher Brookes) [#1802](https://github.com/parse-community/parse-dashboard/pull/1802)
1022
- Update sass to 5.0.0 and make docker image use node:lts-alpine (Corey Baker) [#1792](https://github.com/parse-community/parse-dashboard/pull/1792)
1123
- Docker image use now node 12 version (Christopher Brookes) [#1788](https://github.com/parse-community/parse-dashboard/pull/1788)
1224
- CI now pushes docker images to Docker Hub (Corey Baker) [#1781](https://github.com/parse-community/parse-dashboard/pull/1781)
@@ -15,7 +27,6 @@
1527
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)
1628

1729
## Fixes
18-
- Revert PR [#1706](https://github.com/parse-community/parse-dashboard/pull/1706) which introduced new database index requirements for pagination and was a breaking change that can lead to database performance issues if database indices are not adapted (Christopher Brookes) [#1800](https://github.com/parse-community/parse-dashboard/pull/1800)
1930
- Fixed bug after creating new class, wrong CLP was shown for that class [#1784](https://github.com/parse-community/parse-dashboard/issues/1784) (Prerna Mehra) [#1785](https://github.com/parse-community/parse-dashboard/pull/1785)
2031
- Fixed bug when opening a big modal, modal content is not visible due to Sidebar (Prerna Mehra) [#1777](https://github.com/parse-community/parse-dashboard/pull/1778)
2132
- Fixed UI for a field containing an array of pointers (Prerna Mehra) [#1776](https://github.com/parse-community/parse-dashboard/pull/1776)

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-dashboard",
3-
"version": "2.2.0",
3+
"version": "3.0.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/ParsePlatform/parse-dashboard"
@@ -59,7 +59,7 @@
5959
"parse": "3.3.0",
6060
"passport": "0.4.1",
6161
"passport-local": "1.0.0",
62-
"prismjs": "1.24.1",
62+
"prismjs": "1.25.0",
6363
"prop-types": "15.7.2",
6464
"qrcode": "1.4.4",
6565
"query-string": "6.14.1",
@@ -72,8 +72,8 @@
7272
"react-json-view": "1.21.3",
7373
"react-popper-tooltip": "4.3.0",
7474
"react-redux": "5.1.2",
75-
"react-router": "5.1.2",
76-
"react-router-dom": "5.1.2",
75+
"react-router": "5.2.1",
76+
"react-router-dom": "5.2.1",
7777
"regenerator-runtime": "0.13.8",
7878
"semver": "7.3.4"
7979
},

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Browser extends DashboardView {
6464

6565
relation: null,
6666
counts: {},
67+
computingClassCounts: false,
6768
filteredCounts: {},
6869
clp: {},
6970
filters: new List(),
@@ -605,12 +606,21 @@ class Browser extends DashboardView {
605606
});
606607
}
607608

608-
handleFetchedSchema() {
609-
this.props.schema.data.get('classes').forEach((_, className) => {
610-
this.context.currentApp.getClassCount(className)
611-
.then(count => this.setState({ counts: { [className]: count, ...this.state.counts } }));
612-
})
613-
this.setState({clp: this.props.schema.data.get('CLPs').toJS()});
609+
async handleFetchedSchema() {
610+
const counts = this.state.counts;
611+
if (this.state.computingClassCounts === false) {
612+
this.setState({ computingClassCounts: true });
613+
for (const parseClass of this.props.schema.data.get('classes')) {
614+
const [className] = parseClass;
615+
counts[className] = await this.context.currentApp.getClassCount(className);
616+
}
617+
618+
this.setState({
619+
clp: this.props.schema.data.get('CLPs').toJS(),
620+
counts,
621+
computingClassCounts: false
622+
});
623+
}
614624
}
615625

616626
async refresh() {

0 commit comments

Comments
 (0)