Explicitly define inverse of acces_level relations
Showing
-
Maintainer
@reprazent Should this be backported to CE? Currently CE has
has_many :"#{type}_access_levels", dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
. -
Maintainer
@rymai It's currently not used in CE. It's required for https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/models/concerns/protected_tag_access.rb#L10 & https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/models/concerns/protected_branch_access.rb#L10
Which is only used in https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/models/concerns/ee/protected_ref_access.rb#L67
But it couldn't hurt: to have it in CE as it could avoid conflicts in the future: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13068
Nice catch, thanks!
-
Maintainer
@reprazent Cool, thanks a lot!
Please register or sign in to comment