django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

Wrong Date in Finding Metrics

Open italvi opened this issue 2 years ago • 0 comments

Be informative The closed date in the metrics is not the closed date but the date of the issue/bug.

Bug description When closing a issue the closed date under "Findings->Closed Findings" is correct but when looking at the metrics the diagram shows that 0 findings were closed. When filtering for older metrics the closed issue can be found with the close date being the date of finding. The same applies to e.g. Risk-Accept-Agreements.

Steps to reproduce Steps to reproduce the behavior:

  1. Open a new issue with an older date, e.g. March 09 image
  2. Close the issue or make a risk accept agreement with today date image
  3. Look at metrics and you will see that 0 findings were closed or risk accepted image
  4. Change the filter for the metrics so the date of point 1 is covered and apply it
  5. Now you can see that one finding was closed or the risk was agreed on with the date of the finding used in 1. image

Expected behavior The closed date or date when the agreement was made should be used and not the date when the finding was found.

Deployment method (select with an X)

  • [ ] Docker Compose
  • [X ] Kubernetes
  • [ ] GoDojo

Environment information

  • DefectDojo version 2.9.1

italvi avatar Apr 29 '22 13:04 italvi