Bug history added/removed are now numbers for estimated_time/remaining_time after the Mojo migration
Categories
(bugzilla.mozilla.org :: API, defect)
Tracking
()
People
(Reporter: marco, Assigned: dkl)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
Since bug 2081860 (native Mojo API for bug history), GET /rest/bug/<id>/history and include_fields=history return added/removed as JSON numbers for estimated_time and remaining_time. Example: bug 776027 -> {"field_name": "estimated_time", "removed": 0, "added": 40}.
Before, they were strings like every other field, which is what the API docs say (docs/en/md/api/core/v1/bug.md: "removed | string", "added | string").
This broke bugbug's model training, which calls string methods on every history value. The cause seems to be changeset_to_hash applying %api_field_types (NUMERIC_COLUMNS -> double) to history values. The legacy REST server effectively returned these as strings; the new one returns numbers.
Could history values be returned as strings again, as documented?
| Assignee | ||
Comment 1•13 days ago
|
||
Description
•