Skip to content

Release: Merge 1.24.0 stable to main#86

Merged
homotechsual merged 9 commits into
mainfrom
develop
Jun 22, 2026
Merged

Release: Merge 1.24.0 stable to main#86
homotechsual merged 9 commits into
mainfrom
develop

Conversation

@homotechsual

Copy link
Copy Markdown
Owner

This PR merges the 1.24.0 stable release from develop to main.

Closes #83, #84, #85

Changes

  • Fix Invoke-HaloRequest boolean leak when token is renewed
  • Fix Connect-HaloAPI Azure Key Vault integration (secret names, -AsPlainText usage, optional parameters)
  • Add CustomTable data management (New/Set/Remove-HaloCustomTableData)
  • Add Fragment option to Invoke-HaloRequest
  • Add -ExcludeSLA to Get-HaloTicket

Copilot AI review requested due to automatic review settings June 22, 2026 19:45
@homotechsual homotechsual merged commit 4e8eecb into main Jun 22, 2026
4 of 5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 merges the 1.24.0 release line into main for the HaloAPI PowerShell module, introducing new CustomTable row-data cmdlets, enhancing Invoke-HaloRequest usability, and fixing Azure Key Vault integration in Connect-HaloAPI.

Changes:

  • Added New/Set/Remove-HaloCustomTableData cmdlets with unit tests to manage CustomTable row data.
  • Enhanced Invoke-HaloRequest to support direct parameters, fragment resolution, and response property expansion, plus additional unit tests.
  • Updated Connect-HaloAPI Key Vault behavior (hyphenated secret names, -AsPlainText, UseManagedIdentity switch) and bumped release metadata/changelog.

Reviewed changes

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

Show a summary per file
File Description
Tests/HaloAPI.Unit.Tests.ps1 Adds unit coverage for new Invoke-HaloRequest behaviors and CustomTableData cmdlets.
Public/New/New-HaloCustomTableData.ps1 New cmdlet to POST CustomTable row data payloads.
Public/Set/Set-HaloCustomTableData.ps1 New cmdlet to update CustomTable row data payloads.
Public/Remove/Remove-HaloCustomTableData.ps1 New cmdlet to delete CustomTable data via delete-flag payloads.
Public/Invoke/Invoke-HaloRequest.ps1 Adds direct-parameter usage, fragment resolution, and ExpandProperty support; adjusts token-renew flow.
Public/Get/Get-HaloTicket.ps1 Adds -ExcludeSLA switch to the ticket query surface.
Public/Connect-HaloAPI.ps1 Fixes Key Vault integration and adjusts parameter requirements/managed identity behavior.
HaloAPI.psd1 Updates version and exported functions; adjusts release metadata.
CHANGELOG.md Adds 1.24.0 release notes entry.

Comment on lines 90 to +97
$ReconnectParameters = @{
URL = $Script:HAPIConnectionInformation.URL
ClientId = $Script:HAPIConnectionInformation.ClientID
URL = $Script:HAPIConnectionInformation.URL
ClientId = $Script:HAPIConnectionInformation.ClientID
ClientSecret = $Script:HAPIConnectionInformation.ClientSecret
Scopes = $Script:HAPIConnectionInformation.AuthScopes
Tenant = $Script:HAPIConnectionInformation.Tenant
Scopes = $Script:HAPIConnectionInformation.AuthScopes
Tenant = $Script:HAPIConnectionInformation.Tenant
}
Connect-HaloAPI @ReconnectParameters
$null = Connect-HaloAPI @ReconnectParameters -NoConfirm
Comment on lines +111 to +123
if ($PSCmdlet.ParameterSetName -eq 'RequestParameters') {
$WebRequestParams = @{
Method = $Method
}

if (-not [string]::IsNullOrWhiteSpace($Uri)) {
$WebRequestParams.Uri = $Uri
}

if (-not [string]::IsNullOrWhiteSpace($Fragment)) {
$WebRequestParams.Fragment = $Fragment
}

Comment on lines +19 to +20
.PARAMETER Uri
Absolute URI for the request.
Comment on lines +92 to +103
# Validate that required parameters are provided when not using KeyVault
if (-not $UseKeyVault -and -not $SaveToKeyVault) {
if ([string]::IsNullOrWhiteSpace($URL)) {
throw 'URL parameter is required when UseKeyVault is not specified.'
}
if ([string]::IsNullOrWhiteSpace($ClientID)) {
throw 'ClientID parameter is required when UseKeyVault is not specified.'
}
if ([string]::IsNullOrWhiteSpace($ClientSecret)) {
throw 'ClientSecret parameter is required when UseKeyVault is not specified.'
}
}
Comment on lines 105 to 106
# If the Identity parameter is specified, use it to connect.
# Otherwise, fall back to interactive login.
Comment on lines +73 to 79
# When set to $true, uses a Managed Identity to connect to Azure Key Vault instead of interactive login.
[Parameter(
ParameterSetName = 'Client Credentials',
Mandatory = $False
)]
[String]$Identity,
[Switch]$UseManagedIdentity,
# The maximum number of times to retry requests before giving up.
Comment thread HaloAPI.psd1
Comment on lines +322 to 326
ReleaseNotes = 'https://github.com/homotechsual/HaloAPI/releases/tag/v1.24.0-beta1'

# Prerelease string of this module
# Prerelease = 'Beta1'
Prerelease = 'beta1'
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
)
Invoke-HaloPreFlightCheck
try {
if ($PSCmdlet.ShouldProcess($CustomTableData -is [Array] ? 'Custom Table Data' : 'Custom Table Data', 'Create')) {
)
Invoke-HaloPreFlightCheck
try {
if ($PSCmdlet.ShouldProcess($CustomTableData -is [Array] ? 'Custom Table Data' : 'Custom Table Data', 'Update')) {
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.

Adding CustomTable Data Endpoint

2 participants