-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Allow Get-AzLogicAppRunHistory to return more than 30 entries #13393
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
@@ -40,9 +40,11 @@ public partial class LogicAppClient | |||
/// <param name="resourceGroupName">Name of the resource group</param> | |||
/// <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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please use constant string.Empty
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.
Didn't think that was possible here.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of empty quotes either
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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.
Looks good 👍
…13393) * Fix paging * Update markdown help * Update ChangeLog.md * Removed redundant parameter set and added parameter aliases to match Invoke-RestMethod * Remove mistakenly pasted comment * Fix example * Implemented suggested changes
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.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added