Skip to content

Allow member list to be sorted by last_active_at

Anthony Shull requested to merge as/feat/773/track-user-activity into develop

Visit /projects/1/members. You will see one member. So, add some more:

%> user = FactoryBot.create(:user)
%> user.add_role(:member, Project.first)
%> user = FactoryBot.create(:user)
%> user.add_role(:member, Project.first)

Visit /projects/1/members again and you'll see three members. The one with the highest id will be listed first. This is because the default sort is for the last_active_at to be the latest. Visit /projects/1/members?sort=oldest and you will see the sort order changed. User id 1 will be first because it's the oldest.

Closes https://gitlab.com/JOGL/JOGL/-/issues/773

Edited by Anthony Shull

Merge request reports