This pull request includes several changes to the powerplatform_environment resource and its associated documentation and tests. The primary focus is on adding and updating attributes to improve clarity and functionality.
Attribute Additions and Updates:
Added unique_name Attribute:
Added unique_name to powerplatform_environments and powerplatform_environment resources to uniquely identify Dataverse environments. (.changes/unreleased/added-20240930-125638.yaml)
Updated docs/data-sources/environments.md and docs/resources/environment.md to include unique_name in the schema and examples. [1][2]
Modified internal/services/environment/datasource_environments.go to include unique_name in the schema. [1][2]
Updated tests to validate the presence of unique_name. (internal/services/environment/datasource_environments_test.go) [1][2]
Documentation Improvements:
Removed "Unique" Prefix from Attribute Descriptions:
Simplified attribute descriptions by removing the "Unique" prefix from identifiers like environment_group_id, id, currency_code, language_code, organization_id, and security_group_id. (docs/data-sources/environments.md) [1][2]
Updated docs/resources/environment.md to reflect these changes. [1][2]
Codebase Simplification:
Removed Redundant Descriptions:
Removed redundant Description fields from schema definitions in internal/services/environment/datasource_environments.go to rely solely on MarkdownDescription. [1][2]
Test Enhancements:
Updated Tests to Reflect Schema Changes:
Added and updated tests to ensure the new unique_name attribute is correctly handled and validated. (internal/services/environment/datasource_environments_test.go) [1][2]
Internal Model Adjustments:
Updated Internal Models:
Updated LinkedEnvironmentMetadataDto and DataverseSourceModel to include unique_name. (internal/services/environment/dto.go, internal/services/environment/models.go) [1][2]
Adjusted conversion functions to handle the new unique_name attribute. (internal/services/environment/models.go) [1][2][3]
This pull request includes several changes to the
powerplatform_environment
resource and its associated documentation and tests. The primary focus is on adding and updating attributes to improve clarity and functionality.Attribute Additions and Updates:
unique_name
Attribute:unique_name
topowerplatform_environments
andpowerplatform_environment
resources to uniquely identify Dataverse environments. (.changes/unreleased/added-20240930-125638.yaml
)docs/data-sources/environments.md
anddocs/resources/environment.md
to includeunique_name
in the schema and examples. [1] [2]internal/services/environment/datasource_environments.go
to includeunique_name
in the schema. [1] [2]unique_name
. (internal/services/environment/datasource_environments_test.go
) [1] [2]Documentation Improvements:
environment_group_id
,id
,currency_code
,language_code
,organization_id
, andsecurity_group_id
. (docs/data-sources/environments.md
) [1] [2]docs/resources/environment.md
to reflect these changes. [1] [2]Codebase Simplification:
Description
fields from schema definitions ininternal/services/environment/datasource_environments.go
to rely solely onMarkdownDescription
. [1] [2]Test Enhancements:
unique_name
attribute is correctly handled and validated. (internal/services/environment/datasource_environments_test.go
) [1] [2]Internal Model Adjustments:
LinkedEnvironmentMetadataDto
andDataverseSourceModel
to includeunique_name
. (internal/services/environment/dto.go
,internal/services/environment/models.go
) [1] [2]unique_name
attribute. (internal/services/environment/models.go
) [1] [2] [3]