parse-dashboard
parse-dashboard copied to clipboard
dashboard page do not auto refresh
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest versions of Parse Server and Parse Dashboard.
Issue Description
upload file, and display success in bottom of web page, and the file filed awlays "Uploading...."
and when i refresh the page by press "F5", the file filed display normal
Steps to reproduce
just upload file to file filed
Actual Outcome
Expected Outcome
upload success , and the file filed display the file name
Environment
Dashboard
- Parse Dashboard version:
3.2.1
- Browser (Safari, Chrome, Firefox, Edge, etc.):
Chrome
- Browser version:
96.0.4664.45
Server
- Parse Server version:
4.10.4
- Operating system:
ubuntu server 18.04
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Tencent Cloud
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
mongo:latest
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Tencent Cloud
Logs
> node index.js
(node:18) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./public/" in the "exports" field module resolution of the package at /parse/node_modules/extract-files/package.json.
Update this package.json to use a subpath pattern like "./public/*".
(Use `node --trace-deprecation ...` to show where the warning was created)
parse-server-example running on port 1337.
(node:18) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.
-->
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
const api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || appId,
masterKey: process.env.MASTER_KEY || masterKey, //Add your master key here. Keep it secret!
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed
supportedPushLocales: ["en"],
filesAdapter: cosAdapter,
});
const dashboard = ParseDashboard({
apps: [{
appId: process.env.APP_ID || appId,
appName: "Test",
masterKey: process.env.MASTER_KEY || masterKey,
production: true,
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',
javascriptKey: "parse123321"
}],
useEncryptedPasswords: false,
users: [{
pass: "123456",
user: "123456",
}],
},{
allowInsecureHTTP: true,
cookieSessionSecret: 'parse-serverless'
});
if i use
"parse-dashboard": "3.3.0-beta.3",
"parse-server": "4.5.0"
and update file, select file, it nothing happen!!
verbose: REQUEST for [PUT] /parse/classes/Test/zyeigAT3Z5: {
"icon": {
"__type": "File",
"name": "2fcacc3111dc371c08c62f4382955f3a_gh_241e4171e12f_1280.jpg",
"url": "http://localhost:1337/parse/files/123456/2fcacc3111dc371c08c62f43829
55f3a_gh_241e4171e12f_1280.jpg"
}
} {"body":{"icon":{"__type":"File","name":"2fcacc3111dc371c08c62f4382955f3a_gh_2
41e4171e12f_1280.jpg","url":"http://localhost:1337/parse/files/123456/2fcacc3111
dc371c08c62f4382955f3a_gh_241e4171e12f_1280.jpg"}},"headers":{"accept":"*/*","ac
cept-encoding":"gzip, deflate, br","accept-language":"zh-CN,zh;q=0.9,en-US;q=0.8
,en;q=0.7,af;q=0.6","connection":"keep-alive","content-length":"348","content-ty
pe":"text/plain","cookie":"Webstorm-71058de7=9c2a7676-2cde-4c00-ab1f-8f741f92e8e
8; session=eyJjc3JmU2VjcmV0IjoiOC1jWEdSOExhcE1TQ3FIenJieE5uYmlDIiwiZmxhc2giOnt9L
CJwYXNzcG9ydCI6eyJ1c2VyIjoicXEyMDA2MDAifX0=; session.sig=mGKrrBrJbnFSLOtx-XZMYVN
l1xc","host":"localhost:1337","origin":"http://localhost:1337","referer":"http:/
/localhost:1337/dashboard/apps/Test/browser/Test","sec-ch-ua":"\" Not A;Brand\";
v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"","sec-ch-ua-mobile":
"?0","sec-ch-ua-platform":"\"Windows\"","sec-fetch-dest":"empty","sec-fetch-mode
":"cors","sec-fetch-site":"same-origin","user-agent":"Mozilla/5.0 (Windows NT 10
.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safar
i/537.36"},"method":"PUT","url":"/parse/classes/Test/zyeigAT3Z5"}
(node:6192) [MONGODB DRIVER] DeprecationWarning: collection.findOneAndUpdate opt
ion [returnOriginal] is deprecated and will be removed in a later version.
verbose: RESPONSE from [PUT] /parse/classes/Test/zyeigAT3Z5: {
"response": {
"updatedAt": "2021-11-21T06:52:12.652Z"
}
} {"result":{"response":{"updatedAt":"2021-11-21T06:52:12.652Z"}}}
I use the prase-dashboard 3.2.1, the log display: file update success, but the file filed can not auto refresh normal...