diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/feature_flags/development/recent_items_search.yml | 7 | ||||
-rw-r--r-- | config/feature_flags/development/sql-set-operators.yml | 7 | ||||
-rw-r--r-- | config/initializers/1_settings.rb | 4 | ||||
-rw-r--r-- | config/initializers/trusted_proxies.rb | 2 | ||||
-rw-r--r-- | config/routes/group.rb | 14 |
5 files changed, 22 insertions, 12 deletions
diff --git a/config/feature_flags/development/recent_items_search.yml b/config/feature_flags/development/recent_items_search.yml new file mode 100644 index 00000000000..d0a70ca3d9d --- /dev/null +++ b/config/feature_flags/development/recent_items_search.yml @@ -0,0 +1,7 @@ +--- +name: recent_items_search +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40669 +rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/244277 +group: group::global search +type: development +default_enabled: false
\ No newline at end of file diff --git a/config/feature_flags/development/sql-set-operators.yml b/config/feature_flags/development/sql-set-operators.yml new file mode 100644 index 00000000000..cefe2a83782 --- /dev/null +++ b/config/feature_flags/development/sql-set-operators.yml @@ -0,0 +1,7 @@ +--- +name: sql-set-operators +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39786 +rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39786 +group: group::access +type: development +default_enabled: false diff --git a/config/initializers/1_settings.rb b/config/initializers/1_settings.rb index da275b34f5d..d3868cfb8cd 100644 --- a/config/initializers/1_settings.rb +++ b/config/initializers/1_settings.rb @@ -176,8 +176,8 @@ Settings.gitlab['user'] ||= 'git' Settings.gitlab['ssh_user'] ||= Settings.gitlab.user Settings.gitlab['user_home'] ||= begin Etc.getpwnam(Settings.gitlab['user']).dir -rescue ArgumentError # no user configured - '/home/' + Settings.gitlab['user'] + rescue ArgumentError # no user configured + '/home/' + Settings.gitlab['user'] end Settings.gitlab['time_zone'] ||= nil Settings.gitlab['signup_enabled'] ||= true if Settings.gitlab['signup_enabled'].nil? diff --git a/config/initializers/trusted_proxies.rb b/config/initializers/trusted_proxies.rb index 13896408806..93c4d2b10cc 100644 --- a/config/initializers/trusted_proxies.rb +++ b/config/initializers/trusted_proxies.rb @@ -15,7 +15,7 @@ end gitlab_trusted_proxies = Array(Gitlab.config.gitlab.trusted_proxies).map do |proxy| IPAddr.new(proxy) -rescue IPAddr::InvalidAddressError + rescue IPAddr::InvalidAddressError end.compact Rails.application.config.action_dispatch.trusted_proxies = ( diff --git a/config/routes/group.rb b/config/routes/group.rb index e07ed0fab05..e5bbfdf7548 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -23,9 +23,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do get 'archived', action: :show, as: :group_archived # rubocop:disable Cop/PutGroupRoutesUnderScope end - # These routes are legit and the cop rule will be improved in - # https://gitlab.com/gitlab-org/gitlab/-/issues/230703 - get '/', action: :show, as: :group_canonical # rubocop:disable Cop/PutGroupRoutesUnderScope + get '/', action: :show, as: :group_canonical end scope(path: 'groups/*group_id/-', @@ -112,11 +110,9 @@ constraints(::Constraints::GroupUrlConstrainer.new) do as: :group, constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }, controller: :groups) do - # These routes are legit and the cop rule will be improved in - # https://gitlab.com/gitlab-org/gitlab/-/issues/230703 - get '/', action: :show # rubocop:disable Cop/PutGroupRoutesUnderScope - patch '/', action: :update # rubocop:disable Cop/PutGroupRoutesUnderScope - put '/', action: :update # rubocop:disable Cop/PutGroupRoutesUnderScope - delete '/', action: :destroy # rubocop:disable Cop/PutGroupRoutesUnderScope + get '/', action: :show + patch '/', action: :update + put '/', action: :update + delete '/', action: :destroy end end |