Skip to content

feat: gate dev warehouse auto-resolution behind opt-in env var#460

Draft
MarioCadenas wants to merge 1 commit into
mainfrom
feat/opt-in-warehouse-auto-resolve
Draft

feat: gate dev warehouse auto-resolution behind opt-in env var#460
MarioCadenas wants to merge 1 commit into
mainfrom
feat/opt-in-warehouse-auto-resolve

Conversation

@MarioCadenas

Copy link
Copy Markdown
Collaborator

Auto-resolving a SQL warehouse in development previously triggered whenever NODE_ENV=development and DATABRICKS_WAREHOUSE_ID was unset. This conflated "running locally" with "silently pick a warehouse for me", which is convenient for the dev-playground but surprising for real apps (e.g. the Genie app builder) that share the same template dev script.

Auto-resolution now additionally requires APPKIT_AUTO_RESOLVE_WAREHOUSE to be set ("1" or "true"); the NODE_ENV=development guard is retained so it can never auto-pick in production. The dev-playground opts in via its dev scripts to preserve current zero-config behavior.

BEHAVIOR CHANGE: apps scaffolded from the template no longer auto-resolve a warehouse in dev unless they set APPKIT_AUTO_RESOLVE_WAREHOUSE.

Auto-resolving a SQL warehouse in development previously triggered
whenever NODE_ENV=development and DATABRICKS_WAREHOUSE_ID was unset.
This conflated "running locally" with "silently pick a warehouse for
me", which is convenient for the dev-playground but surprising for real
apps (e.g. the Genie app builder) that share the same template dev
script.

Auto-resolution now additionally requires APPKIT_AUTO_RESOLVE_WAREHOUSE
to be set ("1" or "true"); the NODE_ENV=development guard is retained so
it can never auto-pick in production. The dev-playground opts in via its
dev scripts to preserve current zero-config behavior.

BEHAVIOR CHANGE: apps scaffolded from the template no longer auto-resolve
a warehouse in dev unless they set APPKIT_AUTO_RESOLVE_WAREHOUSE.

Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🔬  Run evals on this PR  ·  Go to Evals Monitor →

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