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
973c2a79
Commit
973c2a79
authored
Dec 16, 2020
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default enable import_requirements_csv FF
parent
9eae6b36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
config/feature_flags/development/import_requirements_csv.yml
config/feature_flags/development/import_requirements_csv.yml
+1
-1
ee/app/controllers/projects/requirements_management/requirements_controller.rb
...ojects/requirements_management/requirements_controller.rb
+2
-2
No files found.
config/feature_flags/development/import_requirements_csv.yml
View file @
973c2a79
...
...
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/284846
milestone
:
'
13.7'
type
:
development
group
:
group::product planning
default_enabled
:
fals
e
default_enabled
:
tru
e
ee/app/controllers/projects/requirements_management/requirements_controller.rb
View file @
973c2a79
...
...
@@ -8,7 +8,7 @@ class Projects::RequirementsManagement::RequirementsController < Projects::Appli
before_action
:authorize_read_requirement!
before_action
:authorize_import_access!
,
only:
[
:import_csv
,
:authorize
]
before_action
do
push_frontend_feature_flag
(
:import_requirements_csv
,
project
)
push_frontend_feature_flag
(
:import_requirements_csv
,
project
,
default_enabled:
true
)
end
feature_category
:requirements_management
...
...
@@ -34,7 +34,7 @@ class Projects::RequirementsManagement::RequirementsController < Projects::Appli
end
def
authorize_import_access!
render_404
unless
Feature
.
enabled?
(
:import_requirements_csv
,
project
,
default_enabled:
fals
e
)
render_404
unless
Feature
.
enabled?
(
:import_requirements_csv
,
project
,
default_enabled:
tru
e
)
return
if
can?
(
current_user
,
:import_requirements
,
project
)
...
...
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