Skip to content
Snippets Groups Projects
Commit bb4d584a authored by Brett Walker's avatar Brett Walker
Browse files

wip

parent ea753d87
No related branches found
No related tags found
No related merge requests found
Pipeline #323052953 failed
Pipeline: GitLab

#323052975

    ......@@ -11,9 +11,9 @@ class GitlabSchema < GraphQL::Schema
    AUTHENTICATED_MAX_DEPTH = 20
    # if Feature.enabled?(:graphql_interpreter)
    use GraphQL::Execution::Interpreter
    # And, when you have updated your analyzers:
    use GraphQL::Analysis::AST
    use GraphQL::Execution::Interpreter
    # And, when you have updated your analyzers:
    use GraphQL::Analysis::AST
    # end
    use GraphQL::Subscriptions::ActionCableSubscriptions
    ......@@ -24,8 +24,8 @@ class GitlabSchema < GraphQL::Schema
    use Gitlab::Graphql::Timeout, max_seconds: Gitlab.config.gitlab.graphql_timeout
    # if Feature.enabled?(:graphql_interpreter)
    query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::LoggerAnalyzer
    query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::RecursionAnalyzer
    query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::LoggerAnalyzer
    query_analyzer Gitlab::Graphql::QueryAnalyzers::AST::RecursionAnalyzer
    # else
    # query_analyzer Gitlab::Graphql::QueryAnalyzers::LoggerAnalyzer.new
    # query_analyzer Gitlab::Graphql::QueryAnalyzers::RecursionAnalyzer.new
    ......
    ......@@ -44,6 +44,7 @@ def find_object(*args)
    end
    def authorized_find!(*args, **kwargs)
    binding.pry
    object = Graphql::Lazy.force(find_object(*args, **kwargs))
    authorize!(object)
    ......
    ......@@ -19,7 +19,7 @@ def initialize(query)
    query_string: query.query_string,
    variables: variables
    })
    rescue => e
    rescue StandardError => e
    Gitlab::ErrorTracking.track_and_raise_for_dev_exception(e)
    @results = default_initial_values(query_or_multiplex)
    end
    ......@@ -40,7 +40,7 @@ def result
    GraphqlLogger.info(results.except!(:time_started, :query))
    results
    rescue => e
    rescue StandardError => e
    Gitlab::ErrorTracking.track_and_raise_for_dev_exception(e)
    end
    ......
    ......@@ -70,8 +70,9 @@ def issue_titles
    end
    it 'can access the issues' do
    binding.pry
    post_graphql(query("id: \"#{global_id_of(label_list)}\""), current_user: user)
    binding.pry
    expect(issue_titles).to eq([issue2.title, issue1.title])
    end
    end
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment