Menu

The GLQL panel that never reached Duo: parsing all three forms in Analyze with Duo
📰

The GLQL panel that never reached Duo: parsing all three forms in Analyze with Duo

DEV Community: gitlab·Priyanshu Jha·4 days ago
#Slp8m9bn
Long article (1164 words) — no AI summary yet.
Reading 0:00
15s threshold

A GLQL panel can be written three ways: a YAML block with a query: key, frontmatter plus a query, or a bare query. The GLQL parser and the GLQL API already accept all three. Analyze with Duo did not. withFilters parsed the panel as a single YAML document and required a query key, so the other two forms threw, were reported to Sentry, and never reached the agent.

There was a second crash in the same area. A map without a query key was treated as config, and parseQuery threw TypeError . Users got a frontend exception instead of a compiler syntax error.

This is the story of gitlab-org/gitlab!270787 , a parse path that follows the API, and a review that kept correcting my examples until they were real GLQL.

The issue: two failures, one root

The issue was gitlab-org/gitlab#639779 , opened by Miguel Rincon. The title is the whole bug: the GLQL frontend failed on blocks the GLQL API already accepted.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.