Skip to content

fix(kanban): honor severity thresholds in diagnostics (#26431)#28416

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd
May 19, 2026
Merged

fix(kanban): honor severity thresholds in diagnostics (#26431)#28416
teknium1 merged 1 commit into
mainfrom
hermes/hermes-de55f5dd

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvages #26431 by @LeonSGP43.

Dashboard list_diagnostics endpoint used exact-match equality so --severity warning hid error and critical. Adds severity_at_or_above() helper to kanban_diagnostics (centralizing the threshold semantics) and uses it in the dashboard endpoint. The CLI was already using SEVERITY_ORDER.index comparison correctly so no CLI behavioral change.

Original branch was stale; applied substantive change manually onto current main. Authorship preserved via rebase merge.

Validation

  • New test test_severity_at_or_above_uses_threshold_semantics passes.

Salvages #26431 by @LeonSGP43. Dashboard plugin_api list_diagnostics
was using exact-match (severity == filter), so '--severity warning'
hid 'error' and 'critical' diagnostics. Adds severity_at_or_above()
helper to kanban_diagnostics and uses it in the dashboard endpoint
(CLI already used SEVERITY_ORDER comparison correctly).
@teknium1 teknium1 merged commit a94ddd8 into main May 19, 2026
@teknium1 teknium1 deleted the hermes/hermes-de55f5dd branch May 19, 2026 03:47
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-de55f5dd vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8814 on HEAD, 8814 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4626 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

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