Skip to content

Array of Pointers issue with displaying data #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gateway opened this issue Mar 7, 2016 · 6 comments
Closed

Array of Pointers issue with displaying data #105

gateway opened this issue Mar 7, 2016 · 6 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@gateway
Copy link
Contributor

gateway commented Mar 7, 2016

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

@drew-gross
Copy link
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.

@drew-gross
Copy link
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.

@gateway
Copy link
Contributor Author

gateway commented Mar 7, 2016

@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?

@drew-gross
Copy link
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.

@drew-gross drew-gross added the type:bug Impaired feature or lacking behavior that is likely assumed label Mar 7, 2016
@gateway
Copy link
Contributor Author

gateway commented Mar 7, 2016

👍

peterdotjs added a commit that referenced this issue Mar 9, 2016
Fix issues with arrays contiaining null or pointers to users. Fixes #105.
@gateway
Copy link
Contributor Author

gateway commented Mar 9, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants