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

[feature] Update deps.dev collector to take advantage of the new API #1768

Open
pxp928 opened this issue Mar 12, 2024 · 5 comments
Open

[feature] Update deps.dev collector to take advantage of the new API #1768

pxp928 opened this issue Mar 12, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pxp928
Copy link
Collaborator

pxp928 commented Mar 12, 2024

Is your feature request related to a problem? Please describe.

With the new release of the API for deps.dev -> https://blog.deps.dev/api-v3/

  • Take advantage of the batch query support
  • Utilizing purl when querying for information (no need to decompose the purl as we are currently doing)

packageInput, err := helpers.PurlToPkg(purl)
if err != nil {
logger.Infof("failed to parse purl to pkg: %s", purl)
return nil
}
// if version is not specified, cannot obtain accurate information from deps.dev. Log as info and skip the purl.
if *packageInput.Version == "" {
logger.Infof("purl does not contain version, skipping deps.dev query: %s", purl)
return nil
}
component.CurrentPackage = packageInput
err = d.collectAdditionalMetadata(ctx, packageInput.Type, packageInput.Namespace, packageInput.Name, packageInput.Version, component)
if err != nil {
logger.Debugf("failed to get additional metadata for package: %s, err: %v", purl, err)
}
)

Describe the solution you'd like
upgrade the current deps.dev collector to use the latest API features

@pxp928 pxp928 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Mar 12, 2024
@pxp928
Copy link
Collaborator Author

pxp928 commented Apr 29, 2024

@rakshitgondwal would you be interested in working on this?

@rakshitgondwal
Copy link
Contributor

Sure @pxp928, I can take this up after #1710

@pxp928
Copy link
Collaborator Author

pxp928 commented May 24, 2024

@rakshitgondwal have you started any work on this? If not, @nathannaveen would like to take it over.

@rakshitgondwal
Copy link
Contributor

Hi @pxp928, nope I didn't get the time to do so, and sure someone else can take this over.

@nathannaveen
Copy link
Contributor

Hey @pxp928, could I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants