Expose list of Duo Chat available features
What does this MR do and why?
Expose list of available features (unit primitives) for a current user
As part of the task forceAI Context, the vscode (any editor) extension needs to verify whether certain features are enabled for a user. Each feature is defined as a separate Unit Primitive and a Cloud Connector service. We need to add the ability to check whether a specific service is available to a user.
Related to #494320
MRs adding Unit Primitives:
Discussions in !168619 (closed) can provide more information.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Make sure you're logged in http://gdk.test:3000
- Navigate to http://gdk.test:3000/-/graphql-explorer
- Use the following query
query currentUser { currentUser { duoChatAvailable duoCodeSuggestionsAvailable duoChatAvailableFeatures } }
Depending on the localhost configuration Cloud Connector might not be available and the list of available features will be empty.