Skip to content

fix!: Make path a required config parameter#3872

Merged
kodiakhq[bot] merged 3 commits intomainfrom
make-path-required
Nov 8, 2022
Merged

fix!: Make path a required config parameter#3872
kodiakhq[bot] merged 3 commits intomainfrom
make-path-required

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf commented Nov 8, 2022

This SDK upgrade to the CLI adds the code in cloudquery/plugin-sdk#371, and as such will make path a required config parameter. We consider this a breaking change, so the CLI version will be bumped to 2.0.0.

As context, we are making path required (and not inferred from name) because there has been some confusion around these settings. Previously path could have been inferred from name in some circumstances, but when using multiple configs, this was not always possible, causing confusion.

From now on, path is a required parameter. It will usually take the form of cloudquery/aws, where aws is the source plugin name in this example. For the postgresql destination, it will be cloudquery/postgresql.

  • name should be thought of as the unique identifier of the particular source/destination config. It needs to be unique, as it will be used for overwriting stale entries in overwrite-delete-stale mode, inserted as a column alongside all entries, and ensure there are no race conditions when running multiple configs in parallel.
  • path is normally the unique path to download the plugin from. We have some special conventions around this, documented here. It can also be used during development to point to a locally-running binary or GRPC server.

Related:

@cq-bot cq-bot added the cli label Nov 8, 2022
@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Nov 8, 2022
@kodiakhq kodiakhq bot merged commit b0b4560 into main Nov 8, 2022
@kodiakhq kodiakhq bot deleted the make-path-required branch November 8, 2022 09:29
kodiakhq bot pushed a commit that referenced this pull request Nov 8, 2022
🤖 I have created a release *beep* *boop*
---


## [2.0.0](cli-v1.5.9...cli-v2.0.0) (2022-11-08)


### ⚠ BREAKING CHANGES

* Make path a required config parameter (#3872)

### Fixes

* Make path a required config parameter ([#3872](#3872)) ([b0b4560](b0b4560))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
SCKelemen pushed a commit to SCKelemen/cloudquery that referenced this pull request Nov 15, 2022
This SDK upgrade to the CLI adds the code in cloudquery/plugin-sdk#371, and as such will make `path` a required config parameter. We consider this a breaking change, so the CLI version will be bumped to 2.0.0. 

As context, we are making `path` required (and not inferred from `name`) because there has been some confusion around these settings. Previously `path` could have been inferred from `name` in some circumstances, but when using multiple configs, this was not always possible, causing confusion.

From now on, `path` is a required parameter. It will usually take the form of `cloudquery/aws`, where `aws` is the source plugin name in this example. For the postgresql destination, it will be `cloudquery/postgresql`.

- `name` should be thought of as the unique identifier of the particular source/destination config. It needs to be unique, as it will be used for overwriting stale entries in `overwrite-delete-stale` mode, inserted as a column alongside all entries, and ensure there are no race conditions when running multiple configs in parallel.
- `path` is normally the unique path to download the plugin from. We have some special conventions around this, documented [here](https://www.cloudquery.io/docs/developers/creating-new-plugin#naming-conventions). It can also be used during development to point to a locally-running binary or GRPC server.

Related:
 - cloudquery/plugin-sdk#317
 - cloudquery/plugin-sdk#256
SCKelemen pushed a commit to SCKelemen/cloudquery that referenced this pull request Nov 15, 2022
🤖 I have created a release *beep* *boop*
---


## [2.0.0](cloudquery/cloudquery@cli-v1.5.9...cli-v2.0.0) (2022-11-08)


### ⚠ BREAKING CHANGES

* Make path a required config parameter (cloudquery#3872)

### Fixes

* Make path a required config parameter ([cloudquery#3872](cloudquery#3872)) ([b0b4560](cloudquery@b0b4560))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants