Skip to content

Conversation

@oarbusi
Copy link
Collaborator

@oarbusi oarbusi commented Dec 12, 2025

Description

  • Autogenerated the implementation of the mongodbatlas_log_integration data source and added it to the provider.
  • Changed the make enable-autogen so that it also adds singular data sources to the provider.

Link to any related issue(s): CLOUDP-361983

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@oarbusi oarbusi marked this pull request as ready for review December 12, 2025 13:20
@oarbusi oarbusi requested review from a team as code owners December 12, 2025 13:20
Copilot AI review requested due to automatic review settings December 12, 2025 13:20
@github-actions
Copy link
Contributor

APIx bot: a message has been sent to Docs Slack channel

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new data source mongodbatlas_log_integration to enable read-only access to log integration configurations. The implementation uses autogenerated code based on the existing resource schema, and enhances the Makefile to automatically register data sources in the provider.

  • Adds mongodbatlas_log_integration data source with autogenerated schema and implementation
  • Updates Makefile to automatically add singular data sources to the provider during make enable-autogen
  • Adds acceptance tests for the new data source

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/codegen/models/log_integration.yaml Adds data source configuration defining schema attributes and API operations for log integration reads
tools/codegen/models/alert_configuration_api.yaml Updates documentation descriptions to remove specific API reference links
tools/codegen/config.yml Adds data source configuration with API endpoint paths and schema aliases
internal/serviceapi/logintegration/resource_test.go Adds data source acceptance tests and helper functions
internal/serviceapi/logintegration/data_source_schema.go Auto-generated schema definition for the log integration data source
internal/serviceapi/logintegration/data_source.go Auto-generated data source implementation with read operation
internal/serviceapi/alertconfigurationapi/data_source_schema.go Updates documentation to remove API reference links
internal/provider/provider.go Registers the new data source in the provider
Makefile Adds add-datasource-if-exists target to automatically register data sources
.changelog/3978.txt Adds changelog entry for the new data source

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 25 to 28
"id": dsschema.StringAttribute{
Required: true,
MarkdownDescription: "Unique identifier of the log integration configuration.",
},
Copy link
Member

Choose a reason for hiding this comment

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

should we already add the alias we agreed in the technical design?
id defined as integration_id in both the resource and data source

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point, done in aa20373

Copy link
Contributor

@QuiqueSanMongo QuiqueSanMongo left a comment

Choose a reason for hiding this comment

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

LGTM; just a small comment

present_in_any_response: false
request_only_required_on_create: false
- string: {}
description: S3 directory path prefix where the log files will be stored. MongoDB Cloud will add further sub-directories based on the log type.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: S3 directory path prefix where the log files will be stored. MongoDB Cloud will add further sub-directories based on the log type.
description: S3 directory path prefix where the log files will be stored. MongoDB Cloud adds further sub-directories based on the log type.

@oarbusi oarbusi merged commit dd49c69 into CLOUDP-346618-plbev2-dev Dec 15, 2025
50 checks passed
@oarbusi oarbusi deleted the CLOUDP-361983 branch December 15, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants