Skip to content

fix(schema): validate input_node_uuid as UUID in CreateOperationNodePayload#1415

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-input-node-uuid-type
Open

fix(schema): validate input_node_uuid as UUID in CreateOperationNodePayload#1415
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-input-node-uuid-type

Conversation

@sentry

@sentry sentry Bot commented Jun 19, 2026

Copy link
Copy Markdown

The CreateOperationNodePayload schema for /api/transform/v2/dbt_project/operations/nodes/ previously defined input_node_uuid as a generic str. This allowed non-UUID strings, such as frontend-generated temporary IDs like dummy-<uuid>, to be passed to the backend.

This change updates the input_node_uuid field in CreateOperationNodePayload from str to UUID. This ensures that the API payload is validated at the schema level, rejecting any non-UUID values early with a 422 Unprocessable Entity error, thus preventing the ValidationError from reaching the ORM layer. This provides a clearer error message and enforces data integrity.

Fixes DALGO-BACKEND-2HV

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.26%. Comparing base (11a5843) to head (20cbf64).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1415   +/-   ##
=======================================
  Coverage   60.26%   60.26%           
=======================================
  Files         146      146           
  Lines       17222    17222           
=======================================
  Hits        10378    10378           
  Misses       6844     6844           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

0 participants