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

Inconsistency between the dashboard and the last 7 days filter #11541

Open
1 of 3 tasks
Roubiox opened this issue Jan 10, 2025 · 0 comments
Open
1 of 3 tasks

Inconsistency between the dashboard and the last 7 days filter #11541

Roubiox opened this issue Jan 10, 2025 · 0 comments
Labels

Comments

@Roubiox
Copy link

Roubiox commented Jan 10, 2025

Slack us first!
The easiest and fastest way to help you is via Slack. There's a free and easy signup to join our #defectdojo channel in the OWASP Slack workspace: Get Access.
If you're confident you've found a bug, or are allergic to Slack, you can submit an issue anyway.

Be informative
In the dashboard, the search with filter, if we set the filter to the last 7 days, it takes into account the last 7 days as well as today. Whereas in the dashboard, the "last 7 days" card takes into account the last 6 days and today. There is an inconsistency problem because when we click on the card, we use the search filter, so there is a one-day gap between what the card displays and the result obtained by the search.

Bug description
incorrect value in the file "dojo/home/views.py" at line 36.
Replace: date_range = [today - timedelta(days=6), today]
With: date_range = [today - timedelta(days=7), today]

To be consistent with the filter. Filter: "dojo/filters.py" | line: 830 | function: past_x_days()

Expected behavior
A clear and concise description of what you expected to happen.

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: [e.g. Ubuntu 18.04]
  • DefectDojo version (see footer) or commit message: [use git show -s --format="[%ci] %h: %s [%d]"]

Logs
Use docker compose logs (or similar, depending on your deployment method) to get the logs and add the relevant sections here showing the error occurring (if applicable).

Sample scan files
If applicable, add sample scan files to help reproduce your problem.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context (optional)
Add any other context about the problem here.

@Roubiox Roubiox added the bug label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant