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
3c9d1d03
Commit
3c9d1d03
authored
Oct 29, 2020
by
Ragnar-H
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use push_to_gon_features instead of touching gon directly
parent
5f784701
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
ee/app/controllers/groups/usage_quotas_controller.rb
ee/app/controllers/groups/usage_quotas_controller.rb
+1
-2
ee/app/controllers/profiles/usage_quotas_controller.rb
ee/app/controllers/profiles/usage_quotas_controller.rb
+1
-2
No files found.
app/controllers/projects/issues_controller.rb
View file @
3c9d1d03
...
...
@@ -50,7 +50,7 @@ class Projects::IssuesController < Projects::ApplicationController
real_time_feature_flag
=
:real_time_issue_sidebar
real_time_enabled
=
Gitlab
::
ActionCable
::
Config
.
in_app?
||
Feature
.
enabled?
(
real_time_feature_flag
,
@project
)
gon
.
push
({
features:
{
real_time_feature_flag
.
to_s
.
camelize
(
:lower
)
=>
real_time_enabled
}
},
true
)
push_to_gon_features
(
real_time_feature_flag
,
real_time_enabled
)
record_experiment_user
(
:invite_members_version_a
)
record_experiment_user
(
:invite_members_version_b
)
...
...
ee/app/controllers/groups/usage_quotas_controller.rb
View file @
3c9d1d03
...
...
@@ -23,7 +23,6 @@ class Groups::UsageQuotasController < Groups::ApplicationController
end
def
push_additional_repo_storage_by_namespace_feature_flag
additional_repo_storage_by_namespace_flag
=
:additional_repo_storage_by_namespace
gon
.
push
({
features:
{
additional_repo_storage_by_namespace_flag
.
to_s
.
camelize
(
:lower
)
=>
@group
.
additional_repo_storage_by_namespace_enabled?
}
},
true
)
push_to_gon_features
(
:additional_repo_storage_by_namespace
,
@group
.
additional_repo_storage_by_namespace_enabled?
)
end
end
ee/app/controllers/profiles/usage_quotas_controller.rb
View file @
3c9d1d03
...
...
@@ -13,7 +13,6 @@ class Profiles::UsageQuotasController < Profiles::ApplicationController
end
def
push_additional_repo_storage_by_namespace_feature_flag
additional_repo_storage_by_namespace_flag
=
:additional_repo_storage_by_namespace
gon
.
push
({
features:
{
additional_repo_storage_by_namespace_flag
.
to_s
.
camelize
(
:lower
)
=>
current_user
.
namespace
.
additional_repo_storage_by_namespace_enabled?
}
},
true
)
push_to_gon_features
(
:additional_repo_storage_by_namespace
,
current_user
.
namespace
.
additional_repo_storage_by_namespace_enabled?
)
end
end
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