Commit 0584442d authored by Felipe Artur's avatar Felipe Artur

Adress review comments

parent a6995970
......@@ -169,7 +169,7 @@ module EE
# epic2 - parent: epic1
# Returns: 2
def deepest_relationship_level
return unless ::Gitlab::Database.postgresql?
return unless ::Group.supports_nested_objects?
result =
ActiveRecord::Base.connection.execute(
......
......@@ -106,7 +106,7 @@ module EE
}).merge(service_desk_counts).merge(security_products_usage)
# MySql does not support recursive queries so we can't retrieve epics relationship depth
if ::Gitlab::Database.postgresql?
if ::Group.supports_nested_objects?
usage_data[:counts] = usage_data[:counts].merge(epics_deepest_relationship_level)
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