Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
43ff9caa
Commit
43ff9caa
authored
Mar 22, 2021
by
Lee Tickett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary use of freeze
parent
75891f66
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
18 deletions
+23
-18
app/mailers/emails/in_product_marketing.rb
app/mailers/emails/in_product_marketing.rb
+1
-1
changelogs/unreleased/31343-remove-unnecessary-use-of-freeze.yml
...ogs/unreleased/31343-remove-unnecessary-use-of-freeze.yml
+5
-0
ee/app/controllers/ee/repositories/git_http_client_controller.rb
...controllers/ee/repositories/git_http_client_controller.rb
+1
-1
ee/app/controllers/groups/analytics/coverage_reports_controller.rb
...ntrollers/groups/analytics/coverage_reports_controller.rb
+1
-1
ee/app/finders/dast_site_validations_finder.rb
ee/app/finders/dast_site_validations_finder.rb
+2
-2
ee/app/models/ee/issue.rb
ee/app/models/ee/issue.rb
+3
-3
ee/app/models/ee/plan.rb
ee/app/models/ee/plan.rb
+6
-6
ee/app/models/geo_node_status.rb
ee/app/models/geo_node_status.rb
+2
-2
ee/app/models/productivity_analytics.rb
ee/app/models/productivity_analytics.rb
+1
-1
ee/app/models/saml_provider.rb
ee/app/models/saml_provider.rb
+1
-1
No files found.
app/mailers/emails/in_product_marketing.rb
View file @
43ff9caa
...
...
@@ -4,7 +4,7 @@ module Emails
module
InProductMarketing
include
InProductMarketingHelper
FROM_ADDRESS
=
'GitLab <team@gitlab.com>'
.
freeze
FROM_ADDRESS
=
'GitLab <team@gitlab.com>'
CUSTOM_HEADERS
=
{
'X-Mailgun-Track'
=>
'yes'
,
'X-Mailgun-Track-Clicks'
=>
'yes'
,
...
...
changelogs/unreleased/31343-remove-unnecessary-use-of-freeze.yml
0 → 100644
View file @
43ff9caa
---
title
:
Remove unnecessary use of freeze
merge_request
:
57056
author
:
Lee Tickett @leetickett
type
:
other
ee/app/controllers/ee/repositories/git_http_client_controller.rb
View file @
43ff9caa
...
...
@@ -131,7 +131,7 @@ module EE
end
class
GeoGitLFSHelper
MINIMUM_GIT_LFS_VERSION
=
'2.4.2'
.
freeze
MINIMUM_GIT_LFS_VERSION
=
'2.4.2'
def
initialize
(
project
,
geo_route_helper
,
operation
,
current_version
)
@project
=
project
...
...
ee/app/controllers/groups/analytics/coverage_reports_controller.rb
View file @
43ff9caa
...
...
@@ -3,7 +3,7 @@
class
Groups::Analytics::CoverageReportsController
<
Groups
::
Analytics
::
ApplicationController
feature_category
:code_testing
COVERAGE_PARAM
=
'coverage'
.
freeze
COVERAGE_PARAM
=
'coverage'
before_action
:load_group
before_action
->
{
check_feature_availability!
(
:group_coverage_reports
)
}
...
...
ee/app/finders/dast_site_validations_finder.rb
View file @
43ff9caa
# frozen_string_literal: true
class
DastSiteValidationsFinder
DEFAULT_SORT_VALUE
=
'id'
.
freeze
DEFAULT_SORT_DIRECTION
=
'desc'
.
freeze
DEFAULT_SORT_VALUE
=
'id'
DEFAULT_SORT_DIRECTION
=
'desc'
def
initialize
(
params
=
{})
@params
=
params
...
...
ee/app/models/ee/issue.rb
View file @
43ff9caa
...
...
@@ -7,9 +7,9 @@ module EE
prepended
do
WEIGHT_RANGE
=
(
0
..
20
).
freeze
WEIGHT_ALL
=
'Everything'
.
freeze
WEIGHT_ANY
=
'Any'
.
freeze
WEIGHT_NONE
=
'None'
.
freeze
WEIGHT_ALL
=
'Everything'
WEIGHT_ANY
=
'Any'
WEIGHT_NONE
=
'None'
ELASTICSEARCH_PERMISSION_TRACKED_FIELDS
=
%w(assignee_ids author_id confidential)
.
freeze
include
Elastic
::
ApplicationVersionedSearch
...
...
ee/app/models/ee/plan.rb
View file @
43ff9caa
...
...
@@ -6,12 +6,12 @@ module EE
extend
::
Gitlab
::
Utils
::
Override
prepended
do
FREE
=
'free'
.
freeze
BRONZE
=
'bronze'
.
freeze
SILVER
=
'silver'
.
freeze
PREMIUM
=
'premium'
.
freeze
GOLD
=
'gold'
.
freeze
ULTIMATE
=
'ultimate'
.
freeze
FREE
=
'free'
BRONZE
=
'bronze'
SILVER
=
'silver'
PREMIUM
=
'premium'
GOLD
=
'gold'
ULTIMATE
=
'ultimate'
EE_DEFAULT_PLANS
=
(
const_get
(
:DEFAULT_PLANS
,
false
)
+
[
FREE
]).
freeze
PAID_HOSTED_PLANS
=
[
BRONZE
,
SILVER
,
PREMIUM
,
GOLD
,
ULTIMATE
].
freeze
...
...
ee/app/models/geo_node_status.rb
View file @
43ff9caa
...
...
@@ -190,8 +190,8 @@ class GeoNodeStatus < ApplicationRecord
}.
merge
(
replicator_class_prometheus_metrics
).
freeze
EXPIRATION_IN_MINUTES
=
10
HEALTHY_STATUS
=
'Healthy'
.
freeze
UNHEALTHY_STATUS
=
'Unhealthy'
.
freeze
HEALTHY_STATUS
=
'Healthy'
UNHEALTHY_STATUS
=
'Unhealthy'
def
self
.
alternative_status_store_accessor
(
attr_names
)
attr_names
.
each
do
|
attr_name
|
...
...
ee/app/models/productivity_analytics.rb
View file @
43ff9caa
...
...
@@ -14,7 +14,7 @@ class ProductivityAnalytics
}.
freeze
METRIC_TYPES
=
METRIC_COLUMNS
.
keys
.
freeze
DEFAULT_TYPE
=
'days_to_merge'
.
freeze
DEFAULT_TYPE
=
'days_to_merge'
def
self
.
start_date
ApplicationSetting
.
current
&
.
productivity_analytics_start_date
...
...
ee/app/models/saml_provider.rb
View file @
43ff9caa
...
...
@@ -53,7 +53,7 @@ class SamlProvider < ApplicationRecord
class
DefaultOptions
include
Gitlab
::
Routing
NAME_IDENTIFIER_FORMAT
=
'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified'
.
freeze
NAME_IDENTIFIER_FORMAT
=
'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified'
def
initialize
(
group_path
)
@group_path
=
group_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment