Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: daf_butler
-
Labels:
-
Story Points:3
-
Epic Link:
-
Sprint:DB_S22_12
-
Team:Data Access and Database
-
Urgent?:No
Description
Unfinished business from DM-32072: Datastore now has import_records and export_records methods with do-nothing implementations. These should be implemented to actually do something for any concrete Datastore that has internal records, and the base class implementation should probably be made abstract, since that's the usual case.
The API I use in FileDatastore is _get_stored_records_associated_with_refs which returns `Dict[dataset_id, List[StoredFileInfo]]` (since a dataset ID can refer to multiple records). Are you using that API to get all the relevant records?
I haven't needed the datasetId so didn't think about it before. An optional dataset_id passed to StoredFileInfo,from_record() seems like it would not cause any problems.