directus / directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.
https://directus.io
Other
28.19k stars 3.92k forks source link

Add an ItemsService option to skip revision-tracking #24047

Open Dominic-Marcelino opened 1 week ago

Dominic-Marcelino commented 1 week ago

Describe the Improvement

Similar on how the event-emitting & cache-clearing can be controlled by the ItemsService options-param I'd suggest to also allow bypassing the revision tracking.

This would allow to track revisions made directly by users but skip them on programmatically changes.

For the implementation a new flag would be need in the MutationOptions and then checked in the Service (same as with emitEvents): https://github.com/directus/directus/blob/main/api/src/services/items.ts#L822