rill icon indicating copy to clipboard operation
rill copied to clipboard

Fix json display in leaderboards

Open ericokuma opened this issue 3 months ago • 1 comments

Fixes APP-308: Display JSON in leaderboards and dimension tables, and enable filtering.

Previously, JSON dimension values were displayed as [object Object] and caused SQL errors (unsupported type map[string]interface {}) when filtered. This PR introduces a formatDimensionValue helper to properly stringify JSON, STRUCT, MAP, and ARRAY types. This ensures correct display in leaderboards and dimension tables, and allows filtering on these values without errors by passing stringified JSON to the backend.

Checklist:

  • [ ] Covered by tests
  • [ ] Ran it and it works as intended
  • [ ] Reviewed the diff before requesting a review
  • [ ] Checked for unhandled edge cases
  • [x] Linked the issues it closes (APP-308)
  • [ ] 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!

Linear Issue: APP-308

Open in Cursor Open in Web

ericokuma avatar Sep 03 '25 15:09 ericokuma

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch. Learn more about Cursor Agents

cursor[bot] avatar Sep 03 '25 15:09 cursor[bot]