Skip to content

Array of Pointers issue with displaying data #105

Closed

Description

@gateway

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

  • [ x] You're running version >=2.1.4 of Parse Server.
  • [x ] You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

OSX Dashboard

Steps to reproduce

In the old version of the Parse Server we are saving a array of pointers to facebook friends.. something similar to this:

[{"__type":"Pointer","className":"_User","objectId":"eLNmQ8vx39"},{"__type":"Pointer","className":"_User","objectId":"WCCx0rNaki"}]

When you look at it in the new dashboard it has a bunch of extraneous data, basically all the info from the users in the array instead of a nice array listed above.

Data in New Dashboard for that same column.

image

Old Dashboard

image

EDIT: Checked MongoLab (Mlab) to view the data in the database here is the raw data

image

Logs/Trace

Activity

  1. drew-gross commented on Mar 7, 2016

    @drew-gross
    Contributor

    That looks like pointer is getting inflated into an object at some point, when it shouldn't be. This might be an issue with Parse Server. Can check the console and show the response to the classes/_User request? I want to to determine if the server is inflating when it shouldn't or if the dashboard is doing the inflation.

  2. drew-gross commented on Mar 7, 2016

    @drew-gross
    Contributor

    That does look like an issue. Does it happen with all arrays of pointers, only arrays of pointers to users, or only to this specific column? A short script or set of steps that reproduces the issue would be very helpful in finding the root cause.

  3. gateway commented on Mar 7, 2016

    @gateway
    ContributorAuthor

    @drew-gross well its in swift in our iOS app.. I can paste the function.. but I would assume doing this in php or js wouldnt be to hard.. Loop though 3 existing users and add them as an array of pointers.. granted we get all the other users data in the browser, their access token, etc.. as you can see above.. thoughts?

  4. drew-gross commented on Mar 7, 2016

    @drew-gross
    Contributor

    OK, I've managed to reproduce the issue. This does seem to be an issue with the dashboard, and not the server. I'll look into a fix.

  5. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    on Mar 7, 2016
  6. gateway commented on Mar 7, 2016

    @gateway
    ContributorAuthor

    👍

  7. added a commit that references this issue on Mar 9, 2016
    417654d
  8. added a commit that references this issue on Mar 9, 2016
    dfeaab4
  9. gateway commented on Mar 9, 2016

    @gateway
    ContributorAuthor

    I can confirm this is fixed on my end.. thanks.

  10. added a commit that references this issue on Nov 29, 2019
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

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions