Welcome to mirror list, hosted at ThFree Co, Russian Federation.

model_finder.rb « ml « projects « finders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 99c66f53de7895055b28aba1947b0a7153a15402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Projects
  module Ml
    class ModelFinder
      def initialize(project)
        @project = project
      end

      def execute
        ::Ml::Model
          .by_project(@project)
          .including_latest_version
          .limit(100) # This is a temporary limit before we add pagination
      end
    end
  end
end