Skip to content

Fix displaying errors if creating a credential in alert dialog fails#5301

Merged
greenbonebot merged 1 commit into
mainfrom
fix-alert-credential-create-errors
May 19, 2026
Merged

Fix displaying errors if creating a credential in alert dialog fails#5301
greenbonebot merged 1 commit into
mainfrom
fix-alert-credential-create-errors

Conversation

@bjoernricks
Copy link
Copy Markdown
Contributor

What

Fix displaying errors if creating a credential in alert dialog fails

Why

Return a promise from the create credential function instead of passing the error as prop. The prop error was not forwarded to the SaveDialog.

@bjoernricks bjoernricks requested a review from a team as a code owner May 19, 2026 13:46
@greenbonebot greenbonebot enabled auto-merge (rebase) May 19, 2026 13:46
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

Dependency Review

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

Snapshot Warnings

⚠️: No snapshots were found for the head SHA df034ff.
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

@bjoernricks bjoernricks force-pushed the fix-alert-credential-create-errors branch from 76db3f0 to 0a7b9b6 Compare May 19, 2026 13:51
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.00%. Comparing base (9d8e8df) to head (df034ff).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/web/pages/alerts/AlertComponent.jsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5301   +/-   ##
=======================================
  Coverage   78.99%   79.00%           
=======================================
  Files        1216     1216           
  Lines       32074    32070    -4     
  Branches     9583     9543   -40     
=======================================
- Hits        25337    25336    -1     
+ Misses       6030     6027    -3     
  Partials      707      707           

☔ View full report in Codecov by Sentry.
📢 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 a promise from the create credential function instead of passing
the error as prop. The prop error was not forwarded to the SaveDialog.
@bjoernricks bjoernricks force-pushed the fix-alert-credential-create-errors branch from 0a7b9b6 to df034ff Compare May 19, 2026 14:39
@greenbonebot greenbonebot merged commit bbd567a into main May 19, 2026
21 of 22 checks passed
@greenbonebot greenbonebot deleted the fix-alert-credential-create-errors branch May 19, 2026 14:50
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