Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Nov 5, 2025

Enhance database performance by caching the database root and allowing forced resets. Update project item retrieval methods for better error handling and consistency. Improve test cases and error messages for clarity. Refactor code for readability and maintainability.

rulasg added 17 commits November 3, 2025 16:20
… improved error handling and option for hashtable return
}

function Reset-DatabaseStore{
function Reset-DatabaseStore {

Check warning

Code scanning / PSScriptAnalyzer

Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Reset-DatabaseStore' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
}

function Reset-Database{
function Reset-Database {

Check warning

Code scanning / PSScriptAnalyzer

Function 'Reset-Database' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning

Function 'Reset-Database' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
[Parameter()][string]$Owner,
[Parameter()][string]$ProjectNumber,
[Parameter()][switch]$Force
[Parameter()][switch]$Force,

Check warning

Code scanning / PSScriptAnalyzer

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

The parameter 'Force' has been declared but not used.

function writeMockCommandFile($Content){

$list = $Content | ConvertTo-Json

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
function writeMockCommandFile($Content){

$list = $Content | ConvertTo-Json

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
$list = $Content | ConvertTo-Json

$sorted = $list | Sort-Object fileName

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
}

function Reset-DatabaseStore{
function Reset-DatabaseStore {

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Reset-DatabaseStore' does not have a help comment. Note

The cmdlet 'Reset-DatabaseStore' does not have a help comment.
} Export-ModuleMember -Function Reset-DatabaseStore

function Get-DatabaseStore{
function Get-DatabaseStore {

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-DatabaseStore' does not have a help comment. Note

The cmdlet 'Get-DatabaseStore' does not have a help comment.
}

function Invoke-ProjectHelperGetDatabaseStorePath{
function Invoke-ProjectHelperGetDatabaseStorePath {

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Invoke-ProjectHelperGetDatabaseStorePath' does not have a help comment. Note

The cmdlet 'Invoke-ProjectHelperGetDatabaseStorePath' does not have a help comment.
# TODO: Create a Resolve-ProjectItemByUrl so that we can udpate the Project
# if item is not cached but exists in projects.
# TODO: Create a Resolve-ProjectItemByUrl - Depend on function to get item from project remote by url
# Get-ItemByUrl only check cache so we need a function that will retreive item from project remote

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace
@rulasg rulasg merged commit 741074a into main Nov 5, 2025
3 of 6 checks passed
@rulasg rulasg deleted the improvements251027 branch November 5, 2025 19:36
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