Skip to content

Small Improvements - #152

Merged
rulasg merged 8 commits into
mainfrom
small-improvements
Oct 9, 2025
Merged

Small Improvements#152
rulasg merged 8 commits into
mainfrom
small-improvements

Conversation

@rulasg

@rulasg rulasg commented Oct 9, 2025

Copy link
Copy Markdown
Owner

Improve search functionality by sorting results by title and adding comprehensive tests. Implement new database functions for better storage and retrieval. Make SourceProjectNumber mandatory and enhance error handling during synchronization. Streamline project synchronization by removing unnecessary parameters and renaming functions for clarity.

function Test_SearchProjectItem_AND_Filter_SUCCESS {
Reset-InvokeCommandMock
Mock_DatabaseRoot

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
$p = Get-Mock_Project_700 ; $owner = $p.owner ; $projectNumber = $p.number
MockCall_GetProject $p -Cache

$i = $p.issue

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
$item = @{
id = "1"
title = "This is a sample title for testing"
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace

# Test case 1: Single value match
$result = $item | Test-WhereLikeField -Fieldname "title" -Values "sample"
Assert-IsTrue -Condition $result

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
Comment thread public/project_item.ps1


function Show-ProjectItem{
function Format-ProjectItem{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Format-ProjectItem' does not have a help comment. Note

The cmdlet 'Format-ProjectItem' does not have a help comment.
Comment thread public/project_item.ps1
return $true
}
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
Comment thread public/project_item.ps1
[Parameter(Mandatory,ValueFromPipeline)] [object]$Item,
[Parameter(Mandatory)][string]$FieldName,
[Parameter(Mandatory)][string[]]$Values,
[Parameter()][switch]$OR

Check warning

Code scanning / PSScriptAnalyzer

The parameter 'OR' has been declared but not used. Warning

The parameter 'OR' has been declared but not used.
Comment thread public/project_item.ps1
$title = $item.$FieldName

$foundCount = 0

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg
rulasg merged commit 4da2362 into main Oct 9, 2025
3 checks passed
@rulasg
rulasg deleted the small-improvements branch October 9, 2025 10:18
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.

2 participants