Skip to content

fix: Nil connection#442

Merged
disq merged 1 commit intocloudquery:mainfrom
disq:fix/nil-connection
Jan 25, 2022
Merged

fix: Nil connection#442
disq merged 1 commit intocloudquery:mainfrom
disq:fix/nil-connection

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jan 25, 2022

If connection info is not specified we allow the client to get created (missing DSN just logs a line)
But this causes problems the first time we want to access the DB. For fetch this is always in buildProviderMigrator, for drift and policy functions it's just before the respective module executor calls.

If connection info is not specified we allow the client to get created (missing DSN just logs a line)
But this causes problems the first time we want to access the DB. For fetch this is always in buildProviderMigrator, for drift and policy functions it's just before the respective module executor calls.
@disq disq requested a review from roneli January 25, 2022 17:20
@github-actions github-actions bot added the fix label Jan 25, 2022
Copy link
Copy Markdown
Contributor

@roneli roneli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@disq disq merged commit d1fbaf1 into cloudquery:main Jan 25, 2022
@disq disq deleted the fix/nil-connection branch January 25, 2022 17:26
TinLe pushed a commit to TinLe/cloudquery that referenced this pull request Feb 2, 2022
* upstream/main: (25 commits)
  fix: Relax tfstate version check (cloudquery#460)
  fix: Use provider source (cloudquery#458)
  feat: Configurable data folder (cloudquery#456)
  chore: remove duplicate lint workflow (cloudquery#454)
  chore: Synced local '.github/workflows/' with remote 'workflows/common' (cloudquery#453)
  docs: Small fixes (cloudquery#452)
  chore: Remove extra linter workflow (cloudquery#451)
  fix: Getter implementation (cloudquery#450)
  fix: DB version validation shouldn't block on vanilla PG (cloudquery#447)
  fix: Validate provider semantic version (cloudquery#445)
  feat: Remove filtering from executor (cloudquery#429)
  fix: Panic when canceled (cloudquery#443)
  fix: Nil connection (cloudquery#442)
  feat: Update drift for AWS IOT resources (cloudquery#434)
  fix: Typo in error message (cloudquery#441)
  feat: Report on multiple aliased providers (cloudquery#437)
  fix: Refer to cloudquery as cloudquery (cloudquery#440)
  fix: Panic On Policy Describe (cloudquery#438)
  feat: Update SDK v0.7.0 (cloudquery#435)
  fix: Don't connect on cloudquery init (cloudquery#436)
  ...
@cq-bot cq-bot mentioned this pull request Aug 9, 2022
erezrokah pushed a commit that referenced this pull request Aug 14, 2022
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
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