-
Notifications
You must be signed in to change notification settings - Fork 92
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
Modify RestAdapter to allow disabling errorHandler #248
Conversation
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
👍 |
@slnode ok to test |
Hi @digitalsadhu, thank you for the pull request. Could you please add some unit-tests to verify the implementation and prevent regressions in the future? See f26a871 for an inspiration. |
@bajtos tests added, still seeing failing checks there. Not sure how I would resolve those as tests are all passing for me. Can you point me in the right direction? |
LGTM. @ritch would you like to take a look at this change yourself too?
Those test failures are in projects that are using strong-remoting as a dependency. I think it's the loopback-example-oracle repository that is failing unit-tests because the oracle driver does not support Node v4.x yet. @rmg any ideas how to fix this false alert? @digitalsadhu don't worry about those dependent builds, I am ok to land the PR with loopback-example-oracle failing. Could you please squash the commits into a single one? |
@bajtos Squashed |
@digitalsadhu a nitpick, could you please fix the commit message to use the correct option name |
I asked @ritch to review and land this, I am on vacation tomorrow. |
options.handleErrors = false will allow the RestAdapter to be bypassed
@bajtos they aren't warnings, the loopback-example-recipes module has a hard dependency on loopback-connector-oracle :-( I've opened an issue for it: strongloop/loopback-example-recipes#8 |
@bajtos how are we looking? |
Modify RestAdapter to allow disabling errorHandler
@digitalsadhu thanks for the reminder. Since @ritch has not commented, I'll assume he does not have any major objections. Landed, thank you for the valuable contribution! |
👍 |
Yay! Thanks guys. On Wed, 21 Oct 2015 at 15:33, Ritchie Martori notifications@github.com
|
Released to npmjs.org as |
Enjoy :) |
@digitalsadhu I'd like to add this to the API documentation on https://apidocs.strongloop.com/strong-remoting/ but I'm not sure where it should go. Can you give me a pointer? |
@crandmck I think here is a better place where to document this new feature: https://docs.strongloop.com/display/LB/config.json?src=search#config.json-Remotingproperties The property name is While you are at it, could you please document |
@bajtos Thank you, that does make more sense. I added both those properties to https://docs.strongloop.com/display/LB/config.json#config.json-Remotingproperties. In particular, the descriptions could perhaps have a bit more... PTAL. |
Nice! |
Doh! Thanks for catching--fixed... |
@crandmck I have added a bit more info, PTAL. |
Thanks again @bajtos |
options.handleErrors = false will allow the RestAdapter error handler
to be bypassed
See: strongloop/loopback#445 (comment) for discussion
@bajtos does this look ok?