parse-community / parse-dashboard

A dashboard for managing Parse Server
https://parseplatform.org
Other
3.74k stars 1.39k forks source link

Can not save new _User object after deleting field value #1751

Open sadakchap opened 3 years ago

sadakchap commented 3 years ago

New Issue Checklist

Issue Description

Not able to save or create new objects after deleting one of the field values, using del key after selecting that field cell.

Steps to reproduce

Actual Outcome

Can not save new row, getting error You cannot use [object Object] as a query parameter.

Expected Outcome

should be able to save new row.

Pull Request

Environment

Dashboard

Server

Database

Logs

https://user-images.githubusercontent.com/44117648/127895519-d8cf0bc8-2ff8-49a3-9ee3-8b7bb229afe7.mp4

mtrezza commented 3 years ago

Thanks for reporting. Interesting find, I think we should try to merge all of the pending PRs over the next days and then see which issues still occur. A lot of PRs are changes in the Data Browser, so maybe the issue will self-resolve.

mtrezza commented 2 years ago

I am able to reproduce this with the latest version. The reason is that deleting a field creates a delete operation, although this is a new object to be saved:

_User request:

{
    "authData": {},
    "username": {
        "__op": "Delete"
    }
}

I classify this as bug with severity 4 (trivial).

The solution is to not set a delete operator when deleting a field while creating a new object.