visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

debug: Annotate GQL queries

Open bprusinowski opened this issue 1 year ago • 1 comments

Closes #1715

This PR adds a way to annotate GQL queries by passing a specific headers with querySource and queryReason, which are then displayed in the DebugPanel.

This should help understand which parts of the application require which data at which time, to be able to better optimize performance (or see which queries are e.g. not needed).

How to test

  1. Go to this link.
  2. Open a DebugPanel by clicking on a 🛠️ emoji in the right bottom corner.
  3. Click on DataCubePreview entry.
  4. ✅ See that there's a title and description on the right side, which informs about the origin of the query and why it was fired.

bprusinowski avatar Oct 03 '24 11:10 bprusinowski

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool 🛑 Canceled (Inspect) Oct 3, 2024 0:01am

vercel[bot] avatar Oct 03 '24 11:10 vercel[bot]