MetaCPAN-Client icon indicating copy to clipboard operation
MetaCPAN-Client copied to clipboard

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

Open szabgab opened this issue 1 year ago • 3 comments

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?

szabgab avatar Apr 05 '23 04:04 szabgab

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.

mickeyn avatar Apr 05 '23 06:04 mickeyn

This is a classic use-case for GraphQL.

mohawk2 avatar Apr 07 '23 17:04 mohawk2

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

szabgab avatar Jun 02 '23 05:06 szabgab