Skip to content

Move `should_check_namespace_plan?` to the core app and add it to gon

Sheldon Led requested to merge led/add-saas-method-to-gon into master

What does this MR do and why?

Since the conversation around discouraging using Gitlab.com? started, it seems we reached a solution for when developing features that are SaaS-only, as this can be checked with should_check_namespace_plan?. Context: #225101 (comment 861899742)

This MR moves should_check_namespace_plan? to the core app and adds it to the window.gon object to be used by the frontend

Screenshots or screen recordings

No UI Change

How to set up and validate locally

  1. Checkout this branch
  2. Go to any URL and open dev tools
  3. Check the value of window.gon.should_check_namespace_plan on the browser console

MR acceptance checklist

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

Edited by Sheldon Led

Merge request reports