1
Emit Events control via the public API (and directus/sdk)
Source: directus/directus#23570 · opened by @sonrai-davo
Summary When manipulating data in collections via the public API, it would be good to have control over whether to emit events or not. This is currently available in Extensions ( with using { emitEvents: false } ), and through Flows and data operations in Design Studio. Basic Example If I am writing data to a collection, sometimes I do not want events emitted so as not to trigger EventHook flows. Writing data to collections is done through the API (e.g. via the SDK). For example you may be posting a new blog article that you don't want EventHooks to be triggered on; Motivation I have EventHooks which run in certain circumstances on various collection events. There are some functions using the API that must bypass these EventHooks in order coplete successfully. Detailed Design In the API: Allow a query paramater for emitEvents with a boolean value. In the SDK: Allow emitEvents as a functional parameter for Item and User functions. Requirements List Must Have: …
No pledges yet. Be the first to back this.
Comments
Similar requests
Add `emitter` to flow extensions
4 votes · 0 comments
Allow VisualEditorUrls to match a pattern
4 votes · 0 comments
API Testing UI (Swagger-like) with Role-Based Simulation
5 votes · 0 comments
Extensions emit C(R)UD actions
4 votes · 0 comments
Ability to login to directus using access token of a configured provider.
2 votes · 0 comments
No comments yet.