add-in-list-support-hdict

Registered by Aaron Rosen

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-e395-4bda-b48c-820f0d542acd",
            "fixed_ips": [{"subnet_id": "e56370ba-d255-486c-9907-ad4c6aed0241",
                           "ip_address": "10.2.0.2"}]}}

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

Sprints

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.