Skip to content

Refactored the error message parser in frontend

Denys Mishunov requested to merge dmishunov/error-utility-refactoring into master

What does this MR do and why?

This is just a refactoring of the error message parser introduced in Enhance Security Configuration Error Handling i... (!112193 - merged) to simplify handling of the error messages and avoid passing unnecessary userFacing prop when parsing an error message.

Screenshots or screen recordings

No visual changes

How to reproduce locally

  1. Create an empty repository (not even a readme-file)
  2. Go to Security & Compliance-> Security Configuration
  3. In Static Application Security Testing (SAST) block, click "Configure with a merge request" button.

Screenshot_2023-03-21_at_09.55.37

  1. A flash with the error message should be rendered

Screenshot_2023-03-21_at_09.59.32

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Relates to: #386854 (closed)

Edited by Denys Mishunov

Merge request reports

Loading