loopback-component-access-groups icon indicating copy to clipboard operation
loopback-component-access-groups copied to clipboard

Support for LoopBack 3.x

Open ivanschwarz opened this issue 8 years ago • 4 comments

Hello, Do you plan to adjust this package to be usable with Loopback 3.x ? That would mainly mean refactoring the code to use options propagation rather than deprecated LoopBack current-context APIs (see documentation for details).

ivanschwarz avatar Mar 27 '17 13:03 ivanschwarz

Hi @ivanschwarz - Yes, although we are not yet using loopback 3.x in-house, so it's not on our immediate priorities list. Will happily review and test patches though.

mrfelton avatar Mar 27 '17 13:03 mrfelton

We have just published a new beta release that is compatible with loopback 3.x that is ready for community testing:

https://github.com/fullcube/loopback-component-access-groups/releases/tag/v2.0.0-beta1

mrfelton avatar May 30 '17 08:05 mrfelton

Agree that this would be better future-proofed by moving away from loopback-context and instead making use of the new paradigm whereby context is passed via options paramaters, per description at https://loopback.io/doc/en/lb3/Using-current-context.html

I've personally been working towards this, but I am having a heck of a time getting anything set on the options object that is available in operation hooks.

cmvee avatar Jul 13 '17 21:07 cmvee

Hi, is there an update on the user docs for loopback 3.0? I am getting an error when enabling middleware context

Error: loopback#context middleware was removed in version 3.0. See http://loopback.io/doc/en/lb2/Using-current-context.html for more details.

ganeshkbhat avatar Apr 14 '18 03:04 ganeshkbhat