Send security training enabled status from backend
This MR reintroduces the changes of backend from this MR with some changes. According these discussions, !86639 (comment 93586712),7 !86639 (comment 937141695), we want here licensed feature availability in project level as we are doing for other vulnerability features https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/models/gitlab_subscriptions/features.rb#L205.
Why it is needed?: Security training feature should be available only to ultimate customers.
Frontend change based in this MR: !89503 (merged)
Mandatory Testing Requirement
Make sure to simulate the SaaS version of the product and conduct the following test when developing locally:
-
export GITLAB_SIMULATE_SAAS=1
<- Simulate your development is GitLab.com, info git checkout 358182-send-security-training-enabled-using-backend
gdk restart
- Admin > Settings > General > "Account and limit" > enable "Allow use of licensed EE features"
Related to #358182 (closed)
Edited by Subashis Chakraborty