You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c28e69f
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: auto-detect environment in ensure_flow_compiled instead of requiring mode parameter (#503)
# Auto-detect environment in ensure_flow_compiled function
This PR modifies the `ensure_flow_compiled` function to automatically detect the environment using the `is_local()` function instead of requiring a mode parameter. This simplifies the API by:
1. Removing the `p_mode` parameter from the function signature
2. Using `pgflow.is_local()` to determine whether to auto-recompile (local) or fail on mismatch (production)
The behavior remains the same:
- In local environments: automatically recompile flows when shapes differ
- In production environments: return a mismatch error when shapes differ
Updated tests to verify the auto-detection works correctly in both environments.
0 commit comments