Closed DariuszPorowski closed 1 month ago
fabric_workspace
data-source had invalid schema for the workspace identity.
The schema has been changed from enabled
(bool) to type
(string).Package | Line Rate | Complexity | Health |
---|---|---|---|
github.com/microsoft/terraform-provider-fabric/internal/auth | 74% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/framework/customtypes | 75% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/framework/planmodifiers | 62% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/framework/typeutils | 63% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/functions | 72% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/pkg/fabricitem | 80% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/pkg/transforms | 62% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/pkg/utils | 65% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/provider | 86% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/provider/config | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/provider/utils | 70% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/capacity | 87% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/dashboard | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/datamart | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/datapipeline | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/domain | 41% | 0 | ➖ |
github.com/microsoft/terraform-provider-fabric/internal/services/environment | 86% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/eventhouse | 84% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/eventstream | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/kqldatabase | 78% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/kqlqueryset | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/lakehouse | 82% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/mirroredwarehouse | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/mlexperiment | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/mlmodel | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/notebook | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/paginatedreport | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/report | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/semanticmodel | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/spark | 74% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/sparkjobdefinition | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/sqlendpoint | 100% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/warehouse | 84% | 0 | ✔ |
github.com/microsoft/terraform-provider-fabric/internal/services/workspace | 78% | 0 | ✔ |
Summary | 74% (3585 / 4867) | 0 | ✔ |
Minimum allowed line rate is 40%
📥 Pull Request
close #15
❓ What are you trying to address
This pull request addresses a schema issue in the
fabric_workspace
data-source and includes related documentation and code updates. The most important changes include fixing the schema, updating the documentation, and modifying the relevant code to reflect the schema change.✨ Description of new changes
Documentation Update:
docs/data-sources/workspace.md
: Updated theenabled
attribute totype
in the workspace identity documentation.Bug Fix:
internal/services/workspace/data_workspace.go
: Modified the schema attribute fromenabled
(bool) totype
(string) in theSchema
function.Bug Fix:
internal/testhelp/wellknown.go
: Fixed a bug wherevalues.Group.ID
was incorrectly set tosp.Id
instead ofgroup.Id
.