Skip to content

Parse-dashboard modifies the data of an array containing pointers into a different format #756

@LaChrome

Description

@LaChrome

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!

  • You're running version >=1.0.23 of Parse Dashboard.

  • You're running version >=2.3.2 of Parse Server.

  • You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

  • Parse Server v2.5.3 on AWS EB
  • NodeJS v4.2.0 (also tested on NodeJS v3.3.1)
  • Parse Dashboard v1.1.0
  • mongod version: 3.2.14 (MMAPv1) on MLAB
  • Safari 10.1.1 on MacOS 10.12.5

Steps to reproduce

In cloud code, I'm storing data in the __User table as an array of pointers with a createdDate like this:
var newsPointer = {"__type":"Pointer","className":"News","objectId":"5hRuMhTxFz"}; var todayNow = new Date(); var userEvent = { "news": newsPointer, "createdAt": todayNow }; userObject.add("newsEvents", userEvent);

1. This saves the data as expected when viewed in MLAB, or another raw data viewer:
img_4217

2. Then if viewed in Parse-Dashboard, the data appears in this format (no longer a pointer)
screen shot 2017-07-24 at 10 56 51 pm

3. If you then double click the cell data in "newsEvents", the data will be saved in that incorrect, modified format (screenshot taken with Parser app, after viewing the cell data in Parse-Dashboard):
img_4218

I can reproduce the above every time using Parse-Dashboard. To make things worse, intermittently the "news" data is shown as the whole object (showing all fields/data in the "news", where I expect to see the pointer data only).

Logs/Trace

Note: If you get a browser JS error please run npm run dev. This will provide source maps and a much more useful stack trace.

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