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

Allows to trigger pipes and hook from the framework #1961

Closed
Aschen opened this issue Feb 8, 2021 · 0 comments
Closed

Allows to trigger pipes and hook from the framework #1961

Aschen opened this issue Feb 8, 2021 · 0 comments

Comments

@Aschen
Copy link
Contributor

Aschen commented Feb 8, 2021

Feature description

When using the EmbeddedSDK or the execute method, Kuzzle does not generate events and thus no pipes or hooks will be triggered.

In some use case, developers have a specific business logic in those pipes and hooks and may want to trigger them when executing an action from the framework.

We also need some kind of loop detection system to prevent actions triggering themselves infinitely.

Example usecase

A pipe who is enriching documents and that need to be triggered when writing documents from the framework.

Possible solution (optional)

this.sdk.withEvents : execute an action as it comes from the outside and triggering every API events

Some kind of execute() method who takes a RequestPayload

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

No branches or pull requests

2 participants