Open Bug 2089526 Opened 15 days ago Updated 13 days ago

Bug history added/removed are now numbers for estimated_time/remaining_time after the Mojo migration

Categories

(bugzilla.mozilla.org :: API, defect)

Production
defect

Tracking

()

ASSIGNED

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?

Attached file GitHub Pull Request —
Assignee: nobody → dkl
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: