Commit 4d713989 authored by charlie ablett's avatar charlie ablett

Track epic title and description changes via usage ping

parent fe2022ba
......@@ -26,6 +26,8 @@ module Epics
epic.reset
end
track_changes(epic)
assign_parent_epic_for(epic)
assign_child_epic_for(epic)
......@@ -90,5 +92,17 @@ module Epics
def saved_change_to_epic_dates?(epic)
(epic.saved_changes.keys.map(&:to_sym) & EPIC_DATE_FIELDS).present?
end
def track_changes(epic)
changes = epic.saved_changes.keys
# if changes.include?(:title)
# ::Gitlab::UsageDataCounters::EpicActivityUniqueCounter.track_epic_title_updated(author: current_user)
# end
#
# if changes.include?(:description)
# ::Gitlab::UsageDataCounters::EpicActivityUniqueCounter.track_epic_description_updated(author: current_user)
# end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment