Conversation
b4ceeba to
d5e06a8
Compare
d5e06a8 to
53e891d
Compare
53e891d to
fad7ab5
Compare
fad7ab5 to
50dead7
Compare
50dead7 to
fba3758
Compare
fba3758 to
71602d2
Compare
71602d2 to
09c2034
Compare
| content_url: Optional[str] = None | ||
| label: Optional[ProjectSyncLabel] = None | ||
| review: Optional[ProjectSyncReview] = None | ||
| queue_type: Optional[str] = None |
There was a problem hiding this comment.
Missing row_status field in ProjectSyncEntry model
High Severity
The ProjectSyncEntry model is missing a row_status field, even though the PR description's example usage shows row_status="PASS" being passed. Since Pydantic ignores extra fields by default, any row_status value provided by users will be silently dropped. The _to_gql_input function also lacks serialization logic for this field, so even if the model were fixed, the value would never reach the GraphQL API.
Additional Locations (1)
09c2034 to
688fd91
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| {"name": cs.name, "value": cs.value} | ||
| for cs in entry.review.custom_scores | ||
| ] | ||
| result["review"] = review |
There was a problem hiding this comment.
Missing explicit-None handling for review field in serialization
Medium Severity
The _to_gql_input function handles explicitly-set None values via model_fields_set checks for label and queue_type, but the review field is missing this same elif branch. When a user explicitly passes review=None to a ProjectSyncEntry, the review key is silently omitted from the GQL input instead of being sent as None, which is inconsistent with how label and queue_type behave.
688fd91 to
f0b166d
Compare


Description
Allow syncing external metrics to projects
Example usage:
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features
Note
Medium Risk
Adds a new GraphQL mutation path and input serialization for project data sync; risk is mainly schema mismatch/serialization edge cases (e.g., optional vs explicit null) causing failed or incorrect syncs.
Overview
Adds a new
Project.sync_external_project()method that calls asyncExternalProjectGraphQL mutation to asynchronously push external label/review metadata (including AutoQA status/scores and queue state) into a project and returns asubmission_idfor tracking.Introduces a new
project_syncpydantic schema (ProjectSyncEntry,ProjectSyncLabel/Review,AutoQA, etc.) plus a_to_gql_inputserializer (including explicitnullsupport), and re-exports these types fromlabelbox.__init__for SDK users.Written by Cursor Bugbot for commit f0b166d. This will update automatically on new commits. Configure here.