sentry icon indicating copy to clipboard operation
sentry copied to clipboard

feat: add cursor param to test results endpoint

Open ajay-sentry opened this issue 7 months ago • 1 comments

This PR adds the ability to input a "cursor" into the test_results endpoint so we can try to implement pagination on the Sentry UI.

Closes https://linear.app/getsentry/issue/CCMRG-1309/figure-out-pagination-for-all-endpoints

Still need to figure out how this would work on the infinite results hook but at the very least we can continually fetch pages on postman. Below are some screenshots of me fetching subsequent pages on postman using the cursor attribute

Screenshot 2025-06-13 at 9 56 18 AM Screenshot 2025-06-13 at 9 56 31 AM

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

ajay-sentry avatar Jun 13 '25 16:06 ajay-sentry

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ntry/codecov/endpoints/TestResults/test_results.py 75.00% 1 Missing :warning:
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #93525       +/-   ##
===========================================
+ Coverage   72.17%   84.19%   +12.02%     
===========================================
  Files       10295    10311       +16     
  Lines      593834   594303      +469     
  Branches    23044    23044               
===========================================
+ Hits       428589   500390    +71801     
+ Misses     164796    93464    -71332     
  Partials      449      449               

codecov[bot] avatar Jun 13 '25 17:06 codecov[bot]