Fixed an error with project compliance frameworks delete

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

The project_compliance_frameworks resource was incorrectly deleting the frameworks from a project. The update graphql API call does not treat null like the set API call does, instead an empty list must be passed.

Also fixed a bug where the compliance framework could not be set on a project if it was manually removed outside of terraform. An error was being set incorrectly on the read which prevented the create from running.

Edited by Mark Nessen

Merge request reports

Loading