Be-Secure / BeSLighthouse

Community dashboard for security assessment of open source projects of interest for BeSecure community. Various visualizations on Projects of Interest and Vulnerabilities of interest are available in the dashboard
https://be-secure.github.io/BeSLighthouse/
Apache License 2.0
20 stars 17 forks source link

[Bug]: dependencies count is showing 1 less on main page #614

Open NeerajK007 opened 6 months ago

NeerajK007 commented 6 months ago

Contribution guidelines

Description

A bug happened! eg - spring-boot -

total dependency - 70 showing count main page - 69

details-report - correct count - 70

This is for all projects.

Expected behaviour

total count on main page and inner -details page should be same

Actual behaviour

on main page count is always less by 1

Steps to reproduce

  1. go to main dashboard
  2. select any project for which dependencies report is available
  3. check count on main page
  4. click on details report
  5. check total count in details report.

Relevant screenshots

NA

What browsers are you seeing the problem on?

No response

Relevant log output

NA
pramit-d commented 6 months ago

@NeerajK007 In every POI card dependencies count will be 1 less. We exclude the root package as a dependency, for this reason, the dependencies count is less.

Screenshot from 2024-03-15 15-21-18

The first dependency is spring-boot, which is not correct. spring-boot could not be a dependency of spring-boot. We are not counting spring-boot as a dependency.

We will try to remove the root package from the dependency list by the next release.