Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.8-incubating
Description
Background
Existing Export API navigates the graph structure and get all the connected entities as part of export. The API is geared toward exporting of entire database and not parts of the database.
Scenario
It is possible to specify Export of 1 table. The resulting ZIP however, contains the entire database and all other tables in the database to be exported. Alternately stated, it is not possible to export subset of the graph of which the entity is part of.
This behavior impacts Import, as more entities get imported than needed.
Resolution
While the existing approach is useful, the user should be allowed to specify the scope of the export operation.
The existing ExportRequest.options could potentially have an option that indicate the scope.
options
FETCH = FULL | CONNECTED
FETCH = FULL All entities directly and indirectly entities are fetched.
FETCH = CONNECTED All entities directly connected are fetched.
Examples:
{ "itemsToExport": [ { "typeName": "DB_v1", "uniqueAttributes": { "name": "Sales" } } ], "options": { "FETCH": "FULL" } }
{ "itemsToExport": [ { "typeName": "Table_v1", "uniqueAttributes": { "name": "customer_view" } } ], "options": { "FETCH": "CONNECTED" } }
Attachments
Attachments
Issue Links
- links to