-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
WorkflowRunsOperations.list arguments top and filter not working? #21932
Comments
For the "filter" argument, the right syntax seems to be: For the "top" argument, still not picking up the integer value, also tried passing it as string. |
@c4g-wv Thanks for your feedback, we'll investigate asap. |
@c4g-wv Would you mind providing the code snippet you are using to get the results ? |
@SaurabhSharma-MSFT test code could look something like this:
fyi: tested it on python 3.8 and 3.9 |
@c4g-wv I have tested this in my environment and you are correct filter works with the time format - Also, I have also tried with using I am checking internally on the same and get back to you. Thanks |
@c4g-wv the logicClient = LogicManagementClient(DefaultAzureCredential(), "sub-id")
it = logicClient.workflow_runs.list("rg-name", "la-name", top = 5)
for i in range(0, 5):
curr = it.next()
print(curr) Or just loop through the first page like this logicClient = LogicManagementClient(DefaultAzureCredential(), "sub-id")
pages = logicClient.workflow_runs.list("rg-name", "la-name", top = 5).by_page()
for i in pages.next():
print(i) |
@PramodValavala-MSFT : thanks for looking into it. I agree, there are workarounds, but it's not how I expect it to work. Through REST API, it is properly giving 1 result back. Also, the "filter" argument is giving a proper reduced list (both in REST API and |
@c4g-wv You are right. In fact, the first response does return just five results, but the problem seems to be that the service returns a |
@c4g-wv Please let us know if you have any additional questions else we will proceed with the closure of this issue. |
@SaurabhSharma-MSFT : Personally, I don't consider the issue closed. There is a workaround, I agree, but the parameter does not behave the way it's supposed to behave. Though, if the development team has decided not to fix it, then you can go ahead with closure. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team. Issue DetailsDear, I'm trying to use the list method of the WorkflowRunsOperations, but when I specify top=5 for example, I still seem to be getting all runs. It's as if the top argument is not taken into account?
Document Details⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
|
Given the linked PR was closed as completed. I will close this one. Please feel free to reopen it if it is not solved. |
Hi @c4g-wv. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Hi @c4g-wv, since you haven’t asked that we “ |
Dear,
I'm trying to use the list method of the WorkflowRunsOperations, but when I specify top=5 for example, I still seem to be getting all runs. It's as if the top argument is not taken into account?
Additionally, I'm trying to use the filter on StartTime, but keeps giving a "not valid or not supported" error. Things I've tried so far:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: