-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance Get-VSTeamProcess #300 #322
Enhance Get-VSTeamProcess #300 #322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not want to change the build process in any way at this time.
I do not want any testing flags of any kind.
I've changed my build so that
I have also added a switch to build module if specified
So have we can development that little bit easier with a build-time switch and the "normal" build process is unaffected.
I found one last stray one in Add-VSTeamBuild.ps1 they are all removed from my branches now (I think) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to apply the Update -List pattern to all cache classes.
@@ -154,63 +143,18 @@ function _getApiVersion { | |||
[CmdletBinding(DefaultParameterSetName = 'Service')] | |||
param ( | |||
[parameter(ParameterSetName = 'Service', Mandatory = $true, Position = 0)] | |||
[ValidateSet('Build', 'Release', 'Core', 'Git', 'DistributedTask', 'VariableGroups', 'Tfvc', 'Packaging', 'MemberEntitlementManagement', 'ExtensionsManagement', 'ServiceFabricEndpoint', 'Graph', 'TaskGroups', 'Policy')] | |||
[ValidateScript({$_ -in ([VSTeamVersions] | Get-Member -Static -MemberType Property).name})] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Versions has more values like Account, DefaultProject and Version that are not valid for Service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although they are not services, they can still be returned. If it's necessary to throw if someone uses _getApiVersion to find the account that can be done.
However I am adding support for managing processes definitions which really needed its own API version (possibly not with the most recent changes) and having to add to this list in common.ps1 when a change is made to class definition felt wrong.
How are you merging the changes from upstream? I see 235 files changed but they really didn't it is making it very time consuming to review this PR. |
It was some time back... I think I pulled upstream into to my master branch and then merged master into this branch which had already been created for the PR. |
I should have these changes in today. |
Switching Get-VSTeamProcess from Processes to Work breaks TFS2017. I am working switching the call based on the API version being used. I will be merging these changes from another PR because there are too many files changed in this PR to make sense of the actual changes. |
Pulled in changes from PR #322 Added Timeout setting Integration tests are now safe to run in any account. They are not longer destructive. Co-authored-by: James O'Neill <[email protected]>
PR Summary
Get-VSTeamProcess now:
PR Checklist
(Small updates, mostly reflecting the different API provides more information but doesn't support paged responses)
(Fixed existing ones.)