This pull request includes several changes to improve the handling of powerplatform_rest resources, updates to the bug report template, and enhancements to the documentation and examples for powerplatform_data_record. The most important changes are listed below.
Bug Report Template Updates:
Removed the "Steps to reproduce the behavior" section to streamline the bug report process. (.github/ISSUE_TEMPLATE/bug_report.md)
Moved the "Contribution" section to improve the layout and readability of the bug report template. (.github/ISSUE_TEMPLATE/bug_report.md)
PowerPlatform Resource Enhancements:
Added a new module for business_unit in the powerplatform_data_record documentation, providing a clearer example for users. (docs/resources/data_record.md)
Created a new Terraform configuration for business_unit in the examples directory to demonstrate how to set up and manage this resource. (examples/resources/powerplatform_data_record/res_business_unit/main.tf)
Updated the resource.tf example to include the business_unit module, enhancing the example with a practical use case. (examples/resources/powerplatform_data_record/resource.tf)
Bug Fixes:
Fixed an issue where powerplatform_rest resources only had a destroy operation, ensuring proper resource management. (.changes/unreleased/fixed-20241001-211351.yaml)
Codebase Improvements:
Refined error handling in the SendOperation function by changing the type of the unexpected error variable. (internal/services/rest/api_rest.go)
Added a fallback to set the output to a null value in the Create function if no body is returned, improving robustness. (internal/services/rest/resource_rest.go)This pull request includes changes to the bug_report.md template, additions to the powerplatform_data_record module, and minor adjustments to error handling in the REST API client. The most important changes include the removal of the "Steps to reproduce" section from the bug report template, the addition of a new Terraform module for managing business units, and refinements to error handling in the REST API client.
docs/resources/data_record.md: Added a new module for managing business units, including variables for environment_id, name, costcenter, and parent_business_unit_id.
This pull request includes several changes to improve the handling of
powerplatform_rest
resources, updates to the bug report template, and enhancements to the documentation and examples forpowerplatform_data_record
. The most important changes are listed below.Bug Report Template Updates:
.github/ISSUE_TEMPLATE/bug_report.md
).github/ISSUE_TEMPLATE/bug_report.md
)PowerPlatform Resource Enhancements:
business_unit
in thepowerplatform_data_record
documentation, providing a clearer example for users. (docs/resources/data_record.md
)business_unit
in the examples directory to demonstrate how to set up and manage this resource. (examples/resources/powerplatform_data_record/res_business_unit/main.tf
)resource.tf
example to include thebusiness_unit
module, enhancing the example with a practical use case. (examples/resources/powerplatform_data_record/resource.tf
)Bug Fixes:
powerplatform_rest
resources only had a destroy operation, ensuring proper resource management. (.changes/unreleased/fixed-20241001-211351.yaml
)Codebase Improvements:
SendOperation
function by changing the type of theunexpected
error variable. (internal/services/rest/api_rest.go
)Create
function if no body is returned, improving robustness. (internal/services/rest/resource_rest.go
)This pull request includes changes to thebug_report.md
template, additions to thepowerplatform_data_record
module, and minor adjustments to error handling in the REST API client. The most important changes include the removal of the "Steps to reproduce" section from the bug report template, the addition of a new Terraform module for managing business units, and refinements to error handling in the REST API client.Changes to Bug Report Template:
.github/ISSUE_TEMPLATE/bug_report.md
: Removed the "Steps to reproduce" section to streamline the bug report process.Additions to Terraform Module:
docs/resources/data_record.md
: Added a new module for managing business units, including variables forenvironment_id
,name
,costcenter
, andparent_business_unit_id
.examples/resources/powerplatform_data_record/res_business_unit/main.tf
: Introduced a new Terraform module for creating and managing business units with necessary variables and resources.Error Handling Adjustments:
internal/services/rest/api_rest.go
: Refined error handling by changing the type ofunexpected
error from a pointer to a value.internal/services/rest/resource_rest.go
: Added a fallback to setstate.Output
tor.NullOutputValue()
in case of an error during resource creation.