From e39b6277eb4f4560af5c541a79d890e8186f130e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 28 Oct 2022 00:11:00 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/models/container_repository.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/models/container_repository.rb') diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 14520b2da26..c8b8fe5c951 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -224,6 +224,13 @@ class ContainerRepository < ApplicationRecord end end + # Container Repository model and the code that makes API calls + # are tied. Sometimes (mainly in Geo) we need to work with Registry + # when Container Repository record doesn't even exist. + # The ability to create a not-persisted record with a certain "path" parameter + # is very useful + attr_writer :path + def self.exists_by_path?(path) where( project: path.repository_project, -- cgit v1.2.1