Add feature flag to conditionally hide ChatGPT sign-in button
What does this MR do and why?
We wish to co-ordinate a launch with OpenAI see https://gitlab.com/gitlab-org/developer-relations/contributor-success/team-task/-/issues/1211
This MR will allow us to configure the omniauth provider and test it whilst it is hidden
We can flip the feature flag when ready
References
Screenshots or screen recordings
FF disabled:
Querystring:
FF enabled:
How to set up and validate locally
- Add the ChatGPT provider to your
config/gitlab.ymlunderdevelopment.omniauth.providers:development: omniauth: providers: - { name: 'chatgpt', app_id: 'YOUR_APP_ID', app_secret: 'YOUR_APP_SECRET' } - Restart GDK
- Visit the sign-in page (you should not see the button)
- Add the querystring param http://gdk.test:3000/users/sign_in?enable_chatgpt=true (the button should appear)
- Enable the feature flag and check the button appears
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.


