-
Notifications
You must be signed in to change notification settings - Fork 211
feat: Adds mongodbatlas_log_integration data source
#3978
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
|
APIx bot: a message has been sent to Docs Slack channel |
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.
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_integrationdata 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.
| "id": dsschema.StringAttribute{ | ||
| Required: true, | ||
| MarkdownDescription: "Unique identifier of the log integration configuration.", | ||
| }, |
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 we already add the alias we agreed in the technical design?
id defined as integration_id in both the resource and data source
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 point, done in aa20373
QuiqueSanMongo
left a comment
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; 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. |
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.
| 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. |
Description
mongodbatlas_log_integrationdata source and added it to the provider.make enable-autogenso that it also adds singular data sources to the provider.Link to any related issue(s): CLOUDP-361983
Type of change:
Required Checklist:
Further comments