Project

General

Profile

Sub-Task #309

Updated by Bricklou 20 days ago

Technical specification of how the member list of a group, so that group gets the page needs a single request. names and avatars of its members. 

 * `GET /api/v1/groups/{id}/members` returns a page of members. Each member carries returns, for each member, the user (id, username, username and the avatar address), when they were added, address, and who added them (id and username, or nothing). 
 * The list is paginated, and can be searched by the username and sorted by username or by date of addition, like the other server-driven lists. whoever added them. 
 * The route assembles the members them with the user directory service. The group feature keeps working with user ids only. 
 * The right to read the groups is enough to see the names of their members. 
 * An account Accounts that is are no longer in service keeps its keep the id as its name. their name, as the page does today. 
 * The dashboard shows the list with its server-driven table and no longer calls `POST /api/v1/users/lookup` for to show the members of a group. 

 Acceptance criteria: 

 * [ ] The member list of a group is loaded with one request, one page at a time. request. 
 * [ ] Each member shows their avatar, or their initials, and their username. 
 * [ ] The date of addition and the username of who added them are shown. 
 * [ ] The list can be searched and sorted from the page. "added by" column shows a username, not an id. 
 * [ ] Reading the groups is enough: no other right is asked to see the names. 
 * [ ] Every case is covered by a test, with a real database.

Back