Skip to content

feat: remember preferences for experimental dbt cloud cli#21846

Open
owlas wants to merge 2 commits intomainfrom
feat/persist-dbt-cloud-cli-preference
Open

feat: remember preferences for experimental dbt cloud cli#21846
owlas wants to merge 2 commits intomainfrom
feat/persist-dbt-cloud-cli-preference

Conversation

@owlas
Copy link
Copy Markdown
Collaborator

@owlas owlas commented Apr 8, 2026

Summary

  • Persist the user's acceptance of the dbt Cloud CLI experimental warning to ~/.config/lightdash/config.yaml instead of only storing it in-memory for the session
  • Uses the same setAnswer/getConfig pattern already used by permissionToStoreWarehouseCredentials and metadataFileGitignoreNoticeShown
  • Users are now only prompted once — subsequent CLI runs skip the warning

Test plan

  • Built the CLI and ran lightdash compile with a fake dbt Cloud CLI binary
  • First run: warning shown, useExperimentalDbtCloudCLI: true written to config file
  • Second run: warning skipped

Persist the user's acceptance of the dbt Cloud CLI experimental warning
to ~/.config/lightdash/config.yaml so they are not prompted on every
CLI invocation. Uses the same setAnswer/getConfig pattern as other
persisted preferences.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

🧪 Test Selection

✅ Tests that will run

Test Description
Preview Environment Deploys a preview environment for testing
CLI Tests Runs CLI integration and dbt version tests

⏭️ Tests skipped (no relevant file changes detected)

Test How to trigger manually
Frontend E2E Tests Add test-frontend to PR description
Backend API Tests Add test-backend to PR description
Timezone Tests Add test-timezone to PR description

Tip: Add test-all to your PR description to run all tests.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Your preview environment pr-21846 has been deployed.

Preview environment endpoints are available at:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Preview Environment

🌐 URL: https://lightdash-preview-pr-21846.lightdash.okteto.dev

📋 Logs: View in GCP Console

🔧 SSH: ./scripts/okteto-ssh.sh 21846

getDbtVersion now imports getConfig/setAnswer, so the test needs to
mock ../../config to avoid hitting the filesystem in CI.
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