Module: Routing::PseudonymizationHelper

Included in:
GitlabRoutingHelper
Defined in:
app/helpers/routing/pseudonymization_helper.rb

Defined Under Namespace

Classes: MaskHelper

Instance Method Summary collapse

Instance Method Details

#masked_page_url(group:, project:) ⇒ Object


77
78
79
80
81
82
83
84
85
86
87
88
# File 'app/helpers/routing/pseudonymization_helper.rb', line 77

def masked_page_url(group:, project:)
  return unless Feature.enabled?(:mask_page_urls, type: :ops)

  mask_helper = MaskHelper.new(request, group, project)
  mask_helper.mask_params

# We rescue all exception for time being till we test this helper extensively.
# Check https://gitlab.com/gitlab-org/gitlab/-/merge_requests/72864#note_711515501
rescue => e # rubocop:disable Style/RescueStandardError
  Gitlab::ErrorTracking.track_exception(e, url: request.original_fullpath)
  nil
end