Remove ApiVersion Parameter and change Get-AzResourceGroupOperation implementation to use SDK#12642
Conversation
|
Can one of the admins verify this patch? |
|
For public API changes to cmdlets, a cmdlet design review was approved for the changes in this repository Besides, removing a parameter is a breaking change. The nearest sprint open for breaking changes will be S177. We suggest:
|
Breaking change attributes have already been added and are present in the Master branch |
Great
Ah yes, but still please submit a design review. Thanks |
| /// [CmdletParameterBreakingChange("SubscriptionId", ChangeDescription = "Parameter is deprecated and is a no-op parameter. It will be retired in a future release")] | ||
| [Parameter(Mandatory = false, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The subscription to use.")] | ||
| [ValidateNotNullOrEmpty] | ||
| public Guid? SubscriptionId { get; set; } |
There was a problem hiding this comment.
public Guid? SubscriptionId { get; set; } [](start = 8, length = 41)
Let's add a task on the board to remove this parameter later.
filizt
left a comment
There was a problem hiding this comment.
Changes LGTM. We might need to look at the failing pipeline tasks.
|
|
@Xynoclafe You need to suppress the breaking change warning in your PR to pass the static analysis. |
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: True | ||
| Accept wildcard characters: False |
There was a problem hiding this comment.
Not sure if these are related to your changes.
Working on it |
|
@msJinLei @isra-fel |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
We will check the errors since there are unexpected ones |
Any updates on this? |
They are not false positives errors. When a parameter is removed from cmdlet, it is evaluated twice in static analysis. And so please check the cmdlets and parameter sets reported to see whether there is any change in the parameter set, including removed parameters (optional or mandatory), additional mandatory parameters. If yes, just suppress the error. Sorry for the trouble, we will improve the tools in the future. |
|
I think I've already regenerated the help files. But yes, I will verify the case with parameter sets and suppress them accordingly |
Description
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added