Skip to content

Commit 77a5880

Browse files
authored
Merge pull request #374 from dbt-labs/fix/362-require-multi-apply
Do not update the connection linked to the project when updating repos
2 parents a8154ea + 5168427 commit 77a5880

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkg/sdkv2/resources/project_repository.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func resourceProjectRepositoryCreate(
5959
return diag.FromErr(err)
6060
}
6161

62+
// Issue #362
63+
// we don't want to update the connection ID when we set a project otherwise it will update all envs
64+
project.ConnectionID = nil
65+
6266
project.RepositoryID = &repositoryID
6367

6468
_, err = c.UpdateProject(projectIDString, *project)
@@ -125,6 +129,10 @@ func resourceProjectRepositoryDelete(
125129
return diag.FromErr(err)
126130
}
127131

132+
// Issue #362
133+
// we don't want to update the connection ID when we set a project otherwise it will update all envs
134+
project.ConnectionID = nil
135+
128136
project.RepositoryID = nil
129137

130138
_, err = c.UpdateProject(projectIDString, *project)

0 commit comments

Comments
 (0)