Skip to content

Add backend pagination to group applications

Related to #486106 (closed)

What does this MR do and why?

Adds backend pagination to group applications to replace the original limit of 100 per page.

Steps To Validate

  1. Clone and checkout this branch
  2. Create a group
  3. Settings -> Applications -> Create an application

Run the following in the gdk rails console

# Create more than 20 groups to test max pagination limit
# Should show GroupApp22 to GroupApp23

group = Group.find_by(name: 'Enter your group name')

22.times do |i|
  Doorkeeper::Application.create!(
    name: "GroupApp#{i + 1}",
    owner: group,
    redirect_uri: 'https://tanuki.com/',
    scopes: 'api',
    confidential: true
  )
  puts "Created GroupApp#{i + 1}"
end
# Cleanup
group = Group.find_by(name: 'Enter your group name')
Doorkeeper::Application.where(owner: group).delete_all

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

After
486106-pagination_added
Edited by Hakeem Abdul-Razak

Merge request reports

Loading