Skip to content

Adjust show_code_suggestions_tab? to use code_suggestions_available?

Mohamed Hamda requested to merge 433011-adjust-frontend-helper into master

What does this MR do and why?

In this MR we adjust show_code_suggestions_tab? to:

  • Use code_suggestions_available?
  • Remove Gitlab.com? and use Sass feature check instead
  • Adjust the specs

How to set up and validate locally

Go to any group page, enable/disable the feature flags, and check the code_sugegstions tab on the usage quota page for SaaS.

On SaaS, pick a group:

On SM, pick a group: verify that the code suggestions tab is not showing.

Note: Wait a couple of seconds after each enable/disable.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #433011

Edited by Mohamed Hamda

Merge request reports