parse-community / parse-community/parse-dashboard

Filter with authData "key does not exist" shows incorrect results

Open
#2,600 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:bug
Dominant language
JavaScript
Stars
3.8k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

New Issue Checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.