Add policies for null authors on audit events
What does this MR do and why?
Add policies for null authors on audit events
- NullAuthor types need a dedicated policy for the resolvers to pass on the objects to the graphQL interface.
References
Screenshots or screen recordings
How to set up and validate locally
A
- run the specs.
B
- Enable FF
echo "Feature.enable(:compliance_violations_report)" | gdk rails console
In rails console:
-
Create or find an audit event with a null author type
-
Manually create a ::ComplianceManagement::Projects::ComplianceViolation with said audit event
-
Go to new violations report to view created violation. Without this branch it should still fail to grab the user fields in GrqaphQL.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by SAM FIGUEROA