Roadmap 0.13, Fixes

FX.791 Market watch (/admin/market) gave error 500 when a project lost stars

  • Fix
  • Built · Live

What was wrong: the inventory query worked out each project's 30-day star change as stars minus an older snapshot's stars; both columns are UNSIGNED, so when a project lost stars (jscad, -1 in today's refresh) MySQL refused the negative result ("BIGINT UNSIGNED value is out of range") and the whole page failed. What changed: MarketWatch::projects subtracts as SIGNED, so a drop shows as a negative change. Checked: the query returns all 184 projects (jscad -1), bin/test-market.php 475/0. Not checked by hand in a signed-in browser.

From: Owner

Add a comment

Community comments

No comments yet

Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.

Sign in or create a free account to add a comment.