This PR introduces improvements to the data row creation process within the SDK.
This PR refactors the following two data row creation methods:
Dataset.create_data_row
Dataset.create_data_row_sync
Both methods now leverage the upsert mutation for data row creation.
Since the upsert mutation is asynchronous, a task waiting mechanism has been implemented within these methods to ensure synchronous data row creation behavior.
A new ResourceCreationError exception has been introduced. This exception provides informative error messages in case of data creation failures, replacing the previous approach of returning None.
Description
This PR introduces improvements to the data row creation process within the SDK. This PR refactors the following two data row creation methods:
Dataset.create_data_row
Dataset.create_data_row_sync
Both methods now leverage the upsert mutation for data row creation.
Since the upsert mutation is asynchronous, a task waiting mechanism has been implemented within these methods to ensure synchronous data row creation behavior.
A new ResourceCreationError exception has been introduced. This exception provides informative error messages in case of data creation failures, replacing the previous approach of returning None.
Stories: https://labelbox.atlassian.net/browse/PLT-1066 https://labelbox.atlassian.net/browse/PLT-1067
On test failures:
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features