Module: ActsAsPaginatedDiff

Included in:
Commit, Compare, ContextCommitsDiff
Defined in:
app/models/concerns/acts_as_paginated_diff.rb

Instance Method Summary collapse

Instance Method Details

#diffs_in_batch(_batch_page, _batch_size, diff_options:) ⇒ Object

Comparisons going back to the repository will need proper batch loading (gitlab.com/gitlab-org/gitlab/issues/32859). For now, we’re returning all the diffs available with no pagination data.



8
9
10
# File 'app/models/concerns/acts_as_paginated_diff.rb', line 8

def diffs_in_batch(_batch_page, _batch_size, diff_options:)
  diffs(diff_options)
end