-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add SQL functions to compare and retrieve flow shapes #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-29-worker_statup_compilation
Are you sure you want to change the base?
feat: add SQL functions to compare and retrieve flow shapes #464
Conversation
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 9adebe8
☁️ Nx Cloud last updated this comment at |
e0978a9 to
b1eb033
Compare
b1eb033 to
9adebe8
Compare
44fa645 to
19fbfb4
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-464.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Add Flow Shape Comparison Utilities
This PR adds two new PostgreSQL functions to support flow shape validation:
pgflow._get_flow_shape(p_flow_slug text): Retrieves a flow's structure from the database as JSONB, matching the TypeScript FlowShape interface with steps, their types, and dependencies.pgflow._compare_flow_shapes(p_local jsonb, p_db jsonb): Compares two flow shapes and returns an array of difference descriptions, mirroring the TypeScript compareFlowShapes() function logic.The implementation includes comprehensive tests for both functions covering:
These functions will enable validation of flow structures between client and server representations.