question

JohnathanSeal-9901 avatar image
0 Votes"
JohnathanSeal-9901 asked MayankBargali-MSFT answered

top sort for _apis/test/Runs?$top=N

Hello,

I am using the Runs list as outlined in https://docs.microsoft.com/en-us/rest/api/azure/devops/test/runs/list?view=azure-devops-rest-6.0&source=docs

This list is getting long; hence, I used $top=N to get the top N test runs.
However, the top is actually the bottom.
I.E. you have test run 1, 2, 3,... where 1 is the first run ever done (least recent) and 3 is the most recent.
using top=2 will give 1 and 2 instead of the expected 2, 3.

I found via testing that the parameter 'bottom' does give the expected behavior, but it is not documented.
Can you add the documentation?

not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

retract the 'bottom' parameter as it did not product the right results - it was a cache issue.

So, top does not work as expected and there is not a 'simple' parameter to use for 'bottom'.

0 Votes 0 ·

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @JohnathanSeal-9901

DevOps is currently not supported in the Q&A forums, the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

You can ask the experts in the dedicated forum over here: https://stackoverflow.com/questions/tagged/devops
https://developercommunity.visualstudio.com/spaces/21/index.html

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.