Uh oh!
There was an error while loading. Please reload this page.
Add submit_external_metrics - #2042
Conversation
b4ceeba to
d5e06a8CompareUh oh!
There was an error while loading. Please reload this page.
d5e06a8 to
53e891dCompare53e891d to
fad7ab5Comparefad7ab5 to
50dead7CompareUh oh!
There was an error while loading. Please reload this page.
50dead7 to
fba3758CompareUh oh!
There was an error while loading. Please reload this page.
fba3758 to
71602d2CompareUh oh!
There was an error while loading. Please reload this page.
71602d2 to
09c2034CompareUh oh!
There was an error while loading. Please reload this page.
09c2034 to
688fd91CompareThere 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
f0b166dCompareUh oh!
There was an error while loading. Please reload this page.


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.