Move `should_check_namespace_plan?` to the core app and add it to gon
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
- Checkout this branch
- Go to any URL and open dev tools
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led