Repository navigation
List everything in a window, not the newest 5,000 - #104
Merged
Merged
Conversation
A listing asked for a date window stopped at 5,000 rows, newest first, so anything older was dropped without a word. History's totals undercounted and the earliest bars drew empty once a window held more drives than that; a TeslaMate car with 6,421 drives already loses its oldest 1,421 over its whole history. With a window, drives and charging sessions now come back in full, from RivianMate's database and from TeslaMate. Without one they still come a page of 200 at a time. Trip candidates, which used the same cap, are uncapped too. Fixes #102
blike
force-pushed
the
uncap-windowed-listings
branch
from
November 9, 2026 00:44
d29c78f to
45b1e60
Compare
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When drives or charging sessions are listed for a date window, the server returns only the newest
5,000 and drops the rest without saying so. Over a long window, History then undercounts its totals
and draws the oldest bars empty. Fixes #102.
With a window, every row in it now comes back, from RivianMate's database and from TeslaMate.
Listings with no window still return 200 at a time. That's paging, not a cap: the Drives and
Charging pages load the next 200 with
beforeas you scroll.Testing
included.
An all-time listing against a TeslaMate car with 6,421 drives takes 0.4 s and returns 5.9 MB of
JSON before compression.
Deployment