Closed Bug 866759 Opened 13 years ago Closed 13 years ago

datetime for warranty fields in inventory

Categories

(Infrastructure & Operations :: Infrastructure: Other, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arich, Assigned: juber)

Details

The warranty fields in inventory have date AND time when they only use date. We should modify the field type to remove time and make it match that of purchase_date.
Indeed, this is a mistake I made when the fields were added. See: https://github.com/mozilla/inventory/blob/master/systems/models.py#L383 They should be `DateField` and not `DateTimeField`.
Component: Server Operations → Server Operations: Infrastructure
QA Contact: shyam → jdow
I'm also getting an error when I try to input data on some hosts, but only when I check the box to write the data. primary_attribute%serial,warranty_start,warranty_end,purchase_date c07fcaqjdd6h,2011-07-11,2012-07-11,2011-07-11 Results in the error: "Value 2 is not a valid choice. Value 2 is not a valid choice. Value 2 is not a valid choice. Value 2 is not a valid choice. Value 2 is not a valid choice."
The 'Value 2 is not a valid choice. ...' is from something else that should be fixed now.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: Server Operations: Infrastructure → Infrastructure: Other
Product: mozilla.org → Infrastructure & Operations
You need to log in before you can comment on or make changes to this bug.