Commit b1ce4146 authored by Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak

Merge branch 'unmask-scope-state' into 'master'

Unmask scope and state in url masking

See merge request gitlab-org/gitlab!74973
parents d55a23a2 9cf652fe
......@@ -3,7 +3,10 @@
module Routing
module PseudonymizationHelper
class MaskHelper
QUERY_PARAMS_TO_NOT_MASK = %w[].freeze
QUERY_PARAMS_TO_NOT_MASK = %w[
scope
state
].freeze
def initialize(request_object, group, project)
@request = request_object
......
......@@ -160,7 +160,7 @@ RSpec.describe ::Routing::PseudonymizationHelper do
end
context 'when author_username is present' do
let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=masked_scope&state=masked_state" }
let(:masked_url) { "http://localhost/dashboard/issues?author_username=masked_author_username&scope=all&state=opened" }
let(:request) do
double(:Request,
path_parameters: {
......@@ -201,7 +201,7 @@ RSpec.describe ::Routing::PseudonymizationHelper do
end
context 'when query string has keys with the same names as path params' do
let(:masked_url) { "http://localhost/dashboard/issues?action=masked_action&scope=masked_scope&state=masked_state" }
let(:masked_url) { "http://localhost/dashboard/issues?action=masked_action&scope=all&state=opened" }
let(:request) do
double(:Request,
path_parameters: {
......
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