Duplicate tracing paths in queries with pagination

Open
#1,566 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, laravel, php

Research direction

Start by reproducing the issue with Tracing enabled using a query that has arguments and pagination, following the steps and examples in the issue. Compare the resulting tracing paths with the cases that do not duplicate; done means each resolver path is parsed only once.

Written by the indexing model from the issue text.

Description

bug

Describe the bug

https://lighthouse-php.com/4.16/performance/tracing.html

Queries with args and pagination duplicates first tracing resolver path.

Expected behavior/Solution

Should be parsed once per path. Am i missing something?

Steps to reproduce

  1. Eneable Tracing
  2. Execute any query with args and pagination
  3. The resulting tracing duplicates first path.

Output/Logs

Click to expand

Duplicates first tracing resolver path

image

image

image

Does not duplicates

image

image

image


Lighthouse Version

5.alpha-4

Dominant language
PHP
Stars
3.5k
Forks
468
Avg merge
3h 9m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nuwave/lighthouse

All issues in nuwave/lighthouse

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.