Skip to content

The dashboard does not work well with nested objects #983

Closed

Description

@dannywolfmx

Hi.

I have the next issue:

When I save a list of generic objects and one of their children is a Parse.Pointer the dashboard does not interpret it well

Example
Original array with nested object

[
    {
        "text": "Hello",
        "myPointerObject": {
            "__type": "Pointer",
            "className": "Producto",
            "objectId": "K4vUSfxkMx"
        }
    }

]

And parse dashboard made the next evaluation:

Bad formed array with nested object

[
    {
        "text": "Hello",
        "myPointerObject":{
            "objectId": "K4vUSfxkMx"
        }
    }

]

The problem comes when you try to see the whole json, and the auto-save sistema of dashboard overwrite the original object to the bad formed.

I already fix the issue in the parse dashboard code, tomorrow i will make a PR with the solution.

Activity

  1. masonlee commented on Mar 12, 2019

    @masonlee

    I am running into this same issue. It looks like the Parse Dashboard is somehow making "__type" and "className" properties invisible. They are present in the mongodb entry.

  2. dannywolfmx commented on Mar 12, 2019

    @dannywolfmx
    Author

    Hi, I already made a PR solving the issue, but is still waiting to revision.

  3. stale commented on May 4, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. added
    state:wont-fix
    on May 4, 2019
  5. douglasmuraoka commented on Aug 13, 2019

    @douglasmuraoka
    Contributor

    @dplewis can't we just render and edit the array/object just as it was stored in the database?
    It sounds like a mistake to handle Parse.Objects inside the generic array/object, since, well... that's generic and could store anything.

  6. removed
    state:wont-fix
    on Aug 13, 2019
  7. added a commit that references this issue on Aug 14, 2019
    fc6058c
  8. added a commit that references this issue on Aug 15, 2019
    972d95c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions