feat: Many featurs including memory cache for fields and projects#210
Merged
feat: Many featurs including memory cache for fields and projects#210
Conversation
…ssary token handling
…r for controlled updates
…ey for consistency
…void wrong field cache alive
fix: resolve issue with user authentication flow
…ent query assignment
There was a problem hiding this comment.
PSScriptAnalyzer found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
…ct[] to hashtable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here is a list of commits with their messages and short descriptions based on the provided diffs:
Commit Message:
Refactor project cache file naming for consistency
Description:
Changed the format of the project cache file name in
Get-Mock_Project_700from"$($pActual.owner.login)_$($pActual.number).json"to"db-$($pActual.owner.login)-$($pActual.number)-project.json"for better consistency with other database keys.Commit Message:
Add normalized test data for project item retrieval
Description:
Added a new mock JSON file
invoke-getitem-PVTI_lADOAlIw4c4BCe3Vzgeio4o-Normalized.jsonwith detailed structure for an issue, including comments and various field values, to support tests for normalized titles and item retrieval.Commit Message:
Update environment cache file naming in project parameter tests
Description:
Changed environment cache file names in
projectParameters.test.ps1to use the new convention (env-owner.json,env-ProjectNumber.json,env-ProjectTitle.json) instead of the oldEnvironmentCache_*format.Commit Message:
Add tests for normalized project item titles
Description:
Added new tests in
edit_project_item.test.ps1to verify normalization logic for project item titles, including cases where the title is already normalized and various edge cases for normalization.Commit Message:
Update environment variable accessors for project last update tests
Description:
Refactored tests in
updateprojectrecent.test.ps1to use new functionsGet-EnvProjectLastUpdateandSet-EnvProjectLastUpdateinstead of the previousGet-EnvItem_Last_RecentUpdateandSet-EnvItem_Last_RecentUpdate, and updated comments and assertions accordingly.Commit Message:
Set default debug section and improve file path validation in logging
Description:
Set default value for
$sectioninWrite-MyDebugto"none". Improved file path validation inWrite-MyDebugLoggingby checking for leaf file type, and removed redundant log file path joining.Commit Message:
Enhance debug section filtering and environment variable management
Description:
Refactored debug section filtering logic in
Test-MyDebugto support allow and filter lists, and updatedEnable-ModuleNameDebugto accept multiple sections and additional sections. Added helpers for managing debug sections and log file environment variables.Commit Message:
Add function to retrieve current debug configuration
Description:
Added
Get-ModuleNameDebugto retrieve current debug sections and logging file path, and exported it as a module member.Commit Message:
Add helpers for debug section and log file environment variables
Description:
Added functions
get-Sections,set-Sections,get-LogFile, andset-LogFileto facilitate management of debug-related environment variables.Commit Message:
Add debug logging to database operations
Description:
Added debug output to
Get-Database,Test-Database, andReset-Databaseto log key and path information for database operations.Commit Message:
Add helper to generate consistent database keys
Description:
Added
Get-DatabaseKeyfunction to generate consistent database keys based on owner, project number, and category, with validation for input parameters.Each commit message and description corresponds to a logical set of changes from the diffs you provided.