clearlydefined / clearlydefined/service
Inconsistent number of Cocoapods definitions in the stats and fetchable through the API
- Dominant language
- TypeScript
- Stars
- 51
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
Using the API I could only get 365 definitions from: https://api.clearlydefined.io/definitions?type=pod&provider=cocoapods
and then following the "continuationToken" to
- https://api.clearlydefined.io/definitions?type=pod&provider=cocoapods&continuationToken=cG9kL2NvY29hcG9kcy8tL3N3aWZ0aG9vay8yLjAuMA==
- https://api.clearlydefined.io/definitions?type=pod&provider=cocoapods&continuationToken=cG9kL2NvY29hcG9kcy8tL3l3ZWJ2aWV3LzAuMTIuMA==
- https://api.clearlydefined.io/definitions?type=pod&provider=cocoapods&continuationToken=cG9kL2NvY29hcG9kcy8tL3ppcHphcC84LjEuMQ==
This last URL returns an empty continuationToken meaning that's the end of pagination.
In contrast this page https://clearlydefined.io/stats lists 7847 pods and not only 365
Contributor guide
Research direction
Reproduce the issue with the three Cocoapods definitions API URLs and compare the final result with the 7,847 pods shown on the stats page. Trace the definitions pagination and the stats count to find why continuationToken pagination stops after 365 results. Done means the API returns the complete Cocoapods set consistently with the stats total.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100