feat : Edit Issue content during sync-projectItemStaged - #136
Merged
Conversation
…on and remove unused Get-DefaultDisplayFields
… functions to Add-ProjectItemDirect and Remove-ProjectItemDirect
…ionWithIntegration function
- Improved the Sync-Project function to streamline the processing of staged items and fields. - Introduced a new Remove-ItemStaged function to handle the removal of staged fields more efficiently. - Created project_database_call.ps1 to define command aliases for GitHub updates and item field updates. - Enhanced the Update-ProjectItem function to support both synchronous and asynchronous operations. - Added new GraphQL mutations for updating draft issues and pull requests. - Updated the Get-ProjectItem function to retrieve items directly if not found in the cache. - Refactored the Convert-ItemsFromResponse and Convert-FieldsFromResponse functions for better clarity and maintainability. - Implemented caching logic in Get-OwnerAndProjectNumber to optimize owner and project retrieval. - Added new GraphQL queries to fetch detailed project item information, including fields and values. - Improved error handling and logging throughout the project item management functions.
… Save-ProjectDatabase calls
…ith Set-ProjectItem
- Enhanced Get-ProjectFromDatabase function to copy fields, items, and staged data using Copy-MyHashTable. - Streamlined Sync-ProjectDatabaseAsync by removing redundant checks and simplifying staged item processing. - Introduced Set-ItemValue function for updating item values in the database. - Improved error handling in Sync-ProjectDatabase and Sync-Project functions to provide clearer feedback on staged values. - Added Test-UpdateProjectItemAsyncCall and Test-UpdateProjectItemCall functions for better validation of async update calls. - Updated Get-ProjectItem to cache items in the project database for improved performance. - Modified Sync-ProjectItemStagedAsync to return a boolean indicating success or failure.
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.
…ount of staged items
…ate assertions in Test_Sync_ProjectDatabase_ClearValues
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.
Introduce new functions for searching and updating project items, improve query readability, and standardize parameter handling across project functions. Refactor integration tests for clarity and enhance error handling in database synchronization processes.
Fixes #122