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

Fix issue with double counting in findings trends graph #307

Merged
1 commit merged into from
May 17, 2023
Merged

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2023

Description

This commit fixes an issue where the queries building the data for the findings trends graph accidentily counted some findings twice by filtering on a range instead of the specific point in time shown on the graph.

The implementation (backend and UI) for the widget has been changed to generate and handle a list of specific times between the start and endtimes requested instead of small ranges, and then calculate the findings count for that specific point in time.

Type of Change

[X] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@ghost ghost self-requested a review as a code owner May 10, 2023 12:34
@ghost ghost force-pushed the finding_trends_fix branch from 536cf86 to 74eb268 Compare May 10, 2023 12:58
@FrimIdan
Copy link
Member

lgtm, I will let @galiail approve the ui changes

@ghost ghost force-pushed the finding_trends_fix branch from 74eb268 to 9ca1912 Compare May 17, 2023 10:31
This commit fixes an issue where the queries building the data for the
findings trends graph accidentily counted some findings twice by
filtering on a range instead of the specific point in time shown on the
graph.

The implementation (backend and UI) for the widget has been changed to
generate and handle a list of specific times between the start and
endtimes requested instead of small ranges, and then calculate the
findings count for that specific point in time.
@ghost ghost force-pushed the finding_trends_fix branch from 9ca1912 to 972f78d Compare May 17, 2023 11:52
@ghost ghost added this pull request to the merge queue May 17, 2023
Merged via the queue into main with commit 5d65dc6 May 17, 2023
@ghost ghost deleted the finding_trends_fix branch May 17, 2023 14:13
This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

3 participants