lib/release_tools/security/mirrors.rb
def canonical_projects
        @canonical_projects ||= Parallel.map(security_projects) do |project|
          # rubocop:disable Style/RedundantBegin
          begin
            @client.project(project.forked_from_project.id)
          rescue ::Gitlab::Error::Error => ex
            logger.warn(
              'Failed to fetch Canonical project',
              project: project.forked_from_project.path_with_namespace,
              error: ex.message
            )

            nil
          end
          # rubocop:enable Style/RedundantBegin
        end.compact
      end
# Given Security projects, fetch attributes for their Canonical projects
Given Security projects, fetch attributes for their Canonical projects
Given Security projects fetch attributes for their Canonical projects
def canonical_projects
        @canonical_projects ||= Parallel.map(security_projects) do |project|
          begin
            @client.project(project.forked_from_project.id)
          rescue ::Gitlab::Error::Error => ex
            logger.warn(
              'Failed to fetch Canonical project',
              project: project.forked_from_project.path_with_namespace,
              error: ex.message
            )
            nil
          end
        end.compact
      end
def canonical_projects @canonical_projects ||= Parallel . map ( security_projects ) do | project | begin @client . project ( project . forked_from_project . id ) rescue :: Gitlab :: Error :: Error => ex logger . warn ( 'Failed to fetch Canonical project' , project : project . forked_from_project . path_with_namespace , error : ex . message ) nil end end . compact end
Given Security projects, fetch attributes for their Canonical projects
Given Security projects fetch attributes for their Canonical projects
# rubocop:disable Style/RedundantBegin # rubocop:enable Style/RedundantBegin