Skip to content
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

Inconsistencies between loopback remote and loopback memory in browser. #886

Closed
BerkeleyTrue opened this issue Dec 1, 2014 · 4 comments · Fixed by strongloop/strong-remoting#148
Assignees
Labels

Comments

@BerkeleyTrue
Copy link
Contributor

When working in the browser with loopback, using the find method returns different object types. Using a remote find method returns an array with plain objects with the models data and a plain JS Object as its constructor, while using the local model returns a modelConstructor with all the function expected.
developer_tools_-http___localhost_9002

@bajtos
Copy link
Member

bajtos commented Dec 4, 2014

Hi @BerkeleyTrue, thank you for reporting the bug. We have moved the remote connector to a new module, the fix will almost certainly require changes there.

https://github.com/strongloop/loopback-connector-remote

Having said that, it's ok to track this issue in the main loopback repo, please do not open another one in the connector repo.

@bajtos
Copy link
Member

bajtos commented Dec 4, 2014

BTW I don't think we will have time to work on this issue in the near future, would you mind looking into it yourself and contributing a fix?

@BerkeleyTrue
Copy link
Contributor Author

Alright, will look into it.

@BerkeleyTrue
Copy link
Contributor Author

See. strongloop/strong-remoting#148

@bajtos bajtos added this to the #Epic: Offline Sync V1 milestone Jan 9, 2015
@bajtos bajtos self-assigned this Jan 9, 2015
@bajtos bajtos added #sprint63 and removed #sprint63 labels Jan 9, 2015
@bajtos bajtos removed the #sprint62 label Jan 12, 2015
raymondfeng pushed a commit to strongloop/strong-remoting that referenced this issue Jan 15, 2015
2.11.1

 * Optimize the code to remove closure and bind (Raymond Feng)

 * Fix parsing JSON arrays with arrayItemDelimiters on. (Samuel Reed)

 * Add remote hooks to RestAdapter.invoke method Hooks on invoke are needed to use methods like User.login remotely from loopback-connector-remote. see #150 and #105 and strongloop/loopback#943 (Berkeley Martinez)

 * Ensure Remote-Connector Converts Types in Array Fix bug strongloop/loopback#886 (Berkeley Martinez)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants