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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/resource_state_event.rb')
-rw-r--r--app/models/resource_state_event.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/resource_state_event.rb b/app/models/resource_state_event.rb
index 134f71e35ad..e2ac762b1cd 100644
--- a/app/models/resource_state_event.rb
+++ b/app/models/resource_state_event.rb
@@ -13,6 +13,10 @@ class ResourceStateEvent < ResourceEvent
after_create :issue_usage_metrics
+ scope :aliased_for_timebox_report, -> do
+ select("'state' AS event_type", "id", "created_at", "state AS value", "NULL AS action", "issue_id")
+ end
+
def self.issuable_attrs
%i(issue merge_request).freeze
end