Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-12-13 13:12:13 +0300
committerPhil Hughes <me@iamphill.com>2018-12-13 13:12:13 +0300
commit744f6ed12bf1ce543b4c903d27cfd8362e91795d (patch)
treeaea590d166e5610ddb5b030f7579343adba3dccf /app
parent2bb468d6b91e164eb8144877015961fe40b2709f (diff)
Enable GraphQL API endpoint
Diffstat (limited to 'app')
-rw-r--r--app/controllers/graphql_controller.rb2
-rw-r--r--app/views/shared/issuable/_form.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb
index 40f45b61fb9..3ef03bc9622 100644
--- a/app/controllers/graphql_controller.rb
+++ b/app/controllers/graphql_controller.rb
@@ -43,6 +43,6 @@ class GraphqlController < ApplicationController
end
def check_graphql_feature_flag!
- render_404 unless Feature.enabled?(:graphql, default_enabled: true)
+ render_404 unless Gitlab::Graphql.enabled?
end
end
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index 81624fb1609..c6a391ae563 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -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?(:graphql, default_enabled: true)
+- if Gitlab::Graphql.enabled?
#js-suggestions{ data: { project_path: @project.full_path } }
= render 'shared/form_elements/description', model: issuable, form: form, project: project