From 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 30 Jan 2020 15:09:15 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/helpers/explore_helper.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/helpers/explore_helper.rb') diff --git a/app/helpers/explore_helper.rb b/app/helpers/explore_helper.rb index 62be591ec47..1b36f60c316 100644 --- a/app/helpers/explore_helper.rb +++ b/app/helpers/explore_helper.rb @@ -19,6 +19,18 @@ module ExploreHelper request_path_with_options(options) end + def filter_audit_path(options = {}) + exist_opts = { + entity_type: params[:entity_type], + entity_id: params[:entity_id], + created_before: params[:created_before], + created_after: params[:created_after], + sort: params[:sort] + } + options = exist_opts.merge(options).delete_if { |key, value| value.blank? } + request_path_with_options(options) + end + def filter_groups_path(options = {}) request_path_with_options(options) end -- cgit v1.2.1