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

Update legacy-juggler-bridge.ts function: toEntity #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hosiduy
Copy link
Owner

@hosiduy hosiduy commented Jun 22, 2018

Update legacy-juggler-bridge.ts function: toEntity(model)

Check whether the model we get back in toEntity is an instance of model or not.
Fixes loopbackio#1419
See also loopbackio#1378

Checklist

  • [x ] npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Related API Documentation was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in packages/example-* were updated

Update legacy-juggler-bridge.ts function: toEntity(model)
Copy link

@shimks shimks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hosiduy, could you open up the PR against https://github.com/strongloop/loopback-next (the upstream repository)?

Also, we require PRs for strongloop's repositories to have tests added for the code being changed. Could you add in the tests for toEntity in legacy-juggler-bridge.unit.ts?

@shimks
Copy link

shimks commented Aug 29, 2018

@hosiduy Just wanted to know if you would like to follow this PR up over at https://github.com/strongloop/loopback-next. Please let us know if you need any help with this

@hosiduy
Copy link
Owner Author

hosiduy commented Oct 8, 2018

@shimks Sorry for late rep. I don't know how to write test for this PR so can you help me with writing test for this PR.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants