Loading
fix: Hide Duo Agent Platform panel when feature flags are disabled
Description
- Respect instance version instead of assuming enabled by default which is only true for 18.2 and later instances.
- Respect feature flag rollout (e.g. enabled by default) status of feature flags for when we delete feature flags from the codebase.
Related Issues
Resolves [VSC] Hide Agentic Platform settings if feature... (#2050 - closed).
How has this been tested?
-
If src/browserorsrc/commonhas been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE. -
Consider an end-to-end test for significant new features that aren't covered by integration tests.
-
Run GDK locally.
-
Authenticate
http://gdk.test:3000with GitLab Workflow extension development host. -
Open the GDK/GiLab Duo test project (or any Duo namespace+enabled project).
-
Enable both
duo_agentic_chatandduo_workflowfeature flags (default).# Check if they're already enabled: Feature.enabled?(:duo_agentic_chat) Feature.enabled?(:duo_workflow) # Enable both: Feature.enable(:duo_agentic_chat) Feature.enable(:duo_workflow) -
Confirm you see the Agentic Tabs side panel when you authenticate with your GDK instance.
-
Disable
duo_agentic_chatin the Rails console:Feature.disable(:duo_agentic_chat) -
Run
>Developer: Reload Webviews -
Disable
duo_workflowfeature flag in Rails console:Feature.disable(:duo_workflow) -
Run
>Developer: Reload Webviews -
Observe the agent platform side panel is no longer available after restarting the extension development host with the extension setting enabled:
Screenshots (if appropriate)
What CHANGELOG entry will this MR create?
-
fix:Bug fix fixes - a user-facing issue in production - included in changelog -
feature:New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog -
None - other non-user-facing changes
Closes #2050 (closed)
Edited by Olena Horal-Koretska

