Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the coverage data in the data returned by the recent call #114

Open
szabgab opened this issue Apr 5, 2023 · 3 comments
Open

Include the coverage data in the data returned by the recent call #114

szabgab opened this issue Apr 5, 2023 · 3 comments

Comments

@szabgab
Copy link
Contributor

szabgab commented Apr 5, 2023

In the code generating the CPAN Digger first I call $mcpan->recent and then on every release I call $mcpan->cover($release->name); If I understand correctly this will generate as many API requests as releases I fetch. (Which is now 200).

Is there a way to get the cover data already in the first call together with the other data of the recently uploaded releases?

@mickeyn
Copy link
Contributor

mickeyn commented Apr 5, 2023

cover is a separate index which will require some work on the API level to open for raw querying.
I will try working on that during PTS.

@mohawk2
Copy link
Contributor

mohawk2 commented Apr 7, 2023

This is a classic use-case for GraphQL.

@szabgab
Copy link
Contributor Author

szabgab commented Jun 2, 2023

@mohawk2 Is there a GraphQL API for MetaCPAN or are you saying it should have one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants