Skip to content

Commit c390b39

Browse files
authored
hotfix: Set-AdoTeamSettings backlog iteration not updating (#103)
* fix: Bug `Set-AdoTeamSettings` backlog iteration not updating * fix!: Update output names for consistency in `Add-AdoTeamIteration` and `Get-AdoTeamIteration` cmdlets BREAKING CHANGE: Output team and project not available anymore, use teamName and projectName * fix: Update property names in test assertions for in `Add-AdoTeamIteration` and `Get-AdoTeamIteration` cmdlets * chore: Update CHANGELOG to reflect recent changes and fixes * chore: Update build version to 0.2.3 * chore: Add CHANGELOG summary * chore: Update PR references in CHANGELOG for recent changes
1 parent 4f52f11 commit c390b39

7 files changed

Lines changed: 21 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,25 @@ All notable changes to this project will be documented in this file.
1919
2020
<br> -->
2121

22-
## [UNRELEASED]
22+
## [0.2.3] - 2026-01-25
2323

2424
### Summary
25-
- _None_
25+
26+
Hotfix release focused on bug fixes and code quality improvements. Achieved 100% code coverage, resolved CollectionUri parameter logic issues, and standardized output property names for team iteration cmdlets. Includes a breaking change to output naming for better consistency.
2627

2728
### What's Changed
2829
- fix: CollectionUri parameter default value logic issue (#100)
2930
- chore: Update and improve code to achieve 100% code coverage (#101)
31+
- fix: Bug `Set-AdoTeamSettings` backlog iteration not updating (#103)
32+
- fix!: Update output names for consistency in `Add-AdoTeamIteration` and `Get-AdoTeamIteration` cmdlets (#103)
33+
BREAKING CHANGE: Output team and project not available anymore, use teamName and projectName
34+
- fix: Update property names in test assertions for in `Add-AdoTeamIteration` and `Get-AdoTeamIteration` cmdlets (#103)
35+
- chore: Update CHANGELOG to reflect recent changes and fixes
36+
- chore: Update build version to 0.2.3
3037

3138

3239
### Breaking Changes
33-
- _None_
40+
- With the output names update in `Add-AdoTeamIteration` and `Get-AdoTeamIteration` cmdlets the output names `team` and `project` are not available anymore, use `teamName` and `projectName` instead.
3441

3542
<br> -->
3643

src/Azure.DevOps.PSModule/Public/Work/TeamSettings/Iterations/Add-AdoTeamIteration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function Add-AdoTeamIteration {
106106
id = $results.id
107107
name = $results.name
108108
attributes = $results.attributes
109-
team = $TeamName # TeamName or TeamId
110-
project = $ProjectName # ProjectName or ProjectId
109+
teamName = $TeamName
110+
projectName = $ProjectName
111111
collectionUri = $CollectionUri
112112
}
113113

src/Azure.DevOps.PSModule/Public/Work/TeamSettings/Iterations/Get-AdoTeamIteration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ function Get-AdoTeamIteration {
140140
id = $i_.id
141141
name = $i_.name
142142
attributes = $i_.attributes
143-
team = $TeamName # TeamName or TeamId
144-
project = $ProjectName # ProjectName or ProjectId
143+
teamName = $TeamName
144+
projectName = $ProjectName
145145
collectionUri = $CollectionUri
146146
}
147147
}

src/Azure.DevOps.PSModule/Public/Work/TeamSettings/Set-AdoTeamSettings.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function Set-AdoTeamSettings {
130130
Write-Debug ("Name: $Name")
131131
Write-Debug ("WorkingDays: $($WorkingDays -join ',')")
132132
Write-Debug ("BugsBehavior: $BugsBehavior")
133-
Write-Debug ("BacklogIterationId: $BacklogIteration")
133+
Write-Debug ("BacklogIteration: $BacklogIteration")
134134
Write-Debug ("DefaultIterationMacro: $DefaultIterationMacro")
135135
Write-Debug ("Version: $Version")
136136

@@ -151,7 +151,7 @@ function Set-AdoTeamSettings {
151151
$body = [PSCustomObject]@{}
152152

153153
if ($PSBoundParameters.ContainsKey('BacklogIteration')) {
154-
$body | Add-Member -NotePropertyName 'backlogIteration' -NotePropertyValue @{ id = $BacklogIteration }
154+
$body | Add-Member -NotePropertyName 'backlogIteration' -NotePropertyValue $BacklogIteration
155155
}
156156
if ($PSBoundParameters.ContainsKey('BacklogVisibilities')) {
157157
$body | Add-Member -NotePropertyName 'backlogVisibilities' -NotePropertyValue $BacklogVisibilities

src/Azure.DevOps.PSModule/Tests/Work/TeamSettings/Iterations/Add-AdoTeamIteration.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Describe 'Add-AdoTeamIteration' {
7070
$result.id | Should -Be '11111111-1111-1111-1111-111111111111'
7171
$result.name | Should -Be 'Sprint 1'
7272
$result.attributes | Should -Not -BeNullOrEmpty
73-
$result.team | Should -Be 'TestTeam'
74-
$result.project | Should -Be 'TestProject'
73+
$result.teamName | Should -Be 'TestTeam'
74+
$result.projectName | Should -Be 'TestProject'
7575
$result.collectionUri | Should -Be 'https://dev.azure.com/my-org'
7676
}
7777

src/Azure.DevOps.PSModule/Tests/Work/TeamSettings/Iterations/Get-AdoTeamIteration.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ Describe 'Get-AdoTeamIteration' {
153153
$result.id | Should -Be '22222222-2222-2222-2222-222222222222'
154154
$result.name | Should -Be 'Sprint 2'
155155
$result.attributes | Should -Not -BeNullOrEmpty
156-
$result.team | Should -Be 'TestTeam'
157-
$result.project | Should -Be 'TestProject'
156+
$result.teamName | Should -Be 'TestTeam'
157+
$result.projectName | Should -Be 'TestProject'
158158
$result.collectionUri | Should -Be 'https://dev.azure.com/my-org'
159159
}
160160

src/Build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Properties {
3434
# $script:moduleName = 'Azure.DevOps.PSModule'
3535

3636
# The current release version of the module.
37-
$script:buildVersion = [System.Version]'0.2.2'
37+
$script:buildVersion = [System.Version]'0.2.3'
3838

3939
# Pre-release label (e.g. 'alpha1', 'beta1', 'rc1'). Set to $null for stable releases.
4040
$script:prerelease = $null

0 commit comments

Comments
 (0)