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

Work in progress

parent 15fae582
No related branches found
No related tags found
No related merge requests found
Pipeline #433397181 canceled
Pipeline: GitLab

#433397344

    This commit is part of merge request !27536. Comments created here will be created in the context of that merge request.
    ......@@ -4,8 +4,6 @@ module FindClosest
    # Find the closest node which has any of the given types above this node, and return the domain object
    def closest_parent(types, parent)
    while parent
    binding.pry
    if parent.respond_to?(:object) && types.any? {|type| parent.object.instance_of? type}
    return parent.object.object
    else
    ......
    ......@@ -30,8 +30,6 @@
    end
    it 'returns the complexity, depth, duration, etc' do
    expect(Gitlab::GraphqlLogger).to receive(:info).and_return(true)
    result = GraphQL::Analysis::AST.analyze_query(query, [described_class], multiplex_analyzers: [])
    expect(result.first[:duration_s]).to eq monotonic_time_duration
    ......
    ......@@ -90,8 +90,8 @@
    it 'returns too many tags error' do
    expect { subject }.not_to change { ::Packages::Event.count }
    explanation = graphql_errors.dig(0, 'extensions', 'problems', 0, 'explanation')
    binding.pry
    explanation = graphql_errors.dig(0, 'message')
    expect(explanation).to eq(Mutations::ContainerRepositories::DestroyTags::TOO_MANY_TAGS_ERROR_MESSAGE)
    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