ee/app/finders/geo/project_registry_finder.rb
# Find all registries that repository or wiki need verification
# @return [ActiveRecord::Relation<Geo::ProjectRegistry>] list of registries that need verification
Find all registries that repository or wiki need verification
Find all registries that repository or wiki need verification
def fdw_find_registries_to_verify(batch_size:)
      repo_condition =
        local_repo_condition
          .and(fdw_repository_state_table[:repository_verification_checksum].not_eq(nil))
      wiki_condition =
        local_wiki_condition
          .and(fdw_repository_state_table[:wiki_verification_checksum].not_eq(nil))
      Geo::ProjectRegistry
        .joins(fdw_inner_join_repository_state)
        .where(repo_condition.or(wiki_condition))
        .limit(batch_size)
    end
def fdw_find_registries_to_verify ( batch_size : ) repo_condition = local_repo_condition . and ( fdw_repository_state_table [ :repository_verification_checksum ] . not_eq ( nil ) ) wiki_condition = local_wiki_condition . and ( fdw_repository_state_table [ :wiki_verification_checksum ] . not_eq ( nil ) ) Geo :: ProjectRegistry . joins ( fdw_inner_join_repository_state ) . where ( repo_condition . or ( wiki_condition ) ) . limit ( batch_size ) end
Find all registries that repository or wiki need verification
Find all registries that repository or wiki need verification
list of registries that need verification
list of registries that need verification
ActiveRecord::Relation<Geo::ProjectRegistry>
batch_size
<not_specific>