parse-dashboard
parse-dashboard copied to clipboard
On first class open column sorting is always descending
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
Steps to reproduce
- Go to data browser;
- Browse any class;
- Apply ascending sorting on any column;
- Switch to different class;
- Go back to the previous class;
Actual Outcome
Sorting seems to be descending.
Expected Outcome
Sorting should be ascending.
Environment
Dashboard
- Parse Dashboard version:
4.0.0-beta.1
- Browser (Safari, Chrome, Firefox, Edge, etc.):
Chrome
- Browser version:
97.0.4692.71
Server
- Parse Server version:
4.10.4
- Operating system:
Linux
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Google Cloud
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
4.4.11
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Logs
Nothing gets logged in browser' dev tools.
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.
Problem still exists on recent 4.0.0-BETA.2.
@visualfanatic Would you mind taking a look at this too? It also seems to be related to the changes in context. If that is in fact the case, I think we would need a more thorough review of https://github.com/parse-community/parse-dashboard/pull/1948 to see whether there may be a conceptual issue with the change, or maybe a different pattern that should be applied to more places in that PR.
I checked 4.0.0-alpha.4
which was released before the context changes and it seems like data browser behaves the same. Could you confirm that @404-html?
Thanks for checking @visualfanatic, and I can confirm that problem also exists on 4.0.0-alpha.4
version.
I ran git bisect and it pointed following commit: https://github.com/parse-community/parse-dashboard/commit/52c315adc64a5c64d21ba7a6bd8b33d501818ea9
Some of the logic could be indeed asynchronous, which looks kind of strange. Any idea @visualfanatic?
@404-html this one should fix the issue: https://github.com/parse-community/parse-dashboard/pull/2016
@mtrezza Unable to reproduce the issue with the latest versions, indicating that the fix has already been implemented. Can you please verify this and proceed with closing the issue?
Thanks for pointing this out, I assume that https://github.com/parse-community/parse-dashboard/pull/2016 has indeed fixed the issue then.