Fix groups dashboard inactive tab

What does this MR do and why?

Fix the groups json endpoint from failing when passing active=false and a sort parameter. This is caused by keyset's pagination inability to process a list properly if we don't select the sort column.

Instead of just selecting the id, we would now select everything to handle any sorting column available.

References

Related to #599130 (closed)

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Set the default page size in config/initializers/kaminari_config.rb to 1. Run gdk restart.
  2. Ensure you have at least 2 group that is scheduled for deletion or archived.
  3. Go to http://localhost:3000/dashboard/groups/inactive.

MR acceptance checklist

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

Related to #599130 (closed)

Edited by Shane Maglangit

Merge request reports

Loading