Skip to content

fix(applyflow): gate cloud rollout by account allowlist - #258

Merged
gustavomarques00 merged 2 commits into
mainfrom
feat/applyflow-account-rollout
Oct 9, 2026
Merged

gustavomarques00 merged 2 commits into
mainfrom
feat/applyflow-account-rollout

Conversation

@gustavomarques00

Copy link
Copy Markdown
Collaborator

Summary

  • Server env APPLYFLOW_PERSISTENCE_V2_ROLLOUT_ACCOUNTS selects which accounts may leave v1 or v2_paused when the global flag is on. An absent, empty, or invalid list fails closed. Existing v2_cloud accounts that are not listed stay paused without changing canonicalPersistence or falling back to local storage.
  • Extension grant mint and probe follow that same decision. Product, migration, activation, and personal routes already use the shared capability resolver.
  • scripts/applyflow-vercel-ignore.mjs avoids the turbo-ignore false skip caused by combining VERCEL_GIT_PREVIOUS_SHA with the same SHA in --filter. Portal-only diffs can still skip. The Vercel project command is unchanged.

Test plan

  • Vitest for the allowlist, mode matrix, HTTP capabilities, migration, empty activation, operator grant/revoke, and Jobs/Applications//me routes (166 passed)
  • node --test scripts/applyflow-vercel-ignore.test.mjs
  • Clean-tree script: exit 1 vs 18cf6620, exit 0 vs be7a346c with VERCEL=1
  • ApplyFlow typecheck, eslint on the gate files, and production build
  • Browser runtime for active, read-only, and paused on isolated local Postgres
  • Do not merge, deploy, or turn APPLYFLOW_PERSISTENCE_V2 on from this PR

A global flag alone would reactivate every existing v2_cloud account. Selection now fails closed, and the ignore helper avoids the turbo-ignore false skip without disabling portal-only skips.
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devflow Ready Ready Preview Oct 9, 2026 6:03pm UTC
devflow-applyflow Ready Ready Preview Oct 9, 2026 6:03pm UTC
devflow-financeiro Ready Ready Preview Oct 9, 2026 6:03pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
devflow-whatsapp Ignored Ignored Preview Oct 9, 2026 6:03pm UTC

Pin synthetic account ids so the server allowlist can distinguish active, read-only, and paused, and keep the A-to-B switch on selected cloud accounts.
@gustavomarques00
gustavomarques00 merged commit ab1c04c into main Oct 9, 2026
12 checks passed
@gustavomarques00
gustavomarques00 deleted the feat/applyflow-account-rollout branch November 4, 2026 19:24

This branch was successfully deployed

4 active (3 outdated) deployments
Preview – devflow-applyflow — 58ceb646 Deployed Oct 9, 2026 by vercel[bot]
Preview – devflow-financeiro — c7ba66fc Deployed Oct 9, 2026 by vercel[bot]
Preview – devflow — c7ba66fc Deployed Oct 9, 2026 by vercel[bot]
Preview – devflow-whatsapp — c7ba66fc Deployed Oct 9, 2026 by vercel[bot]
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.

1 participant