Validate versioned workflows against their own node schemas - #1060
Validate versioned workflows against their own node schemas#1060justadityaraj wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Thanks for the focused fix. The Notion 2.2 path is valid, but I found one regression that should be addressed before merge.
I reproduced this with Please preserve or merge variant-only properties when selecting the historical base schema (or handle One process item as well: Local verification: 317 relevant validator/database tests and typecheck passed. |
Conceived by Romuald Członkowski - https://aiadvisors.pl/en
838cff6 to
212082f
Compare
|
Fixed in
Verified: 374 relevant tests, typecheck, build, and diff check passed. The full unit run still hits the existing Windows FTS5/symlink/shell limitations and does not exit cleanly. |
Context
Notion 3 made the database-page
titlefield required. Workflows saved with Notion 2.2 were still being validated against that latest schema, so a valid nested title expression producedRequired property 'Title' cannot be empty.Review also exposed a related path: persisted
*Toolvariants resolve version rows through their base node, whose historical schema does not contain the generatedtoolDescriptionproperty.Fixes #1037
Changes
typeVersiontoolDescriptionproperty when a Tool variant uses its base node's historical schemaUser impact
Older versioned nodes are validated against the schema they actually execute with, including stored Tool variants, while current nodes retain their existing validation.
Verification
Property 'toolDescription' won't be used - not visible with current settingsnpm run typecheck,npm run build, andgit diff upstream/main...HEAD --check: passedConceived by Romuald Członkowski - https://aiadvisors.pl/en