debian-mirror-gitlab/lib/gitlab/cycle_analytics/metrics_tables.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
877 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Gitlab
module CycleAnalytics
module MetricsTables
def mr_metrics_table
MergeRequest::Metrics.arel_table
end
def mr_table
MergeRequest.arel_table
end
def mr_diff_table
MergeRequestDiff.arel_table
end
2017-09-10 17:25:29 +05:30
def mr_diff_commits_table
MergeRequestDiffCommit.arel_table
end
2017-08-17 22:00:37 +05:30
def mr_closing_issues_table
MergeRequestsClosingIssues.arel_table
end
def issue_table
Issue.arel_table
end
def issue_metrics_table
Issue::Metrics.arel_table
end
def user_table
User.arel_table
end
2019-10-12 21:52:04 +05:30
def projects_table
Project.arel_table
end
def routes_table
Route.arel_table
end
2017-08-17 22:00:37 +05:30
def build_table
::CommitStatus.arel_table
end
end
end
end