Allow Get-AzLogicAppRunHistory to return more than 30 entries#13393
Allow Get-AzLogicAppRunHistory to return more than 30 entries#13393isra-fel merged 7 commits intoAzure:masterfrom mikejwhat:master
Conversation
|
Thank you for your contribution mikejwhat! We will review the pull request and get back to you soon. |
|
@mikejwhat thanks for your contribution! 😁 |
|
@daviburg Hi David, could you review this enhancement to |
No problem! Not a Microsoft employee. |
src/LogicApp/LogicApp/Cmdlets/LogicApp/GetAzureLogicAppRunHistoryCommand.cs
Outdated
Show resolved
Hide resolved
src/LogicApp/LogicApp/Cmdlets/LogicApp/GetAzureLogicAppRunHistoryCommand.cs
Outdated
Show resolved
Hide resolved
src/LogicApp/LogicApp/Cmdlets/LogicApp/GetAzureLogicAppRunHistoryCommand.cs
Outdated
Show resolved
Hide resolved
src/LogicApp/LogicApp/Cmdlets/LogicApp/GetAzureLogicAppRunHistoryCommand.cs
Outdated
Show resolved
Hide resolved
| /// <param name="workflowName">Name of the workflow</param> | ||
| /// <returns>List of workflow runs</returns> | ||
| public Page<WorkflowRun> GetWorkflowRuns(string resourceGroupName, string workflowName) | ||
| public Page<WorkflowRun> GetWorkflowRuns(string resourceGroupName, string workflowName, string nextPageLink = "") |
There was a problem hiding this comment.
nit: please use constant string.Empty
There was a problem hiding this comment.
Didn't think that was possible here.
There was a problem hiding this comment.
Ah yes I forgot, it's not defined as a const but as a read-only static so we can't use it for default parameters.
There was a problem hiding this comment.
Not a fan of empty quotes either
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Description
This cmdlet currently only appears to return the first page of results from the API. Drawing inspiration from Invoke-RestMethod, I have introduced FollowRelLink and MaximumFollowRelLink parameters to enable the retrieval of larger result sets.
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