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
0edb9604
Commit
0edb9604
authored
Mar 23, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move usage_data_api ff to ops and fix the specs
parent
4ee871cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
config/feature_flags/ops/usage_data_api.yml
config/feature_flags/ops/usage_data_api.yml
+2
-2
lib/api/usage_data.rb
lib/api/usage_data.rb
+1
-1
No files found.
config/feature_flags/
development
/usage_data_api.yml
→
config/feature_flags/
ops
/usage_data_api.yml
View file @
0edb9604
...
...
@@ -3,6 +3,6 @@ name: usage_data_api
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41301
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/267114
milestone
:
'
13.4'
type
:
development
group
:
group::product
analytics
type
:
ops
group
:
group::product
intelligence
default_enabled
:
true
lib/api/usage_data.rb
View file @
0edb9604
...
...
@@ -8,7 +8,7 @@ module API
namespace
'usage_data'
do
before
do
not_found!
unless
Feature
.
enabled?
(
:usage_data_api
,
default_enabled:
true
)
not_found!
unless
Feature
.
enabled?
(
:usage_data_api
,
default_enabled:
true
,
type: :ops
)
forbidden!
(
'Invalid CSRF token is provided'
)
unless
verified_request?
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