diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
commit | ee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch) | |
tree | f8479f94a28f66654c6a4f6fb99bad6b4e86a40e /app/models/ml/experiment.rb | |
parent | 62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff) |
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
Diffstat (limited to 'app/models/ml/experiment.rb')
-rw-r--r-- | app/models/ml/experiment.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/models/ml/experiment.rb b/app/models/ml/experiment.rb index e4e9baac4c8..a32099e8a0c 100644 --- a/app/models/ml/experiment.rb +++ b/app/models/ml/experiment.rb @@ -13,10 +13,6 @@ module Ml has_internal_id :iid, scope: :project - def artifact_location - 'not_implemented' - end - class << self def by_project_id_and_iid(project_id, iid) find_by(project_id: project_id, iid: iid) @@ -26,8 +22,8 @@ module Ml find_by(project_id: project_id, name: name) end - def has_record?(project_id, name) - where(project_id: project_id, name: name).exists? + def by_project_id(project_id) + where(project_id: project_id) end end end |