Closed golangisfun123 closed 3 weeks ago
The changes involve modifications to the stuckHeroCountStats
function in the exporters
package to implement pagination for retrieving stuck heroes. The previous single count retrieval has been replaced with a loop that uses a limit
of 100
to fetch results incrementally. Additionally, the StuckHeroes
method in the Client
struct has been updated to accept a new limit
parameter, allowing callers to specify the number of results returned. These changes enhance the data retrieval process for stuck heroes.
File Path | Change Summary |
---|---|
contrib/promexporter/exporters/dfk.go | Modified stuckHeroCountStats to implement pagination with a loop, using totalStuckHeroes and skip for managing results. |
contrib/promexporter/internal/gql/dfk/client.gen.go | Updated StuckHeroes method to include a new limit *int64 parameter for specifying the number of results in the GraphQL query. |
In the fields where heroes tread,
A count of stuck ones now widespread.
With limits set and pages turned,
New tales of triumph will be learned.
Hopping forth, we cheer and play,
For every hero finds their way! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Latest commit: |
3f6dc6e
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2fc5eb36.sanguine-fe.pages.dev |
Branch Preview URL: | https://dfk-pagination.sanguine-fe.pages.dev |
Attention: Patch coverage is 0%
with 16 lines
in your changes missing coverage. Please review.
Project coverage is 43.66137%. Comparing base (
99cf53e
) to head (3f6dc6e
). Report is 88 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
contrib/promexporter/exporters/dfk.go | 0.00000% | 14 Missing :warning: |
...ontrib/promexporter/internal/gql/dfk/client.gen.go | 0.00000% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
Summary by CodeRabbit
New Features
Bug Fixes