Remove policy envivronment-related code
What does this MR do and why?
Remove policy envivronment-related code
- it is no longer used now that the threat monitoring page has been deleted
- it is no longer used now that the environment picker has been removed from the policy page
Related to #352287 (closed)
Screenshots or screen recordings
No screenshots available as this code wasn't being used anymore. I check the policies page and it works as expected
How to set up and validate locally
- Enable
:group_level_security_policies
feature flag - Upload a GitLab Ultimate license
- Navigate to a group =>
Security & Compliance
=>Policies
=>New policy
and ensure everything works
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.