Closed
Bug 866759
Opened 13 years ago
Closed 13 years ago
datetime for warranty fields in inventory
Categories
(Infrastructure & Operations :: Infrastructure: Other, task)
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.
| Assignee | ||
Comment 1•13 years ago
|
||
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`.
Updated•13 years ago
|
Component: Server Operations → Server Operations: Infrastructure
QA Contact: shyam → jdow
| Reporter | ||
Comment 2•13 years ago
|
||
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."
| Assignee | ||
Comment 3•13 years ago
|
||
The 'Value 2 is not a valid choice. ...' is from something else that should be fixed now.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•13 years ago
|
||
I changed the `DateTimeField` field to a `DateField`
https://github.com/mozilla/inventory/commit/662cc2ef9c7022546e370b0428795f08ebc99e37
| Assignee | ||
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
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.
Description
•