Commit c6d7f014 authored by Vitali Tatarintev's avatar Vitali Tatarintev Committed by Douglas Barbosa Alexandre

Move clear_prometheus_reactive_cache from EE to CE

parent 97e91853
...@@ -58,5 +58,12 @@ module PrometheusAdapter ...@@ -58,5 +58,12 @@ module PrometheusAdapter
def build_query_args(*args) def build_query_args(*args)
args.map { |arg| arg.respond_to?(:id) ? arg.id : arg } args.map { |arg| arg.respond_to?(:id) ? arg.id : arg }
end end
def clear_prometheus_reactive_cache!(query_name, *args)
query_class = query_klass_for(query_name)
query_args = build_query_args(*args)
clear_reactive_cache!(query_class.name, *query_args)
end
end end
end end
...@@ -2,13 +2,5 @@ ...@@ -2,13 +2,5 @@
module EE module EE
module PrometheusAdapter module PrometheusAdapter
extend ::Gitlab::Utils::Override
def clear_prometheus_reactive_cache!(query_name, *args)
query_class = query_klass_for(query_name)
query_args = build_query_args(*args)
clear_reactive_cache!(query_class.name, *query_args)
end
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