Skip to content

Home page: "+N since last scan" shouldn't compare across a wheelgap upgrade #58

Closed

Description

@patrickballard

update_changes.py and the campaign trend both treat a night that ran a new wheelgap version as not comparable with the night before. The home page's platform bars don't: platformStats in site/logic.js compares with the previous history entry whatever produced it. On the night the scan moved from wheelgap 0.7.0 to 0.9.0, every 3.13–3.15t bar showed "+1" to "+5 since last scan" (e.g. "3.13 win-arm64 +4"), while changes.json rightly had nothing for those nights.

What to do

  • Pass the previous history entry's wheelgap and the current scan's wheelgap to platformStats (from site/app.js), and return delta: 0 when they differ. Keep the existing Pyodide "not like for like" rule.
  • Tests in tests/site/logic.test.js: same version (delta shown), different version (0), and an older entry with no wheelgap field (treat as not comparable, or say in the PR why not).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions