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

Change: Use new report generation for delta report #2095

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

a-h-abdelsalam
Copy link
Contributor

@a-h-abdelsalam a-h-abdelsalam commented Oct 12, 2023

What

Add new report generation for delta reports. The new report generation is enabled by changing the setting of "Delta Reports Version" to 2.
The new delta report generation gets the results for both reports in a single iterator instead of using two iterators.
It also changes how the "new" and "gone" status are determined by considering the first report the recent one and the delta report the older one and considering results with only changed severity, QoD or hostname as "changed" instead of "new" and "gone".
The result port "package" is handled the same as "general/tcp" for the delta comparison.

Why

The old version of delta report generation was based on the sort order which was not reliable.
The change in "new" and "gone" status was done to make it more consistent with how Alerts handle delta reports.
The port handling was adjusted so Notus results are not shown as "new"/"gone" when compared to a report without Notus.

References

General improvements:

  • GEA-320
  • GEA-319

Comparison handling:

  • GEA-317
  • GEA-206

@github-actions
Copy link

github-actions bot commented Oct 12, 2023

Conventional Commits Report

Type Number
Changed 2

🚀 Conventional commits found.

@bjoernricks
Copy link
Contributor

Hi, could you describe how the new diff report behaves in contrast to the old one?

…tion

- Treat "package" and "general/tcp" the same for delta comparison
- Ensure results are included in delta reports if nvts are missing
@a-h-abdelsalam a-h-abdelsalam marked this pull request as ready for review October 17, 2023 13:23
@a-h-abdelsalam a-h-abdelsalam enabled auto-merge (squash) October 17, 2023 13:24
@a-h-abdelsalam a-h-abdelsalam enabled auto-merge (rebase) October 17, 2023 13:27
@a-h-abdelsalam a-h-abdelsalam merged commit b06952f into main Oct 19, 2023
9 checks passed
@a-h-abdelsalam a-h-abdelsalam deleted the delta-reports-v2 branch October 19, 2023 09:16
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.

3 participants