Skip to content

Restrict usage of project creator method in spec factories and fixtures

charlie ablett requested to merge 351064-cablett-creator-method-2 into master

What does this MR do and why?

We're moving towards Owner role being possible in Projects. Because multiple owners will be possible soon, we are phasing out owner method. To that end, we are ensuring that we're tidying up any technical debt that might exist around owner.

This MR replaces project.creator with project.first_owner for some instances in spec factories and fixtures. The usages to be replaced are ones where the creator was being used in the spec as they are probably the owner, but we want to be explicit about that.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 #351064 (closed)

Merge request reports