Skip to content

refactor: Min policy refactor follow-ups

Olena Horal-Koretska requested to merge Min-version-policy-follow-up into main

Description

Some follow-up cleanups after the min policy refactoring

  1. Adds check for the AI-realted config change before running version check. Related discussion
  2. Relies on policy mocks in CS state manager specs instead of mocking dependencies used by the policies
  3. Removes userControlled from StatePolicy and does the refactoring so that it becomes possible. Related discussion
  4. Used doNotAwait for the deprecatedVersionHandler in order not to block code execution when the version check warning is displayed.

Related Issues

Closes #1252 (closed)

Edited by Olena Horal-Koretska

Merge request reports

Loading