Skip to content

Add sorting/filtering/paging to CRM organizations

Lee Tickett requested to merge 2256-improve-organization-list-ui into master

What does this MR do and why?

This MR is almost identical to the CRM contacts list revamp just merged over in !95408 (merged)

This MR adds searching, paging and moves sorting from client-side to server-side for the CRM organization list.

The backend changes have just been merged, but because the feature is minimally used at present, we shouldn't need to wait for the next release to drop the frontend changes.

Screenshots or screen recordings

improve-organization-list

How to set up and validate locally

You'll need a group with CRM enabled and some organizations (ideally active and inactive)- see docs. If you've recently reseeded your GDK you should already have some.

Otherwise, you should be able to do something like this from rails:

FactoryBot.create_list(:organization, 220, group: Group.find(31), state: 'inactive')

Visit the group organization list and try searching, sorting and filter (switching tabs).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #2256

Edited by Lee Tickett

Merge request reports