Skip to content

Call new disable remote method from model class [2.x]#2781

Merged
richardpringle merged 1 commit into
2.xfrom
backport/disableMethodByName
Sep 26, 2016
Merged

Call new disable remote method from model class [2.x]#2781
richardpringle merged 1 commit into
2.xfrom
backport/disableMethodByName

Conversation

@richardpringle

@richardpringle richardpringle commented Sep 22, 2016

Copy link
Copy Markdown
Contributor

backport of 0ab33a8

@superkhau superkhau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes are good -- Please ping @rmg to figure whats up with the loopback failure -- I think it's unrelated.

@superkhau

Copy link
Copy Markdown
Contributor

@richardpringle Add note for you to remember to remove the deprecation message in the backport too.

@bajtos bajtos changed the title Call new disable remote method from model class. Call new disable remote method from model class [2.x] Sep 23, 2016
Comment thread test/model.test.js
var TestModel = app.models.TestModelForDisablingRemoteMethod;
TestModel.on('remoteMethodDisabled', callbackSpy);
TestModel.disableRemoteMethod('findOne');
TestModel.disableRemoteMethod('findOne', true);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In 2.x, the method disableRemoteMethod is not deprecated. Can we place keep this test unmodified to cover this API?

@richardpringle

Copy link
Copy Markdown
Contributor Author

@bajtos, findOne is a static method, the true should have always been there.

@bajtos

bajtos commented Sep 23, 2016

Copy link
Copy Markdown
Member

@bajtos, findOne is a static method, the true should have always been there.

Ah, I see, you are right.

@bajtos bajtos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🚢

@richardpringle
richardpringle force-pushed the backport/disableMethodByName branch from 4ee3660 to f7dbc97 Compare September 23, 2016 15:15
@richardpringle

Copy link
Copy Markdown
Contributor Author

@bajtos, shit should be okay to merge right? Those windows builds aren't failing anymore and it doesn't seam like the failed tests for the downstream buils have anything to do with this change.

@superkhau

superkhau commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

FYI, skipping multitenancy tests to get CI green at strongloop/loopback-multitenancy#11.

@bajtos

bajtos commented Sep 26, 2016

Copy link
Copy Markdown
Member

@slnode test please

@bajtos

bajtos commented Sep 26, 2016

Copy link
Copy Markdown
Member

okay to merge right? Those windows builds aren't failing anymore and it doesn't seam like the failed tests for the downstream buils have anything to do with this change.

Agreed, go ahead and :shipit:

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.

3 participants