Restore exposure of legend property for events
This commit is contained in:
parent
58131ac93c
commit
d3ff2fa59b
|
@ -2,6 +2,7 @@ class AnalyticsStageEntity < Grape::Entity
|
|||
include EntityDateHelper
|
||||
|
||||
expose :title
|
||||
expose :legend
|
||||
expose :description
|
||||
|
||||
expose :median, as: :value do |stage|
|
||||
|
|
|
@ -13,6 +13,10 @@ module Gitlab
|
|||
:code
|
||||
end
|
||||
|
||||
def legend
|
||||
"Related Merge Requests"
|
||||
end
|
||||
|
||||
def description
|
||||
"Time until first merge request"
|
||||
end
|
||||
|
|
|
@ -14,6 +14,10 @@ module Gitlab
|
|||
:issue
|
||||
end
|
||||
|
||||
def legend
|
||||
"Related Issues"
|
||||
end
|
||||
|
||||
def description
|
||||
"Time before an issue gets scheduled"
|
||||
end
|
||||
|
|
|
@ -14,6 +14,10 @@ module Gitlab
|
|||
:plan
|
||||
end
|
||||
|
||||
def legend
|
||||
"Related Commits"
|
||||
end
|
||||
|
||||
def description
|
||||
"Time before an issue starts implementation"
|
||||
end
|
||||
|
|
|
@ -15,6 +15,10 @@ module Gitlab
|
|||
:production
|
||||
end
|
||||
|
||||
def legend
|
||||
"Related Issues"
|
||||
end
|
||||
|
||||
def description
|
||||
"From issue creation until deploy to production"
|
||||
end
|
||||
|
|
|
@ -13,6 +13,10 @@ module Gitlab
|
|||
:review
|
||||
end
|
||||
|
||||
def legend
|
||||
"Relative Merged Requests"
|
||||
end
|
||||
|
||||
def description
|
||||
"Time between merge request creation and merge/close"
|
||||
end
|
||||
|
|
|
@ -14,6 +14,10 @@ module Gitlab
|
|||
:staging
|
||||
end
|
||||
|
||||
def legend
|
||||
"Relative Deployed Builds"
|
||||
end
|
||||
|
||||
def description
|
||||
"From merge request merge until deploy to production"
|
||||
end
|
||||
|
|
|
@ -13,6 +13,10 @@ module Gitlab
|
|||
:test
|
||||
end
|
||||
|
||||
def legend
|
||||
"Relative Builds Trigger by Commits"
|
||||
end
|
||||
|
||||
def description
|
||||
"Total test time for all commits/merges"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue