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

  1. run the specs.

B

  1. Enable FF echo "Feature.enable(:compliance_violations_report)" | gdk rails console

In rails console:

  1. Create or find an audit event with a null author type

  2. Manually create a ::ComplianceManagement::Projects::ComplianceViolation with said audit event

  3. 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

Merge request reports

Loading