FeatureFuel
2

Access to e.g. getAccountabilityForRole and ItemsService in @directus/extensions-sdk

Source: directus/directus#22782 · opened by @danybol
Summary Love Directus, you guys are doing a great job! I just wanted to mention something which would be really helpful for writing extensions. We would like the ability to use the existing getAccountabilityForRole logic in extensions, so that we can override the accountability of the role running a flow (for an 'operation' extension). In addition, providing access to ItemsService as part of the extensions sdk (rather than having it passed dynamically) would be really useful for writing integration tests for extensions. At the moment we have to mock ItemsService completely. I see there was a discussion about this a year or so ago here: I was just wondering if the codebase is now more stable so this could be revisited? I see that getAccountabilityForRole hasn't changed in 7 months now. Basic Example Overriding Role Integration tests Motivation Improves testability of extensions, and allows more roles-based use cases such as overriding the r…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests