add-in-list-support-hdict
This blueprint is to add support for a new translator value called in-list
which is useful in translating a hdict that contains another hdict which
is a list.
Several datasources return data in the format of a dict(list(dict()) (for
example neutron ports for fixed_ips):
{"ports": [{"status": "DOWN",
"id": "11ce1474-
congress currently does not have a good way to aid with data formatted in this
way. This blueprint is to provide an easy generic way to do so.
To implement this solution I propose we add a new in-list attribute to the
child translator. If present, the datasource driver class will just simply
interate this list and treat each list element as an hdict.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Medium
- Drafter:
- Aaron Rosen
- Direction:
- Needs approval
- Assignee:
- Aaron Rosen
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Tim Hinrichs
- Completed by
- Tim Hinrichs
Related branches
Related bugs
Sprints
Whiteboard
Addressed by: https:/
Implement in-line attribute for hdict
Gerrit topic: https:/
Gerrit topic: https:/