Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 30, 2025

Add Flow Compilation and Deletion Utilities

This PR adds two new utility functions to help with flow management:

  1. pgflow._create_flow_from_shape(p_flow_slug, p_shape) - Creates a complete flow from a JSONB shape definition, handling steps and dependencies in a single operation.

  2. pgflow.delete_flow_and_data(p_flow_slug) - Safely removes a flow and all its associated runtime data, including PGMQ queues and all database records.

The implementation includes:

  • Schema definitions for both functions
  • Supabase migration to deploy the functions
  • Comprehensive test coverage for both functions, including:
    • Basic flow compilation
    • Map step compilation
    • Flow definition deletion
    • Runtime data deletion

These utilities will be particularly useful for development mode recompilation and for managing flows programmatically.

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

⚠️ No Changeset found

Latest commit: 0bdfc08

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Contributor Author

jumski commented Nov 30, 2025

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.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

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.

@nx-cloud
Copy link

nx-cloud bot commented Nov 30, 2025

View your CI Pipeline Execution ↗ for commit 0bdfc08

Command Status Duration Result
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 26s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 3m 58s View ↗
nx run edge-worker:e2e ✅ Succeeded 2m 53s View ↗
nx run cli:e2e ✅ Succeeded 6s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-30 14:56:58 UTC

@jumski jumski force-pushed the 11-30-feat_core_add_shape_extraction_and_comparison_functions branch from e0978a9 to b1eb033 Compare November 30, 2025 01:33
@jumski jumski force-pushed the 11-30-feat_core_add_flow_creation_and_deletion_functions branch 2 times, most recently from 09c6368 to abd6e12 Compare November 30, 2025 11:40
@jumski jumski force-pushed the 11-30-feat_core_add_flow_creation_and_deletion_functions branch from abd6e12 to 0bdfc08 Compare November 30, 2025 14:47
@jumski jumski force-pushed the 11-30-feat_core_add_shape_extraction_and_comparison_functions branch from b1eb033 to 9adebe8 Compare November 30, 2025 14:47
@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-465.pgflow.pages.dev

📝 Details:

  • Branch: 11-30-feat_core_add_flow_creation_and_deletion_functions
  • Commit: c1ae42418e9c78689787bcacdad3592e6a2e9ead
  • View Logs

_Last updated: _

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.

2 participants