greenbone / gsa

Greenbone Security Assistant - The web frontend for the Greenbone Community Edition
GNU Affero General Public License v3.0
219 stars 97 forks source link

fix: filtering error on first render for create display #4200

Closed daniele-mng closed 2 weeks ago

daniele-mng commented 3 weeks ago

What

Updated the usePageFilter hook. Introduced useRef and useState to manage the returnedFilter to avoid directly modifying the redux store.

Why

Checklist

github-actions[bot] commented 3 weeks ago

Dependency Review

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

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 304fa57adcf2f156cbeee475871b58083ec24e3e.

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.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

github-actions[bot] commented 3 weeks ago

Conventional Commits Report

Type Number
Bug Fixes 1

:rocket: Conventional commits found.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.68%. Comparing base (4058a79) to head (304fa57). Report is 2 commits behind head on opensight-ui.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## opensight-ui #4200 +/- ## ============================================= Coverage 62.67% 62.68% ============================================= Files 1111 1111 Lines 98807 98824 +17 Branches 6497 6500 +3 ============================================= + Hits 61931 61948 +17 Misses 36745 36745 Partials 131 131 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.