Skip to content

Refactor component usage create service; add error tracking

Leaminn Ma requested to merge refactor-ci-component-usage-service-add-error into master

What does this MR do and why?

This MR is a follow up to the service class created in !148216 (diffs).

  • Refactored Ci::Compnents::Usages::CreateService to reduce a small amount of code.
  • Added Sentry error tracking when an unexpected validation error occurs.

Resolves #460490 (closed) and #460776 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

(Optional) You can follow the same validation steps in !148216 (merged) to ensure the service behaviour hasn't changed.

Related to #460490 (closed)

Edited by Leaminn Ma

Merge request reports