Skip to content

Fix Delta Reports#5400

Open
bjoernricks wants to merge 2 commits into
mainfrom
fix-delta-reports
Open

Fix Delta Reports#5400
bjoernricks wants to merge 2 commits into
mainfrom
fix-delta-reports

Conversation

@bjoernricks

@bjoernricks bjoernricks commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What

Fix Delta Reports

Parse and use the results from the <get_report/> response again for delta reports. This was removed while refactoring the report details for the multi requests.

Why

Loading the results via <get_results/> doesn't work for delta reports. The returned data doesn't contain the delta information and won't display the expected data.

References

https://jira.greenbone.net/browse/GEA-1903
https://jira.greenbone.net/browse/GEA-1856
https://jira.greenbone.net/browse/GEA-1904
https://jira.greenbone.net/browse/GEA-1906

Checklist

  • Tests

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA a06651d.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

Use consistent naming for delta report components, convert to TypeScript
and adapt types. Don't load the delta results via `<get_results/>` and
instead use the results from the report report. It's not possible to get
deltas via `<get_results/>`.
Re-introduce the parsing of the report report results which contain the
results with delta information required to display the delta. Using the
results from `<get_results/>` doesn't work for delta results because
the delta information is not available.
@bjoernricks bjoernricks marked this pull request as ready for review July 3, 2026 12:24
@bjoernricks bjoernricks requested a review from a team as a code owner July 3, 2026 12:24
@bjoernricks bjoernricks enabled auto-merge (rebase) July 3, 2026 12:24
@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.63%. Comparing base (c1f2bff) to head (a06651d).

Files with missing lines Patch % Lines
.../reports/details/ReportDetailsPageToolBarIcons.tsx 75.00% 2 Missing ⚠️
src/gmp/models/report/parser.ts 94.44% 1 Missing ⚠️
...rc/web/pages/reports/DeltaReportDetailsContent.tsx 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5400      +/-   ##
==========================================
+ Coverage   80.62%   80.63%   +0.01%     
==========================================
  Files        1268     1268              
  Lines       33063    33086      +23     
  Branches     9921     9937      +16     
==========================================
+ Hits        26656    26678      +22     
  Misses       5718     5718              
- Partials      689      690       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


return new CollectionCounts({
first: resultsElement._start,
rows: resultCountElement?.filtered,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should rows use resultsElement._max here?

rows is the page size, while filtered is the total number of matching results. Using filtered may cause the Previous button to stay disabled on later pages.

Suggested change
rows: resultCountElement?.filtered,
rows: resultsElement._max,

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.

2 participants