-
Notifications
You must be signed in to change notification settings - Fork 190
INTMDB-648: Errors when creating or importing timeseries online archive #1114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// nothing to do, let's go | ||
if !paused && !criteria { | ||
if !paused && !criteria && collectionType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be && !collectionType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor comments below and double check on potentially missing test harness / data source for plural. otherwise LGTM. feel free to merge after below edits
@@ -83,6 +83,10 @@ func schemaOnlineArchive() map[string]*schema.Schema { | |||
Type: schema.TypeString, | |||
Computed: true, | |||
}, | |||
"collection_type": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we missing similar updates to data source mongodbatlas online archives? https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/data-sources/online_archives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plural and singular all in same file will refactor in upcoming release
@@ -83,6 +83,10 @@ func schemaOnlineArchive() map[string]*schema.Schema { | |||
Type: schema.TypeString, | |||
Computed: true, | |||
}, | |||
"collection_type": { | |||
Type: schema.TypeString, | |||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also looks like we are missing _test.go file, i.e. data_source_mongodbatlas_online_archive_test.go. if true can you add it as part of this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same resource has data source tests combined will fix in later release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Zuhair Ahmed <[email protected]>
Co-authored-by: Zuhair Ahmed <[email protected]>
Co-authored-by: Zuhair Ahmed <[email protected]>
* INTMDB-359: GCP Terraform Provider Version Upgrade Refactoring (#1098) * Chore(deps): Bump github.com/aws/aws-sdk-go from 1.40.56 to 1.44.216 (#1094) Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.56 to 1.44.216. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](aws/aws-sdk-go@v1.40.56...v1.44.216) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump go.mongodb.org/atlas from 0.21.0 to 0.23.1 (#1092) Bumps [go.mongodb.org/atlas](https://github.com/mongodb/go-client-mongodb-atlas) from 0.21.0 to 0.23.1. - [Release notes](https://github.com/mongodb/go-client-mongodb-atlas/releases) - [Changelog](https://github.com/mongodb/go-client-mongodb-atlas/blob/master/CHANGELOG.md) - [Commits](mongodb/go-client-mongodb-atlas@v0.21.0...v0.23.1) --- updated-dependencies: - dependency-name: go.mongodb.org/atlas dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump golang.org/x/net from 0.1.0 to 0.7.0 (#1071) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.1.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove AWS Google terraform provider tests deps --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * INTMDB-581: plan fails if API key created by mongodbatlas_api_key resource is deleted outside of Terraform (#1097) * Add additional delete of state if read does not find API key * Chore(deps): Bump github.com/aws/aws-sdk-go from 1.40.56 to 1.44.216 (#1094) Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.56 to 1.44.216. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](aws/aws-sdk-go@v1.40.56...v1.44.216) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump go.mongodb.org/atlas from 0.21.0 to 0.23.1 (#1092) Bumps [go.mongodb.org/atlas](https://github.com/mongodb/go-client-mongodb-atlas) from 0.21.0 to 0.23.1. - [Release notes](https://github.com/mongodb/go-client-mongodb-atlas/releases) - [Changelog](https://github.com/mongodb/go-client-mongodb-atlas/blob/master/CHANGELOG.md) - [Commits](mongodb/go-client-mongodb-atlas@v0.21.0...v0.23.1) --- updated-dependencies: - dependency-name: go.mongodb.org/atlas dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump golang.org/x/net from 0.1.0 to 0.7.0 (#1071) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.1.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add additional warning if key deleted --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Make comment parameter optional (#1103) * Change wait states to cover IN_PROGRESS MIGRATING (#1104) * INTMDB-617: Can't unset auto_scaling (#1112) * Change wait states to cover IN_PROGRESS MIGRATING * Add clearing of MinInstanceSize MaxInstanceSize * INTMDB-638: DataDog ThirdPartyIntegration Documentation update (#1105) * Updated third party integration documentation for datadog regions * Consolidated third-party-integration examples and added one for datadog * Updated documentation link to go to latest api docs * Quote acceptable regions on third-party-integration for datadog Co-authored-by: Zuhair Ahmed <[email protected]> * Update examples/third-party-integration/datadog/README.md Co-authored-by: Zuhair Ahmed <[email protected]> --------- Co-authored-by: Zuhair Ahmed <[email protected]> * INTMDB-648: Errors when creating or importing timeseries online archive (#1114) * INTMDB-648: Add support for collection_type * Update resource_mongodbatlas_online_archive.go * Update website/docs/d/online_archive.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> * Update website/docs/d/online_archives.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> * Update website/docs/r/online_archive.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> --------- Co-authored-by: Zuhair Ahmed <[email protected]> * Update go.sum * update mod.go --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dosty Everts <[email protected]> Co-authored-by: Zuhair Ahmed <[email protected]>
Description
Errors when creating or importing timeseries online archive. Add support for collection_type
Link to any related issue(s):
#1081
Type of change:
Required Checklist:
Further comments