Skip to content
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

enable API version 6.0 for Get-VSTeamUserEntitlement #459

Merged
merged 15 commits into from
Sep 3, 2022
Merged

Conversation

mnieto
Copy link
Contributor

@mnieto mnieto commented Mar 2, 2022

PR Summary

Allows to take advantage of the filter parameter defined in the API v6.0
Defines a new parameterset specific for v6.0 onwards, and ensure that the existing top and skip parameters only can be executed with lower API versions

Fix #388

PR Checklist

@mnieto mnieto marked this pull request as ready for review March 14, 2022 21:05
Copy link
Collaborator

@SebastianSchuetze SebastianSchuetze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great code as a first contributor!
Not so sure about the solution how you try to check API difference by using count of parameters. Which seems more of a work around.

Wondering if we could solve it by using dynamic parameters and trying to resolve parameters that are shown by evaluating the set apiVersion. The version is always set, and we should make use of it and create the dependency from there.

.docs/synopsis/Get-VSTeamUserEntitlement.md Outdated Show resolved Hide resolved
.docs/Get-VSTeamUserEntitlement.md Show resolved Hide resolved
Source/Private/common.ps1 Show resolved Hide resolved
Source/Private/common.ps1 Show resolved Hide resolved
Source/Public/Get-VSTeamUserEntitlement.ps1 Show resolved Hide resolved
Source/Public/Get-VSTeamUserEntitlement.ps1 Show resolved Hide resolved
Source/Public/Get-VSTeamUserEntitlement.ps1 Outdated Show resolved Hide resolved
Tests/function/tests/Get-VSTeamUserEntitlement.Tests.ps1 Outdated Show resolved Hide resolved
@mnieto
Copy link
Contributor Author

mnieto commented Apr 11, 2022

@SebastianSchuetze , I sent my comments regarding to the _countParameters function. What direction should I get?

@SebastianSchuetze SebastianSchuetze merged commit 10024b0 into MethodsAndPractices:trunk Sep 3, 2022
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.

Get-VSTeamUserEntitlement only returns 96 results
2 participants