Metadata widget doesn't handle default values for numeric and boolean fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Kamil Rykowski |
Bug Description
Metadata widget doesn't handle well default values for metadefinition properties from Glance which type is set to: integer, number and boolean. For now on it works only with string properties.
To reproduce this issue follow these steps:
1. Go to the "metadef_
2. Update "json_schema" field of any record (e.g. "os_shutdown_
Field "json_schema" before update:
{
"minimum": 0,
"type": "integer",
"description": "Some description.",
"title": "Shutdown timeout"
}
After update:
{
"minimum": 0,
"type": "integer",
"description": "Some description.",
"title": "Shutdown timeout",
"default: 10
}
3. Go to the Horizon /admin/images/ page and choose any image which doesn't have "os_shutdown_
4. Open "Update Metadata" form and pick the "Shutdown timeout" property. As you can see it has empty input, with no default value filled.
Same steps can be repeated for number and boolean properties to check that no default value is shown to the user. Default value is prompted only for string properties.
Changed in horizon: | |
assignee: | nobody → Kamil Rykowski (kamil-rykowski) |
status: | New → In Progress |
Changed in horizon: | |
assignee: | Kamil Rykowski (kamil-rykowski) → Szymon Wróblewski (bluex) |
Changed in horizon: | |
assignee: | Szymon Wróblewski (bluex) → Kamil Rykowski (kamil-rykowski) |
Changed in horizon: | |
assignee: | Kamil Rykowski (kamil-rykowski) → Szymon Wróblewski (bluex) |
Changed in horizon: | |
assignee: | Szymon Wróblewski (bluex) → Kamil Rykowski (kamil-rykowski) |
Changed in horizon: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/143444
Review: https:/