Skip to content

Feature/datatables view enhance#1

Merged
wardi merged 2 commits intoJVickery-TBS:feature/datatables-view-enhancefrom
wardi:feature/datatables-view-enhance
Jan 24, 2026
Merged

Feature/datatables view enhance#1
wardi merged 2 commits intoJVickery-TBS:feature/datatables-view-enhancefrom
wardi:feature/datatables-view-enhance

Conversation

@wardi
Copy link

@wardi wardi commented Jan 23, 2026

Here's my version of the histogram API. I'm returning the buckets and edges in the "fields" value instead of as a separate dict.

I haven't updated the frond-end to match, but you can see the expected values in the test provided.

We'll need a helper function to turn edges and bucket array values into histogram bar heights and widths. With discrete values like ints or dates some bars will be different widths, and the heights need to be scaled by the relative widths for accuracy.

Other future work:

  • buckets should be calculated based on the filters of only the other columns so that users can adjust the histogram brush controls outside their current values
  • redis cache for bucket calculations, only cache when no filters applied, delete individual cache values on any change to the datastore table

@wardi wardi merged commit f95ea63 into JVickery-TBS:feature/datatables-view-enhance Jan 24, 2026
@wardi
Copy link
Author

wardi commented Jan 24, 2026

oops, pushed to the wrong branch and closed this accidentally

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.

1 participant