Closed Hexcles closed 7 years ago
@bobholt
@Hexcles: I'm working on this today. I have the db migration stuff ready, but I'm trying to come up with a safe SQL script to safe convert the correct *.1
s to *.10
s
@Hexcles: PR #24 opened for this.
@Hexcles This has been deployed to production, and historical data should have been fixed. See https://pulls.web-platform-tests.org/build/18152 as an example (from 2017-09-04 and now shows 18152.10 as Job Number for Chrome Unstable)
@bobholt Awesome! Thanks!
In the models,
Job
has anumber
field with typedb.Float
: https://github.com/w3c/wptdash/blob/80e1c395bfc93c3712c91680f8c8ecee7ee90ba6/wptdash/models.py#L206This causes trailing zeros of the number to be trimmed, among other potential problems. For example, Job 17762.10 becomes 17762.1 (https://pulls.web-platform-tests.org/build/17762).
We should really use
db.String
for this field.Perhaps existing records in DB also need to be examined/refreshed after this bug is fixed.