Loading
Add dap_session_details_polling feature flag
What does this MR do and why?
Adds the feature flag that gates the session details polling changes, so the follow-up frontend MRs can each ship and roll back on their own. No behaviour change.
- Add the
dap_session_details_pollingfeature flag (gitlab_com_derisk, disabled by default) - Push it to the frontend for the current user on the session details page, including when it renders in the side panel
Implementation
ee/config/feature_flags/gitlab_com_derisk/dap_session_details_polling.yml: new flag definition, rollout issue [Feature flag] Rollout of `dap_session_details_... (#635251) • Allison Villa • 19.6push_frontend_feature_flag(:dap_session_details_polling, current_user)added next todap_session_restartsin the same three places it is pushed:ee/app/controllers/projects/duo_agents_platform_controller.rbee/app/controllers/groups/duo_agents_platform_controller.rbee/lib/ee/gitlab/gon_helper.rb, which covers the session page in the side panel outside the Automate routes
- The flag is read in Vue as
glFeatures.dapSessionDetailsPollingby the follow-up MRs
References
- Related to https://gitlab.com/gitlab-org/gitlab/-/work_items/635073+s
- Rollout issue [Feature flag] Rollout of `dap_session_details_... (#635251) • Allison Villa • 19.6
Screenshots or screen recordings
No UI changes
How to set up and validate locally
- In the Rails console, enable the flag for your user:
Feature.enable(:dap_session_details_polling, User.find_by_username('<your username>')) - Visit
/<project full path>/-/automate/agent-sessions/<session id>. - In the browser console, run
gon.features.dapSessionDetailsPolling. It returnstrue. - Disable the flag with
Feature.disable(:dap_session_details_polling)and reload the page. The same check returnsfalse.
Edited by Allison Villa