• Yorick Peterse's avatar
    Handle missing merge data for QA issues · eeecb61b
    Yorick Peterse authored
    Sometimes the "merged by" data for an MR is not available, even when
    merged. This can happen when (for some reason) data in the
    "merge_request_metrics" table for an MR is not present. How and when
    this happens is not clear at this time, but it happened for the
    following two MRs:
    1. gitlab-ce!27424
    2. gitlab-ce!27400
    For the first one I fixed the data manually, but I left the second one
    When this happens, we now fall back to mentioning the assignee (usually
    also the person that merges the MR), or the author if both the merger
    and assignee were not present.
    Fixes #287
username_extractor_spec.rb 2.44 KB