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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
2bb468d6
Commit
2bb468d6
authored
Dec 11, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove issue_suggestions feature flag
Closes
https://gitlab.com/gitlab-org/gitlab-ce/issues/55166
parent
0a6c217c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
app/assets/javascripts/pages/projects/issues/form.js
app/assets/javascripts/pages/projects/issues/form.js
+1
-1
app/controllers/graphql_controller.rb
app/controllers/graphql_controller.rb
+1
-1
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-2
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+1
-1
No files found.
app/assets/javascripts/pages/projects/issues/form.js
View file @
2bb468d6
...
...
@@ -17,7 +17,7 @@ export default () => {
new
MilestoneSelect
();
new
IssuableTemplateSelectors
();
if
(
gon
.
features
.
issueSuggestions
&&
gon
.
features
.
graphql
)
{
if
(
gon
.
features
.
graphql
)
{
initSuggestions
();
}
};
app/controllers/graphql_controller.rb
View file @
2bb468d6
...
...
@@ -43,6 +43,6 @@ class GraphqlController < ApplicationController
end
def
check_graphql_feature_flag!
render_404
unless
Feature
.
enabled?
(
:graphql
)
render_404
unless
Feature
.
enabled?
(
:graphql
,
default_enabled:
true
)
end
end
app/controllers/projects/issues_controller.rb
View file @
2bb468d6
...
...
@@ -268,7 +268,6 @@ class Projects::IssuesController < Projects::ApplicationController
end
def
set_suggested_issues_feature_flags
push_frontend_feature_flag
(
:graphql
)
push_frontend_feature_flag
(
:issue_suggestions
)
push_frontend_feature_flag
(
:graphql
,
default_enabled:
true
)
end
end
app/views/shared/issuable/_form.html.haml
View file @
2bb468d6
...
...
@@ -17,7 +17,7 @@
=
render
'shared/issuable/form/template_selector'
,
issuable:
issuable
=
render
'shared/issuable/form/title'
,
issuable:
issuable
,
form:
form
,
has_wip_commits:
commits
&&
commits
.
detect
(
&
:work_in_progress?
)
-
if
Feature
.
enabled?
(
:
issue_suggestions
)
&&
Feature
.
enabled?
(
:graphql
)
-
if
Feature
.
enabled?
(
:
graphql
,
default_enabled:
true
)
#js-suggestions
{
data:
{
project_path:
@project
.
full_path
}
}
=
render
'shared/form_elements/description'
,
model:
issuable
,
form:
form
,
project:
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