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

[🐛] Missing copyright data on license reports due to data fetch bug #118

Open
fredvisser opened this issue Nov 6, 2023 · 0 comments
Open

Comments

@fredvisser
Copy link

Please provide all that are applicable:

  • Node version: v16.14.0
  • NPM version: 8.8.0
  • Library version: 1.24.1
  • OS: OSX
  • Command run: $ DEBUG=snyk-license* ~/Downloads/snyk-licenses-texts-macos g --orgPublicId=<PUBLIC_ID> --project=<PROJ_ID>

Expected behaviour

Attribution report contains all available copyright statements available in Snyk.

Actual behaviour

Report includes some, but misses many copyright statements available on https://app.snyk.io.

Steps to reproduce

  1. Run DEBUG=snyk-license* ~/Downloads/snyk-licenses-texts-macos g --orgPublicId=<PUBLIC_ID> --project=<PROJ_ID> on any project.

Debug log

snyk-licenses:generate ℹ️  Options: {"orgPublicId":"<PUBLIC_ID>","outputFormat":"html","view":"org-licenses","project":["<PROJ_ID>"]} +0ms
  snyk-licenses:generateOrgLicensesReport ℹ️  Generating license data for Org:<PUBLIC_ID> +0ms
  snyk-licenses:getLicenseDataForOrg Fetching licenses data for page 2 +0ms
  snyk-licenses:getDependenciesDataForOrg Fetching dependencies data for page 2 +0ms
  snyk-licenses:getLicenseDataForOrg Received 100 items, overall 16/8 received so far +549ms
  snyk-licenses:getDependenciesDataForOrg Received 20 items, overall 10/25 received so far +661ms
  snyk-licenses:getDependenciesDataForOrg Fetching dependencies data for page 3 +0ms
  snyk-licenses:getDependenciesDataForOrg Received 20 items, overall 0/25 received so far +2s
  snyk-licenses:generateOrgLicensesReport ✅ Got license API data for Org:<PUBLIC_ID> +2s
  snyk-licenses:generateOrgLicensesReport ✅ Got 25 dependencies API data for Org: <PUBLIC_ID>+0ms
  snyk-licenses:generateOrgLicensesReport ⏳ Processing 8 licenses +1ms
  snyk-licenses:generateOrgLicensesReport Splitting up a multi license [ 'Apache-2.0', 'BSD-2-Clause' ] +0ms
  snyk-licenses:generateOrgLicensesReport ✅ Done processing 8 licenses +22s
  snyk-licenses:generateHtmlReport ℹ️  Generating HTML report +0ms
  snyk-licenses:generateHtmlReport ✅ Using template default template +0ms
  snyk-licenses:generateHtmlReport ℹ️  Compiling Handlebars.js template ./templates/licenses-view.hbs +0ms
  snyk-licenses:generateHtmlReport ✅ Compiled template ./templates/licenses-view.hbs +1ms
  snyk-licenses:saveHtmlReport ⏳  Saving generated report to /Users/fvisser/Documents/GitRepositories/snyk-licenses-texts/<ORG_NAME>-<PUBLIC_ID>-org-licenses.html +0ms
  snyk-licenses:saveHtmlReport ✅ Saved HTML report to ~/Documents/GitRepositories/snyk-licenses-texts/<ORG_NAME>-<PUBLIC_ID>-org-licenses.html +0ms

Note that the Fetching … data steps start on page 2 instead of page 1. I.e. snyk-licenses:getLicenseDataForOrg Fetching licenses data for page 2 +0ms.

Screenshots

image

@fredvisser fredvisser mentioned this issue Nov 6, 2023
3 tasks
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

1 participant