Skip to content

Commit 0544780

Browse files
authored
chore: Removes 1.20 deprecations (#2617)
* chore: Removes `err_msg` from cloud_backup_snapshot_export_job * chore: add changelog entry * doc: Add attribute removal to upgrade-guide * chore: Removes `cluster_id` from `mongodbatlas_federated_database_instance` * chore: add attribute removal to migration guide and changelog entry * chore: fix changelog entry
1 parent 7c66490 commit 0544780

13 files changed

+27
-43
lines changed

.changelog/2617.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```release-note:breaking-change
2+
resource/mongodbatlas_cloud_backup_snapshot_export_job: Removes `err_msg` attribute
3+
```
4+
5+
```release-note:breaking-change
6+
data-source/mongodbatlas_cloud_backup_snapshot_export_job: Removes `err_msg` attribute
7+
```
8+
9+
```release-note:breaking-change
10+
data-source/mongodbatlas_cloud_backup_snapshot_export_jobs: Removes `err_msg` attribute
11+
```
12+
13+
```release-note:breaking-change
14+
resource/mongodbatlas_federated_database_instance: Removes `storage_stores.#.cluster_id` attribute
15+
```
16+
17+
```release-note:breaking-change
18+
data-source/mongodbatlas_federated_database_instance: Removes `storage_stores.#.cluster_id` attribute
19+
```
20+
21+
```release-note:breaking-change
22+
data-source/mongodbatlas_federated_database_instances: Removes `storage_stores.#.cluster_id` attribute
23+
```

docs/data-sources/cloud_backup_snapshot_export_job.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ In addition to all arguments above, the following attributes are exported:
4949
* `custom_data` - Custom data to include in the metadata file named `.complete` that Atlas uploads to the bucket when the export job finishes. Custom data can be specified as key and value pairs.
5050
* `components` - _Returned for sharded clusters only._ Export job details for each replica set in the sharded cluster.
5151
* `created_at` - Timestamp in ISO 8601 date and time format in UTC when the export job was created.
52-
* `err_msg` - Error message, only if the export job failed. **Note:** This attribute is deprecated as it is not being used.
5352
* `export_status` - _Returned for replica set only._ Status of the export job.
5453
* `finished_at` - Timestamp in ISO 8601 date and time format in UTC when the export job completes.
5554
* `export_job_id` - Unique identifier of the export job.

docs/data-sources/cloud_backup_snapshot_export_jobs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ In addition to all arguments above, the following attributes are exported:
5858
* `custom_data` - Custom data to include in the metadata file named `.complete` that Atlas uploads to the bucket when the export job finishes. Custom data can be specified as key and value pairs.
5959
* `components` - _Returned for sharded clusters only._ Export job details for each replica set in the sharded cluster.
6060
* `created_at` - Timestamp in ISO 8601 date and time format in UTC when the export job was created.
61-
* `err_msg` - Error message, only if the export job failed. **Note:** This attribute is deprecated as it is not being used.
6261
* `export_status` - _Returned for replica set only._ Status of the export job.
6362
* `finished_at` - Timestamp in ISO 8601 date and time format in UTC when the export job completes.
6463
* `export_job_id` - Unique identifier of the export job.

docs/data-sources/federated_database_instance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ In addition to all arguments above, the following attributes are exported:
7373
* `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
7474
* `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
7575
* `storage_stores.#.cluster_name` - Human-readable label of the MongoDB Cloud cluster on which the store is based.
76-
* `storage_stores.#.cluster_id` - ID of the Cluster the Online Archive belongs to.
7776
* `storage_stores.#.allow_insecure` - Flag that validates the scheme in the specified URLs.
7877
* `storage_stores.#.public` - Flag that indicates whether the bucket is public.
7978
* `storage_stores.#.default_format` - Default format that Data Lake assumes if it encounters a file without an extension while searching the storeName.

docs/data-sources/federated_database_instances.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ In addition to all arguments above, the following attributes are exported:
6363
* `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
6464
* `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
6565
* `storage_stores.#.cluster_name` - Human-readable label of the MongoDB Cloud cluster on which the store is based.
66-
* `storage_stores.#.cluster_id` - ID of the Cluster the Online Archive belongs to.
6766
* `storage_stores.#.allow_insecure` - Flag that validates the scheme in the specified URLs.
6867
* `storage_stores.#.public` - Flag that indicates whether the bucket is public.
6968
* `storage_stores.#.default_format` - Default format that Data Lake assumes if it encounters a file without an extension while searching the storeName.

docs/guides/1.20.0-upgrade-guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ The Terraform MongoDB Atlas Provider version 1.20.0 has a number of new and exci
1919
- data-source/mongodbatlas_data_lake_pipeline_run
2020
- data-source/mongodbatlas_data_lake_pipeline_runs
2121

22+
- Attribute `err_msg` removed from `mongodbatlas_cloud_backup_snapshot_export_job` resource and data sources.
23+
- Attribute `storage_stores.#.cluster_id` removed from `mongodbatlas_federated_database_instance` resource and data sources.
24+
2225
**Breaking Changes:**
26+
2327
- `mongodbatlas_alert_configuration` resource attribute `notification.#.integration_id` may have a computed value due to recent updates in the Atlas API [Alert Configuration](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Alert-Configurations/operation/getAlertConfiguration). Due to this, MongoDB Atlas Provider versions **1.16.0 to 1.19.0** may experience non-empty plans if you are using this resource with an integration set for the notifications without an explicitly set `integration_id`. For more details, see [#2603](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/2603).
2428

2529
These users should either:

docs/resources/cloud_backup_snapshot_export_job.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ In addition to all arguments above, the following attributes are exported:
101101

102102
* `components` - _Returned for sharded clusters only._ Export job details for each replica set in the sharded cluster.
103103
* `created_at` - Timestamp in ISO 8601 date and time format in UTC when the export job was created.
104-
* `err_msg` - Error message, only if the export job failed. **Note:** This attribute is deprecated as it is not being used.
105104
* `export_status` - _Returned for replica set only._ Status of the export job.
106105
* `finished_at` - Timestamp in ISO 8601 date and time format in UTC when the export job completes.
107106
* `export_job_id` - Unique identifier of the export job.

docs/resources/federated_database_instance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ resource "mongodbatlas_federated_database_instance" "test" {
139139
* `storage_stores.#.delimiter` - The delimiter that separates `storage_databases.#.collections.#.data_sources.#.path` segments in the data store.
140140
* `storage_stores.#.include_tags` - Determines whether or not to use S3 tags on the files in the given path as additional partition attributes.
141141
* `storage_stores.#.cluster_name` - Human-readable label of the MongoDB Cloud cluster on which the store is based.
142-
* `storage_stores.#.cluster_id` - ID of the Cluster the Online Archive belongs to.
143142
* `storage_stores.#.allow_insecure` - Flag that validates the scheme in the specified URLs.
144143
* `storage_stores.#.public` - Flag that indicates whether the bucket is public.
145144
* `storage_stores.#.default_format` - Default format that Data Lake assumes if it encounters a file without an extension while searching the storeName.

internal/service/cloudbackupsnapshotexportjob/data_source_cloud_backup_snapshot_export_job.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ package cloudbackupsnapshotexportjob
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
87
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
9-
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/constant"
108
)
119

1210
func DataSource() *schema.Resource {
@@ -68,11 +66,6 @@ func DataSource() *schema.Resource {
6866
Type: schema.TypeString,
6967
Computed: true,
7068
},
71-
"err_msg": {
72-
Type: schema.TypeString,
73-
Computed: true,
74-
Deprecated: fmt.Sprintf(constant.DeprecationParamByVersion, "1.20.0"),
75-
},
7669
"export_bucket_id": {
7770
Type: schema.TypeString,
7871
Computed: true,

internal/service/cloudbackupsnapshotexportjob/data_source_cloud_backup_snapshot_export_jobs.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ package cloudbackupsnapshotexportjob
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
87
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/id"
98
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
10-
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/constant"
119
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
1210
"github.com/mongodb/terraform-provider-mongodbatlas/internal/config"
1311
"go.mongodb.org/atlas-sdk/v20240805004/admin"
@@ -81,11 +79,6 @@ func PluralDataSource() *schema.Resource {
8179
Type: schema.TypeString,
8280
Computed: true,
8381
},
84-
"err_msg": {
85-
Type: schema.TypeString,
86-
Computed: true,
87-
Deprecated: fmt.Sprintf(constant.DeprecationParamByVersion, "1.20.0"),
88-
},
8982
"export_bucket_id": {
9083
Type: schema.TypeString,
9184
Computed: true,
@@ -163,7 +156,6 @@ func flattenCloudBackupSnapshotExportJobs(jobs []admin.DiskBackupExportJob) []ma
163156
"components": flattenExportJobsComponents(job.GetComponents()),
164157
"custom_data": flattenExportJobsCustomData(job.GetCustomData()),
165158
"export_bucket_id": job.GetExportBucketId(),
166-
"err_msg": "",
167159
"export_status_exported_collections": job.ExportStatus.GetExportedCollections(),
168160
"export_status_total_collections": job.ExportStatus.GetTotalCollections(),
169161
"finished_at": conversion.TimePtrToStringPtr(job.FinishedAt),

0 commit comments

Comments
 (0)