File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -84,16 +84,10 @@ class DataRowMetadataBatchResponse(_CamelCaseMixin):
84
84
# Don't want to crowd the name space with internals
85
85
86
86
87
- # Bulk upsert values
88
- class _UpsertDataRowMetadataInput (_CamelCaseMixin ):
89
- schema_id : str
90
- value : Any
91
-
92
-
93
87
# Batch of upsert values for a datarow
94
88
class _UpsertBatchDataRowMetadata (_CamelCaseMixin ):
95
89
data_row_id : str
96
- fields : List [_UpsertDataRowMetadataInput ]
90
+ fields : List [Dict ]
97
91
98
92
99
93
class _DeleteBatchDataRowMetadata (_CamelCaseMixin ):
@@ -404,7 +398,7 @@ def _bulk_export(_data_row_ids: List[str]) -> List[DataRowMetadata]:
404
398
405
399
def _parse_upsert (
406
400
self , metadatum : DataRowMetadataField
407
- ) -> List [_UpsertDataRowMetadataInput ]:
401
+ ) -> List [Dict ]:
408
402
"""Format for metadata upserts to GQL"""
409
403
410
404
if metadatum .schema_id not in self .fields_by_id :
@@ -428,7 +422,7 @@ def _parse_upsert(
428
422
else :
429
423
raise ValueError (f"Unknown type: { schema } " )
430
424
431
- return [ _UpsertDataRowMetadataInput ( ** p ) for p in parsed ]
425
+ return parsed
432
426
433
427
def _validate_delete (self , delete : DeleteDataRowMetadata ):
434
428
if not len (delete .fields ):
You can’t perform that action at this time.
0 commit comments