Compliance framework policy count not correct

Problem to solve

The list of associated policies in the compliance framework drawer is not accurate in some cases.

For one framework, it showed the count indicator as 3, but upon load there were 7 policies listed. Then they'd refresh after the drawer was opened and it would update to be accurate and show 3 in the counter as well as showing a list of 3 associated policies. They could repeat this same flow for the same framework over again with the same error.

The link from a policy to the policy page was 404'ing in some cases. they had success when in their sub-group, but if they went to the group and to the policy drawer and tried to click through to an associated policy, it would 404.

Proposal

Edited by 🤖 GitLab Bot 🤖