feat: add cursor param to test results endpoint
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
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.
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