From 82064bcf284ced2857c278d599dd31656741552f Mon Sep 17 00:00:00 2001 From: Faisal Nadeem Date: Tue, 15 Jun 2021 17:55:15 +0500 Subject: [PATCH 1/2] lowercase column error toast --- Parse-Dashboard/parse-dashboard-config.json | 70 +++++++++++++++++---- src/dashboard/Data/Browser/Browser.react.js | 6 +- 2 files changed, 60 insertions(+), 16 deletions(-) diff --git a/Parse-Dashboard/parse-dashboard-config.json b/Parse-Dashboard/parse-dashboard-config.json index 07941d1cbb..c4d73369e7 100644 --- a/Parse-Dashboard/parse-dashboard-config.json +++ b/Parse-Dashboard/parse-dashboard-config.json @@ -1,14 +1,58 @@ { - "apps": [ - { - "serverURL": "http://localhost:1338/parse", - "appId": "hello", - "masterKey": "world", - "appName": "", - "iconName": "", - "primaryBackgroundColor": "", - "secondaryBackgroundColor": "" - } - ], - "iconsFolder": "icons" -} \ No newline at end of file + "apps": [{ + "serverURL": "https://parseapi.back4app.com", + "appId": "IvWJni5qb3gqJWmOlwZtfCA67cw5bZDvGU539T9J", + "javascriptKey": "HZ8PgZPHAM9r2tNrsnsQL7DU4JakERIAPD3sVIQI", + "restKey": "HnIKdoowoqFxJHgK3azdsigxR4vw4RnQUzwdiqWs", + "clientKey": "3oFJ03aUAlCtMFPqYz8enTP89tvp7GIuwvQbQ2Oz", + "windowsKey": "BQDTuFI9Tw6Tlh7C3rvlbNiZ3r0JLv8yDj015b5e", + "webhookKey": "LnirDOXQo3PUnvHFrVJriukXtwhwxHcWROXTdm4k", + "apiKey": "cda6c643-056e-4006-8080-3322c125f05d", + "appName": "Sample Blog App", + "production": true, + "appNameForURL": "8d153178-ab63-47fc-a546-0743ba667043", + "feedbackEmail": "faisal@back4app.com", + "custom": { + "isGDPR": false, + "forceShowGDPRFields": false, + "showAdminPage": false, + "isOwner": true, + "isDatabasePublic": false + }, + "supportedPushLocales": [], + "graphQLServerURL": "https://parseapi.back4app.com/graphql", + "masterKey": "0bdT7LmVrpSBbjWYmmOGPuhEPVFBpQk4jJnvdv2d" + }, { + "serverURL": "https://parseapi.back4app.com", + "appId": "dvTjcE3x2STnpZo1x3iUpccY82ptKS2s9grRYP4b", + "javascriptKey": "LFiEhZBtFi7LCSJshF2YTc0coBKnSfZ0cJucJOlv", + "restKey": "BWkv4t7tvQO4PJcQvh3DJg3v2pkb1kDJqnD11tXH", + "clientKey": "jkwrEAfTFDrhLaapdZLIw5mTutXQvfLjWVYqdRM1", + "windowsKey": "4WGzrXvmbS8SRBjka34tcqkxEs8hNumtRlnjHmbC", + "webhookKey": "n6pbMF39n0GR7h4yg5HoKHRxyiPsks0mk1KycCHW", + "apiKey": "81432ee4-5076-460c-95e0-dd2b579ab648", + "appName": "FirstApp", + "production": true, + "appNameForURL": "1baa601c-a967-443a-905b-d5e7df17515a", + "feedbackEmail": "faisal@back4app.com", + "custom": { + "isGDPR": false, + "forceShowGDPRFields": false, + "showAdminPage": false, + "isOwner": true, + "isDatabasePublic": false + }, + "supportedPushLocales": [], + "graphQLServerURL": "https://parseapi.back4app.com/graphql", + "masterKey": "c05f1V3DmG04GPRD2nEbbeCQCXSEI9klRtAZ4jgh" + }], + "newFeaturesInLatestVersion": [], + "user": { + "email": "faisal@back4app.com", + "has_password": false, + "account_keys": [], + "name": "faisal@back4app.com", + "playDatabaseBrowserTutorial": true + } +} + diff --git a/src/dashboard/Data/Browser/Browser.react.js b/src/dashboard/Data/Browser/Browser.react.js index 74422f9a41..dde573c1c6 100644 --- a/src/dashboard/Data/Browser/Browser.react.js +++ b/src/dashboard/Data/Browser/Browser.react.js @@ -353,7 +353,7 @@ class Browser extends DashboardView { } this.state.counts[obj.className] += 1; } - + this.setState(state); }, error => { @@ -516,7 +516,7 @@ class Browser extends DashboardView { // Construct complex pagination query let equalityQuery = queryFromFilters(source, this.state.filters); let comp = this.state.data[this.state.data.length - 1].get(field); - + if (sortDir === '-') { query.lessThan(field, comp); equalityQuery.lessThan('objectId', this.state.data[this.state.data.length - 1].id); @@ -649,7 +649,7 @@ class Browser extends DashboardView { this.setState(state); }, (error) => { let msg = typeof error === 'string' ? error : error.message; - if (msg) { + if (msg && error.code !== 142) { msg = msg[0].toUpperCase() + msg.substr(1); } From bee4390625e3957460dc69d4009b6f66233f62f2 Mon Sep 17 00:00:00 2001 From: Faisal Nadeem Date: Tue, 15 Jun 2021 17:59:45 +0500 Subject: [PATCH 2/2] reverting config --- Parse-Dashboard/parse-dashboard-config.json | 68 ++++----------------- 1 file changed, 12 insertions(+), 56 deletions(-) diff --git a/Parse-Dashboard/parse-dashboard-config.json b/Parse-Dashboard/parse-dashboard-config.json index c4d73369e7..e5c4decbf3 100644 --- a/Parse-Dashboard/parse-dashboard-config.json +++ b/Parse-Dashboard/parse-dashboard-config.json @@ -1,58 +1,14 @@ { - "apps": [{ - "serverURL": "https://parseapi.back4app.com", - "appId": "IvWJni5qb3gqJWmOlwZtfCA67cw5bZDvGU539T9J", - "javascriptKey": "HZ8PgZPHAM9r2tNrsnsQL7DU4JakERIAPD3sVIQI", - "restKey": "HnIKdoowoqFxJHgK3azdsigxR4vw4RnQUzwdiqWs", - "clientKey": "3oFJ03aUAlCtMFPqYz8enTP89tvp7GIuwvQbQ2Oz", - "windowsKey": "BQDTuFI9Tw6Tlh7C3rvlbNiZ3r0JLv8yDj015b5e", - "webhookKey": "LnirDOXQo3PUnvHFrVJriukXtwhwxHcWROXTdm4k", - "apiKey": "cda6c643-056e-4006-8080-3322c125f05d", - "appName": "Sample Blog App", - "production": true, - "appNameForURL": "8d153178-ab63-47fc-a546-0743ba667043", - "feedbackEmail": "faisal@back4app.com", - "custom": { - "isGDPR": false, - "forceShowGDPRFields": false, - "showAdminPage": false, - "isOwner": true, - "isDatabasePublic": false - }, - "supportedPushLocales": [], - "graphQLServerURL": "https://parseapi.back4app.com/graphql", - "masterKey": "0bdT7LmVrpSBbjWYmmOGPuhEPVFBpQk4jJnvdv2d" - }, { - "serverURL": "https://parseapi.back4app.com", - "appId": "dvTjcE3x2STnpZo1x3iUpccY82ptKS2s9grRYP4b", - "javascriptKey": "LFiEhZBtFi7LCSJshF2YTc0coBKnSfZ0cJucJOlv", - "restKey": "BWkv4t7tvQO4PJcQvh3DJg3v2pkb1kDJqnD11tXH", - "clientKey": "jkwrEAfTFDrhLaapdZLIw5mTutXQvfLjWVYqdRM1", - "windowsKey": "4WGzrXvmbS8SRBjka34tcqkxEs8hNumtRlnjHmbC", - "webhookKey": "n6pbMF39n0GR7h4yg5HoKHRxyiPsks0mk1KycCHW", - "apiKey": "81432ee4-5076-460c-95e0-dd2b579ab648", - "appName": "FirstApp", - "production": true, - "appNameForURL": "1baa601c-a967-443a-905b-d5e7df17515a", - "feedbackEmail": "faisal@back4app.com", - "custom": { - "isGDPR": false, - "forceShowGDPRFields": false, - "showAdminPage": false, - "isOwner": true, - "isDatabasePublic": false - }, - "supportedPushLocales": [], - "graphQLServerURL": "https://parseapi.back4app.com/graphql", - "masterKey": "c05f1V3DmG04GPRD2nEbbeCQCXSEI9klRtAZ4jgh" - }], - "newFeaturesInLatestVersion": [], - "user": { - "email": "faisal@back4app.com", - "has_password": false, - "account_keys": [], - "name": "faisal@back4app.com", - "playDatabaseBrowserTutorial": true - } + "apps": [ + { + "serverURL": "http://localhost:1338/parse", + "appId": "hello", + "masterKey": "world", + "appName": "", + "iconName": "", + "primaryBackgroundColor": "", + "secondaryBackgroundColor": "" + } + ], + "iconsFolder": "icons" } -