• Sean McGivern's avatar
    Reduce queries needed for CI artifacts in MR widget · 0c8e707b
    Sean McGivern authored
    While the individual queries here are reasonable, these methods are only called
    together: so we always call `sast_artifact`, `dependency_scanning_artifact`,
    etc. in the same request, and always for the merge request widget.
    
    That means that we can save a few queries by just getting the artifacts once,
    and filtering in Ruby.
    0c8e707b
build.rb 2.93 KB