Skip to content

Conversation

@sfendell-labelbox
Copy link
Contributor

@sfendell-labelbox sfendell-labelbox commented Feb 28, 2024

None of these fields should be set to an empty value, and at least 1 is needed for an update.

@sfendell-labelbox sfendell-labelbox changed the title [PLT-130] Catch row update missing row data. [PLT-130] Catch row update missing row data or external_id. Feb 28, 2024
@sfendell-labelbox sfendell-labelbox marked this pull request as ready for review February 28, 2024 00:33
@sfendell-labelbox sfendell-labelbox requested a review from a team as a code owner February 28, 2024 00:33
@sfendell-labelbox sfendell-labelbox force-pushed the PLT-130 branch 3 times, most recently from d954484 to 1db9bb1 Compare February 29, 2024 19:30
# Convert row data to string if it is an object
# All other updates pass through
row_data = kwargs.get("row_data")
if not row_data and not kwargs.get("external_id") and not kwargs.get(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think you implemented the logic I mentioned here - #1439 (comment).

What happens if row_data is set to a non-empty value and global_key is set to an empty value?

You might need to differentiate a field being unset from it being set but to an empty value.

@sfendell-labelbox sfendell-labelbox force-pushed the PLT-130 branch 3 times, most recently from dce1843 to 42f452c Compare February 29, 2024 20:42
@sfendell-labelbox sfendell-labelbox changed the title [PLT-130] Catch row update missing row data or external_id. [PLT-130] Validate required fields in row update Feb 29, 2024
@sfendell-labelbox sfendell-labelbox changed the title [PLT-130] Validate required fields in row update [PLT-130] Validate "external_id", "global_key", "row_data" fields in row update Feb 29, 2024
@sfendell-labelbox sfendell-labelbox merged commit 00f8c23 into develop Mar 1, 2024
@sfendell-labelbox sfendell-labelbox deleted the PLT-130 branch March 1, 2024 01:53
@sfendell-labelbox sfendell-labelbox restored the PLT-130 branch March 1, 2024 02:25
@adrian-chang adrian-chang deleted the PLT-130 branch June 6, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants