Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.61k stars 5.03k forks source link

Pull Requests API - sourceCriteria.minTime comparism #26287

Open zivotsky opened 11 months ago

zivotsky commented 11 months ago

Hello,

I am trying to get all pull requests since a specific pull request was closed. I retrieve the record from the API and copy its "closedDate" property, "closedDate": "2023-10-16T14:36:23.6270246Z".

When I use this value as an input parameter for the sourceCriteria.minTime filter, I get the same record in the result. Even when I increase the value by one millisecond to 2023-10-16T14:36:23.6280246Z, I still get this record in the data set. When I increase it by another millisecond, the record finally disappears. I am also using the searchCriteria.queryTimeRangeType=closed filter.

Is there any minimal threshold for the datetime against which it is compared?

JackTn commented 8 months ago

@zivotsky can you give me the detail or direct link about pull request API ? Thanks

zivotsky commented 8 months ago

@JackTn https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests-by-project?view=azure-devops-rest-7.1&tabs=HTTP

JackTn commented 8 months ago

@zivotsky Thanks. And @prashmo can you check on this issue, let me know if you have any question!