refactor-datasource-driver-framework

Registered by Aaron Rosen

* current there is a lot of logic in the convert_obj() method which is
  used to load the data into the data source driver. The majority of this
  logic is to validate that the table schema is valid. We should only need
  to do this one though on load of the data source driver.

* currently if you list the tables of a data source driver they aren't always
  populated in via __init__ self.state[table_name] = set(). I want to add a
  method to the DatasourceDriver base class that load_translator() which
  will allow one to pass in translators via the __init__ of a
  datasource driver. This will validate the schema there.

Blueprint information

Status:
Complete
Approver:
Tim Hinrichs
Priority:
Low
Drafter:
Aaron Rosen
Direction:
Approved
Assignee:
Aaron Rosen
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon kilo-2
Started by
Tim Hinrichs
Completed by
Aaron Rosen

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/refactor-datasource-driver-framework,n,z

Addressed by: https://review.openstack.org/135447
    Move exceptions from datasource_driver to exception file

Addressed by: https://review.openstack.org/135471
    Implement get_translators in the base class

Addressed by: https://review.openstack.org/135099
    Refactor datasource translator logic

Addressed by: https://review.openstack.org/126377
    Add glancev2 datasource driver

Addressed by: https://review.openstack.org/135769
    Refactor get_credentials out of DataSourceDriver class

Addressed by: https://review.openstack.org/131679
    Move inline funtions out of convert_obj

Addressed by: https://review.openstack.org/138594
    Break up convert_obj

Addressed by: https://review.openstack.org/139159
    Break out inline method _get_schema

Addressed by: https://review.openstack.org/139160
    Break out _get_schema to get_schema(hdict|vdict|list)

Gerrit topic: https://review.openstack.org/#q,topic:bp/parent-key-improvements,n,z

Addressed by: https://review.openstack.org/140855
    Make parent_key accessable from subtable

Addressed by: https://review.openstack.org/140560
    Implement in-line attribute for hdict

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.