Skip to content

Remove onReportImportError handler from TaskComponent#5407

Merged
greenbonebot merged 1 commit into
mainfrom
remove-import-error-callback
Jul 10, 2026
Merged

Remove onReportImportError handler from TaskComponent#5407
greenbonebot merged 1 commit into
mainfrom
remove-import-error-callback

Conversation

@bjoernricks

Copy link
Copy Markdown
Contributor

What

Remove onReportImportError handler from TaskComponent

Why

Setting the onReportImportError handler may result in an unexpected behavior of the ReportImportDialog because it would close despite of an error occurred and maybe no error is displayed. Therefore it is better to always let the dialog handle and display the error by removing the callback prop completely.

Setting the onReportImportError handler may result in an unexpected
behavior of the ReportImportDialog because it would close despite of
an error occurred and maybe no error is displayed. Therefore it is
better to always let the dialog handle and display the error by removing
the callback prop completely.
@bjoernricks bjoernricks requested a review from a team as a code owner July 10, 2026 11:41
@greenbonebot greenbonebot enabled auto-merge (rebase) July 10, 2026 11:41
@github-actions

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 1fc2a7b.
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

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.95%. Comparing base (09ec59b) to head (1fc2a7b).

Files with missing lines Patch % Lines
src/web/pages/tasks/TaskComponent.tsx 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5407      +/-   ##
==========================================
- Coverage   80.95%   80.95%   -0.01%     
==========================================
  Files        1269     1269              
  Lines       33070    33071       +1     
  Branches     9941     9897      -44     
==========================================
  Hits        26771    26771              
- Misses       5617     5618       +1     
  Partials      682      682              

☔ 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.

@greenbonebot greenbonebot merged commit 741b318 into main Jul 10, 2026
25 of 27 checks passed
@greenbonebot greenbonebot deleted the remove-import-error-callback branch July 10, 2026 11:54
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