-
Notifications
You must be signed in to change notification settings - Fork 68
[PLT-1107] Add validation for empty row_data for Dataset create_data_rows #1667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
22b9a3a
to
ee84e44
Compare
ee84e44
to
bf3b7c8
Compare
if len(string_items) > 0: | ||
dict_string_items = self._build_from_local_paths(string_items) | ||
specs = DataRowUpsertItem.build(self.uid, | ||
specs = DataRowCreateItem.build(self.uid, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the point was to maximize use of upsert ... was this on purpose or just for this use case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we are using upsert, and this change just captures difference in data formatting and validation between create and upsert on the sdk side due to a number of edge cases for create
Lots of flaky tests, passing locally. Merging PR, will look to address the tests separately |
…t create_data_rows (#1667)"
…t create_data_rows (#1667)"
Description
During my implementation / refactor of Dataset
create_data_rows
, I somehow dropped validation of empty row_data. This PR restores validation of row_data and throws and error if it is None or an empty stringFixes the issue discussed here https://labelbox.slack.com/archives/CPVQE6T2T/p1718010997829539
Type of change
Please delete options that are not relevant.
All Submissions
Changes to Core Features