Loopback: documentation does not show that disableRemoteMethod is deprecated

Created on 13 Dec 2016  路  9Comments  路  Source: strongloop/loopback

Bug or feature request

  • [ X] Bug
  • [ ] Feature request

Description of feature (or steps to reproduce if bug)

Documentation for disableRemoteMethod does not indicate that this method is deprecated.

Link to sample repo to reproduce issue (if bug)

Expected result

Actual result (if bug)

Additional information (Node.js version, LoopBack version, etc)

In both LB 2 and 3 docs.

bug doc

All 9 comments

I was not aware of this...Why do you think it's deprecated?

Is it because https://loopback.io/doc/en/lb3/3.0-Release-Notes.html#clean-up-of-api-for-finding-and-disabling-remote-methods says to use disableMethodByName()
?

@bajtos Can you confirm that disableMethodByname() is deprecated? If so, is it for 3.0 only or both 2.x and 3.0?

Hi -- I was going by this line 439

OK this should be added to the API docs as well. But my question to @bajtos stands: just for 3.0?

As part of the work on the above change, add new SharedClass methods findMethodByName and disableMethodByName in both 2.x and 3.0. The old methods find and disableMethod are deprecated in 3.0.

from https://strongloop.com/strongblog/coming-soon-loopback-3-0/

just for 3.0?

Yes, only for 3.0, as was described in the "coming-soon" blog post.

See lib/model.js in the 2.x branch.

Updated in loopback.io docs. Need to update API docs also.

API docs are now updated: http://apidocs.strongloop.com/loopback/#model-disableremotemethodbyname

@crandmck fwiw, I think API docs have regressed, I can't see any note in there about disableRemoteMethod being deprecated, despite the logging message still being in current source.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ritch picture ritch  路  108Comments

JordanMajd picture JordanMajd  路  94Comments

daankets picture daankets  路  244Comments

joshua1 picture joshua1  路  87Comments

sam-artuso picture sam-artuso  路  40Comments