Skip to content

Return blank object_url for audit events that have a deleted entity

What does this MR do and why?

This was an error occuring in some QA specs.

I think it may only occur due to the way audit_events and their associations are created/manipulated in specs. I do not think this occurs in the normal application code flow

Either way, it makes sense to return a blank object_url from the presenter of the entity object is unavailable for some reason

resolves: #408156 (closed)

How to set up and validate locally

  1. remove rescue
  2. run specs and see failure
  3. re-add rescue
  4. run specs and see success

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #408156 (closed)

Edited by Michael Becker

Merge request reports