Skip to content

ui: Handle Query.parse inputs without a profile-type prefix#6346

Merged
metalmatze merged 1 commit into
mainfrom
ui-parser-bare-matchers
May 4, 2026
Merged

ui: Handle Query.parse inputs without a profile-type prefix#6346
metalmatze merged 1 commit into
mainfrom
ui-parser-bare-matchers

Conversation

@metalmatze

@metalmatze metalmatze commented May 4, 2026

Copy link
Copy Markdown
Member

Bare matcher inputs like {namespace=~"a", pod=~".*"} match the _ matchers _ grammar rule, which returns profileName: {}. Both Query.fromAst and the partial-parse fallback then crash on undefined when constructing the ProfileType from the missing value, taking down callers like ProfileSelector. Default to an empty ProfileType in both paths.

@alwaysmeticulous

alwaysmeticulous Bot commented May 4, 2026

Copy link
Copy Markdown

✅ Meticulous spotted 0 visual differences across 288 screens tested: view results.

Meticulous evaluated ~4 hours of user flows against your PR.

Expected differences? Click here. Last updated for commit ef022fd ui: Handle Query.parse inputs without a profile-type prefix. This comment will update as new commits are pushed.

@metalmatze
metalmatze force-pushed the ui-parser-bare-matchers branch from 0e8efbe to 1d01604 Compare May 4, 2026 16:25
Bare matcher inputs like `{namespace=~"a", pod=~".*"}` match the
`_ matchers _` grammar rule, which returns `profileName: {}`. Both
Query.fromAst and the partial-parse fallback then crashed when
constructing the ProfileType from the missing value. Default to an
empty ProfileType in both paths.
@metalmatze
metalmatze force-pushed the ui-parser-bare-matchers branch from 9181dd2 to ef022fd Compare May 4, 2026 16:40
@metalmatze metalmatze changed the title ui: Guard Query.parse partial fallback against missing lexerState ui: Handle Query.parse inputs without a profile-type prefix May 4, 2026
@metalmatze
metalmatze merged commit c9bcea5 into main May 4, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants