Skip to content

fix: remove empty fields from dashboard chat context#8798

Merged
AdityaHegde merged 1 commit intomainfrom
fix/remove-unnessary-metrics-expression-fields
Feb 9, 2026
Merged

fix: remove empty fields from dashboard chat context#8798
AdityaHegde merged 1 commit intomainfrom
fix/remove-unnessary-metrics-expression-fields

Conversation

@AdityaHegde
Copy link
Collaborator

Analyst agent args had a lot of empty values. This gets especially bad when filters are present and every level has things like name: "", cond: null etc. Adding omitempty to make json marshaller remove empty fields.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@AdityaHegde AdityaHegde merged commit bd7b06c into main Feb 9, 2026
16 checks passed
@AdityaHegde AdityaHegde deleted the fix/remove-unnessary-metrics-expression-fields branch February 9, 2026 13:10
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