Repository navigation
Home page: no "since last scan" delta across a wheelgap upgrade - #84
Merged
patrickballard merged 1 commit intoNov 16, 2026
Merged
patrickballard merged 1 commit into
patrickballard merged 1 commit into
Conversation
platformStats compared each platform bar with the previous history entry whatever wheelgap version produced it, so the night the scan moved from 0.7.0 to 0.9.0 showed +1 to +5 on bars where changes.json rightly had nothing. Pass the previous entry's and this scan's wheelgap versions and return delta 0 when they differ or the previous entry has none. Closes wheelgap#58 Signed-off-by: sarankumar1325 <[email protected]>
Contributor
|
Merged, thanks @sarankumar1325! Treating a history entry with no If you'd like another one, #75 (notice the day a top package's release drops a platform's wheels, with a feed) follows on from this: it's the same "what changed since last night" question, applied to individual packages, and nobody has picked it up yet. (Review assisted by Claude.) |
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.
Closes #58.
What changes
platformStatsinsite/logic.jstakes two more arguments: the previous history entry'swheelgapand the current scan'swheelgap. When they differ,deltais 0. The existing Pyodide "not like for like" rule stays.wheelgapfield also givesdelta: 0. Without a version we can't tell whether the two nights are comparable, andupdate_changes.pyand the campaign trend also skip nights they can't compare. The currentdata/history.jsonhaswheelgapon every entry, so nothing changes on today's page.site/app.js:previousSummary(label)becomespreviousScan(), which returns the whole previous entry, sorenderPlatformscan pass its summary cell and itswheelgapalong withstate.data.wheelgap.Tests
In
tests/site/logic.test.js:okandpercentare unchanged.platformStatstests now pass matching versions.The two new tests fail on main.
node --test tests/site/logic.test.js tests/site/scripts.test.js tests/site/check-logic.test.mjspasses 29/29,node --checkis clean on logic.js and app.js, anduvx --python 3.14 [email protected]gives 325 passed, 1 skipped.