parse-community / parse-community/parse-dashboard
Filter with authData "key does not exist" shows incorrect results
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and Parse Dashboard.
Issue Description
When setting a data browser filter on field authData, condition key does not exist, value facebook, it shows records that contain auth data with key facebook, but with the authData field empty. That means, not only does it show the records even though it should not show them, the record itself is incorrect as it has an empty authData field which is not the case.
Steps to reproduce
Given the following records in _User:
objectId: a,authData: (empty)objectId: b,authData: { 'facebook': ...}
Filter condition key does not exist, value facebook shows:
objectId: a,authData: (empty)objectId: b,authData: (empty)
but it should show:
objectId: a,authData: (empty)
Environment
Dashboard
- Parse Dashboard version:
6.0.0-alpha.11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the data browser with the two _User records and the authData filter described. Trace how the key does not exist condition is applied and how the returned authData values are displayed. Done means only object a appears and its empty authData remains accurate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100