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

How to migrate remoting hooks #3950

Closed
4 tasks
bajtos opened this issue Oct 17, 2019 · 0 comments · Fixed by #4426
Closed
4 tasks

How to migrate remoting hooks #3950

bajtos opened this issue Oct 17, 2019 · 0 comments · Fixed by #4426

Comments

@bajtos
Copy link
Member

bajtos commented Oct 17, 2019

This is a follow-up for #3718 and #3922.

Write content for docs/site/migration/models/remoting-hooks.md, explain how to migrate LB3 remoting hooks to LB4 interceptors.

  • Global hooks, e.g. app.beforeRemote('**', handlerFn)
  • Model-level hooks, e.g. app.beforeRemote('User.**', handlerFn)
  • Method-level hooks, e.g. User.beforeRemote('create', handlerFn)

Explain how to map properties provided by LB3 remoting context to LB4 concepts
and how to access that data via Dependency Injection.

Acceptance criteria

Migration guide describing manual steps and covering the following topics:

  • Global hooks
  • Model-level hooks
  • Method-level hooks
  • How to map LB3 context properties to LB4 concepts

Use (some of) the examples in LB3 doc page Remote hooks to illustrate the migration process on a real code.

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

Successfully merging a pull request may close this issue.

2 participants