refactor: Min policy refactor follow-ups
Description
Some follow-up cleanups after the min policy refactoring
- Adds check for the AI-realted config change before running version check. Related discussion
- Relies on policy mocks in CS state manager specs instead of mocking dependencies used by the policies
- Removes
userControlled
fromStatePolicy
and does the refactoring so that it becomes possible. Related discussion - Used
doNotAwait
for thedeprecatedVersionHandler
in order not to block code execution when the version check warning is displayed.
Related Issues
Closes #1252 (closed)
Edited by Olena Horal-Koretska