Skip to content

Commit 1662e17

Browse files
svc-apix-BotmaasthalantoliCopilotoarbusi
authored
chore: Update CLOUDP-320243-dev-2.0.0 from master (#3457)
* chore: Creates temporary workflow to create a test tag using Github actions (#3440) * chore: Use rebase instead of merge to update dev branches (#3442) * use rebase instead of merge to update dev branches * Update .github/workflows/update-dev-branches.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * improve doc --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: Updates repository to use supported Terraform versions (#3450) Co-authored-by: maastha <122359335+maastha@users.noreply.github.com> * chore: JSON attributes in auto-generated resources (#3445) * stream_processor_api config * marshal JSON custom type * generate JSON custom type * formatGoFile * generated code * acc test * fix resouce.tmpl imports * revert changes to template * add import for custom types * wait * marshal tests * autogen tests * acc test with update of equivalent pipeline JSON * unmarshal test for custom type list * marshal error test * join acc tests * update generated code * fix marshal tests * fix delete config * same config as curated resource * chore: Use SP10 instead of default SP30 for stream_instance acceptance tests (#3453) * use SP10 instead of default SP30 for stream_instance * fix linter * Revert "fix linter" This reverts commit 46270c0. * chore: Replace fwtypes.JSONStringType with jsontypes.NormalizedType (#3452) * use JSON custom type * fix linter * chore: Updates Atlas Go SDK (#3446) * build(deps): bump go.mongodb.org/atlas-sdk * sdk changes --------- Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com> Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com> * doc: Updates Terraform Compatibility Matrix documentation (#3449) Co-authored-by: maastha <122359335+maastha@users.noreply.github.com> * chore: Remove `links` attributes in auto-generated resources (#3455) * remove links attributes * move comment * chore: Fixes broken link because of ending parenthesis. (#3448) * chore: Fixes broken link because of ending parenthesis. * using link markdown syntax to avoid broken link --------- Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com> * feat: Adds `send_user_provided_resource_tags` attribute for `mongodbatlas_third_party_integration` (#3454) * add send_user_provided_resource_tags * changelog * fmt * docs and example * test * refactor * rename files * new line * chore: Updates CHANGELOG.md for #3454 * chore: Singletons in auto-generated resources (#3458) * initial auditing_api and maintenance_window_api generation * fix unmarshal for empty JSON * improve maintenance_window_api * checkDestroy in manual resource tests * explicit version header * check apiResp is not nil * support FixedRequestBody * auditing except delete * support FixedRequestBody * comment in MakeApiError * comment Unmarshal * use same flow as in SDK * rename FixedRequestBody to StaticRequestBody * codegen tests * revert unneeded test * lowering timeout value to ensure creation fails consistently (#3462) * doc: Fixing inconsistent docs in `federated_settings_org_role_mapping` associated to required attributes (#3460) * fixing inconsistent documentation * remove human-readable term in external_group_id attribute * fix: Avoids 0 itemsPerPage and pageNum when the args are missing in plural data sources (#3459) * chore: Add windsurf ignore * fix: Standardizes API params with WithParams pattern and IntPtr conversion * chore: Adds changelog file * refactor: use ListBackupExportJobsWithParams for export job listing * chore: Updates CHANGELOG.md for #3459 * feat: Adds `users` attribute to `mongodbatlas_project` singular data source (#3439) * WIP * Fixed acceptance test * Added a comment * Added changelog * Update docs/data-sources/project.md * Update .changelog/3439.txt Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com> * PR comments * Fix * Arguments fixed * Fix constant --------- Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com> Co-authored-by: maastha <122359335+maastha@users.noreply.github.com> Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com> * feat: Adds users attribute to mongodbatlas_projects plural data source (#3451) * WIP * Fixed acceptance test * Added a comment * Added changelog * Added users attribute to projects data source * Added changelog and fixed docs * Factored out users schema * Refactored schemas and fixed test and doc * Minor code review suggestions and fixed doc --------- Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com> --------- Co-authored-by: maastha <122359335+maastha@users.noreply.github.com> Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com> Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com> Co-authored-by: Marco Suma <marco.suma@mongodb.com> Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com> Co-authored-by: Espen Albert <EspenAlbert@users.noreply.github.com> Co-authored-by: Cristina Sánchez <c.sanchezprincipal@gmail.com> Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
1 parent c33368a commit 1662e17

File tree

297 files changed

+2201
-961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+2201
-961
lines changed

.changelog/3454.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```release-note:enhancement
2+
resource/mongodbatlas_third_party_integration Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog
3+
```
4+
5+
```release-note:enhancement
6+
data-source/mongodbatlas_third_party_integration Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog
7+
```
8+
9+
```release-note:enhancement
10+
data-source/mongodbatlas_third_party_integrations Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog
11+
```

.changelog/3459.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```release-note:bug
2+
data-source/mongodbatlas_cloud_backup_snapshots: Fix pagination when `items_per_page` or `page_num` are not set
3+
```
4+
5+
```release-note:bug
6+
data-source/mongodbatlas_cloud_backup_snapshot_export_buckets: Fix pagination when `items_per_page` or `page_num` are not set
7+
```
8+
9+
```release-note:bug
10+
data-source/mongodbatlas_cloud_backup_snapshot_restore_jobs: Fix pagination when `items_per_page` or `page_num` are not set
11+
```
12+
13+
```release-note:bug
14+
data-source/mongodbatlas_federated_settings_org_configs: Fix pagination when `items_per_page` or `page_num` are not set
15+
```
16+
17+
```release-note:bug
18+
data-source/mongodbatlas_organizations: Fix pagination when `items_per_page` or `page_num` are not set
19+
```
20+
21+
```release-note:bug
22+
data-source/mongodbatlas_cloud_backup_snapshot_export_jobs: Fix pagination when `items_per_page` or `page_num` are not set
23+
```

.github/workflows/acceptance-tests-runner.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,11 @@ jobs:
280280
- 'internal/provider/*.go'
281281
autogen:
282282
- 'internal/common/autogen/*.go'
283+
- 'internal/serviceapi/auditingapi/*.go'
283284
- 'internal/serviceapi/clusterapi/*.go'
284285
- 'internal/serviceapi/customdbroleapi/*.go'
285286
- 'internal/serviceapi/databaseuserapi/*.go'
287+
- 'internal/serviceapi/maintenancewindowapi/*.go'
286288
- 'internal/serviceapi/projectapi/*.go'
287289
- 'internal/serviceapi/pushbasedlogexportapi/*.go'
288290
- 'internal/serviceapi/resourcepolicyapi/*.go'
@@ -515,9 +517,11 @@ jobs:
515517
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
516518
MONGODB_ATLAS_LAST_VERSION: ${{ needs.get-provider-version.outputs.provider_version }}
517519
ACCTEST_PACKAGES: |
520+
./internal/serviceapi/auditingapi
518521
./internal/serviceapi/clusterapi
519522
./internal/serviceapi/customdbroleapi
520523
./internal/serviceapi/databaseuserapi
524+
./internal/serviceapi/maintenancewindowapi
521525
./internal/serviceapi/projectapi
522526
./internal/serviceapi/pushbasedlogexportapi
523527
./internal/serviceapi/resourcepolicyapi

.github/workflows/create-test-tag.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'test papertrail on tag create workflow - will be reverted'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
7+
jobs:
8+
9+
create-tag:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
16+
with:
17+
ref: 'test-submitter'
18+
- name: Get the latest commit SHA
19+
id: get-sha
20+
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
21+
- name: Create test tag
22+
uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72
23+
with:
24+
tag: 'test-v1.37.0'
25+
commit_sha: ${{ steps.get-sha.outputs.sha }}
26+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
gpg_passphrase: ${{ secrets.PASSPHRASE }}
28+

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
inputs:
1010
terraform_matrix:
1111
description: 'Terraform version matrix (JSON array)'
12-
default: '["1.12.x","1.11.x","1.10.x","1.9.x","1.8.x","1.7.x","1.6.x","1.5.x"]'
12+
default: '["1.12.x","1.11.x","1.10.x","1.9.x","1.8.x","1.7.x","1.6.x"]'
1313
provider_matrix:
1414
description: 'Previous MongoDB Atlas Provider version matrix for migration tests (JSON array)'
1515
default: '[""]' # "" for latest version

.github/workflows/update-dev-branches.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
branches:
77
description: 'Dev branch names to update from master'
88
default: '["CLOUDP-320243-dev-2.0.0"]'
9+
force-auto-resolve:
10+
description: 'Force auto-resolve conflicts by favoring master changes. Some changes in dev branch might be lost.'
11+
required: false
12+
default: false
13+
type: boolean
914
schedule:
1015
- cron: "0 5 * * 3" # workflow runs every Wednesday at 5 AM UTC
1116

@@ -45,16 +50,24 @@ jobs:
4550
git fetch origin ${{ matrix.branch }}
4651
git checkout -B ${{ matrix.branch }} origin/${{ matrix.branch }}
4752
48-
if git merge origin/master --no-edit; then
49-
echo "OK: Merge completed successfully with no conflicts."
53+
if git rebase origin/master; then
54+
echo "OK: Rebase completed successfully with no conflicts."
5055
else
51-
git merge --abort
52-
if git merge origin/master --strategy-option=theirs --no-edit; then
53-
echo "ERROR: Merge conflicts detected that can be auto-resolved by favoring master changes."
56+
# Check if conflicts can be auto-resolved
57+
git rebase --abort
58+
if git rebase origin/master -X theirs; then
59+
if [ "${{ inputs.force-auto-resolve }}" = "true" ]; then
60+
echo "WARNING: Rebase conflicts detected but auto-resolved by favoring master changes because force-auto-resolve is true."
61+
else
62+
echo "ERROR: Rebase conflicts detected that can be auto-resolved by favoring master changes."
63+
echo "Manual review required to ensure no important changes are lost. Set force-auto-resolve to true to auto-resolve these conflicts."
64+
git rebase --abort
65+
exit 1
66+
fi
5467
else
55-
echo "ERROR: Merge conflicts detected that need manual intervention."
68+
echo "ERROR: Rebase conflicts detected that need manual intervention, they can't be auto-resolved."
69+
exit 1
5670
fi
57-
exit 1
5871
fi
5972
6073
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ bin
33
.DS_Store
44
.idea
55
.vscode
6+
.windsurf
67
*.env
78
*.bak
89
*.log

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
## (Unreleased)
22

3+
ENHANCEMENTS:
4+
5+
* data-source/mongodbatlas_third_party_integration Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog ([#3454](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3454))
6+
* data-source/mongodbatlas_third_party_integrations Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog ([#3454](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3454))
7+
* resource/mongodbatlas_third_party_integration Adds `send_user_provided_resource_tags` attribute to support sending $querystats to DataDog ([#3454](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3454))
8+
9+
BUG FIXES:
10+
11+
* data-source/mongodbatlas_cloud_backup_snapshot_export_buckets: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
12+
* data-source/mongodbatlas_cloud_backup_snapshot_export_jobs: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
13+
* data-source/mongodbatlas_cloud_backup_snapshot_restore_jobs: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
14+
* data-source/mongodbatlas_cloud_backup_snapshots: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
15+
* data-source/mongodbatlas_federated_settings_org_configs: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
16+
* data-source/mongodbatlas_organizations: Fix pagination when `items_per_page` or `page_num` are not set ([#3459](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/3459))
17+
318
## 1.37.0 (June 26, 2025)
419

520
ENHANCEMENTS:

build/ci/papertrail.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ functions:
121121
params:
122122
key_id: ${papertrail_key_id}
123123
secret_key: ${papertrail_secret_key}
124-
product: "terraform-provider-mongodbatlas"
124+
product: "tmp2-terraform-provider-mongodbatlas"
125125
version: ${release_version}
126+
submitter: "svc-apix-Bot"
126127
filenames:
127128
- "src/github.com/mongodb/terraform-provider-mongodbatlas/release_artifacts/*.zip"
128129

docs/data-sources/federated_settings_org_role_mapping.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ data "mongodbatlas_federated_settings_org_role_mapping" "role_mapping" {
3838
## Argument Reference
3939

4040
* `federation_settings_id` - (Required) Unique 24-hexadecimal digit string that identifies the federated authentication configuration.
41-
* `org_id` - Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
41+
* `org_id` - (Required) Unique 24-hexadecimal digit string that identifies the organization that contains your projects.
42+
* `role_mapping_id` - (Required) Unique 24-hexadecimal digit string that identifies this role mapping.
4243

4344
## Attributes Reference
4445

4546
In addition to all arguments above, the following attributes are exported:
4647
### FederatedSettingsOrgRoleMappings
4748

48-
* `external_group_name` - Unique human-readable label that identifies the identity provider group to which this role mapping applies.
49+
* `external_group_name` - Unique label that identifies the identity provider group to which this role mapping applies.
4950
* `id` - Unique 24-hexadecimal digit string that identifies this role mapping.
5051
* `role_assignments` - Atlas roles and the unique identifiers of the groups and organizations associated with each role.
5152
* `group_id` - Unique identifier of the project to which you want the role mapping to apply.

0 commit comments

Comments
 (0)