Skip to content

Fix MergeRequestsResolver

What does this MR do?

#208431 (closed)

Follow-up from discussion.

In Resolvers::MergeRequestsResolver if the project was not found, BatchLoader object can be nil and project.present? would still return true.

With these changes, we use sync in the BatchLoader object and evaluate if the result is nil, similarly to what is done in Resolvers::IssuesResolver

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Closes #208431 (closed)

Edited by Eugenia Grieff

Merge request reports