Skip to content

Move epics_readable_by_user method to Ability model

Eugenia Grieff requested to merge 354493-refactor-epic-related_epics-method into master

What does this MR do and why?

This MR addresses the second to-do in the follow-up issue #354493.

This refactoring moves the method epics_readable_by_user from Epic to Ability model and fixes N+1 queries previously executed by this authorization.

MR acceptance checklist

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

Edited by Eugenia Grieff

Merge request reports