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.
Comments
Similar requests
Ability to login to directus using access token of a configured provider.
2 votes · 0 comments
Directus Loader for Astro Content Layer
41 votes · 0 comments
Why Isn't Directus Gaining More Attention in Mobile App Development?
10 votes · 0 comments
Activity Feed Presets and Bookmarks Missing
1 vote · 0 comments
Enable login with JWT from IdP via API
3 votes · 0 comments
No comments yet.