Skip to content

Conversation

@catalina-gav
Copy link
Contributor

πŸ“₯ Pull Request

❓ What are you trying to address

close #704
Manage Update From Git UpdateOptions through new allow_override_items attribute: https://learn.microsoft.com/en-us/rest/api/fabric/core/git/update-from-git?tabs=HTTP#updateoptions

@github-actions
Copy link

github-actions bot commented Oct 29, 2025

Changelog Preview

v1.7.1-dev - December 18, 2025

πŸ’« Changed

  • #704 Enhanced fabric_workspace_git resource by adding new allow_override_items attribute

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 support for the allow_override_items parameter to the workspace Git resource, which controls user consent to override incoming items during the Git update process. When not specified or set to false, the update operation will not start if incoming items are present.

  • Added allow_override_items as an optional boolean attribute with ForceNew semantics
  • Integrated the parameter into the UpdateFromGit API call flow
  • Updated documentation to reflect the new parameter

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
internal/services/workspacegit/schema.go Adds allow_override_items boolean attribute with RequiresReplace plan modifier
internal/services/workspacegit/models.go Adds field to resource model and passes it to UpdateFromGit API options
internal/services/workspacegit/resource_workspace_git.go Passes the new field value to the UpdateFromGit request
docs/resources/workspace_git.md Documents the new optional parameter with ForceNew behavior

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Dec 18, 2025

Code Coverage

Package Line Rate Complexity Health
github.com/microsoft/terraform-provider-fabric/internal/auth 84% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/framework/customtypes 66% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/framework/planmodifiers 53% 0 βž–
github.com/microsoft/terraform-provider-fabric/internal/framework/typeutils 50% 0 βž–
github.com/microsoft/terraform-provider-fabric/internal/framework/validators 69% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/functions 75% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/fabricitem 76% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/tftypeinfo 75% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/transforms 77% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/utils 85% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider/client 91% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider/config 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider 80% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider/utils 63% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/activator 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/apacheairflowjob 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/capacity 84% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/connection 72% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/connectionra 71% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/copyjob 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/dashboard 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/dataflow 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/deploymentpipeline 68% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/deploymentpipelinera 70% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/digitaltwinbuilder 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/domain 77% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/domainra 62% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/domainwa 71% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/environment 86% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/eventhouse 93% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/eventstream 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/eventstreamsourceconnection 83% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/folder 75% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/gateway 79% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/gatewayra 55% 0 βž–
github.com/microsoft/terraform-provider-fabric/internal/services/graphqlapi 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/itemjobscheduler 72% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/kqldashboard 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/kqldatabase 87% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/kqlqueryset 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/lakehouse 86% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/lakehousetable 80% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/mirroreddatabase 84% 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/mounteddatafactory 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/shortcut 78% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sparkcustompool 70% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sparkenvsettings 79% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sparkjobdefinition 89% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sparkwssettings 83% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sqldatabase 90% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sqlendpoint 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/variablelibrary 90% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/warehouse 91% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/warehousesnapshot 90% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/workspace 79% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/workspacegit 70% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/workspacempe 77% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/workspacera 76% 0 βœ”
Summary 76% (18901 / 24811) 0 βœ”

Minimum allowed line rate is 40%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RS] Enhance Workspace Git item resource by adding new attribute

3 participants