Draft: Improve ROP error track handling

What does this MR do and why?

This is a follow-up to Add workspace creation event and metrics (!188226 - merged) • zli • 18.1, which refactors how the "error track" is handled in the ROP pattern, and the spec/support/matchers/invoke_rop_steps.rb rspec custom matchers.

The crux of the change is that the err track should also have a Hash context value passed along, which must contain only two keys:

  1. message: which contains a Gitlab::Fp::Message
  2. context: which passes along the original context from the ok track.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

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

Merge request reports

Loading