Directly linked security policies are not applied after a project is transferred

Problem

When a project with directly linked security policies is moved to a different group hierarchy, the security policies become unlinked and are no longer applied to the project.

Current Behavior

  • Project has security policies directly applied to it
  • Project is moved from one group to another group
  • Security policies become unlinked from the project
  • Project no longer has policy enforcement

Expected Behavior

  • When a project is moved, directly linked security policies should remain active
  • Security policies should continue to be enforced on the project after the move
  • The relationship between the project and its security policy management project should be maintained or properly updated

Context

This issue is related to #545805 (closed) which fixes implemented for group transfers.

Edited by 🤖 GitLab Bot 🤖