Skip to content

Story: Membership Leaderboard #232

@Phoenixxo

Description

@Phoenixxo

Membership Leaderboard

As a user, I want to see a list of users sorted by memberships, so that I can see who has the most memberships.

Definition of Done

  • Acceptance criteria defined
  • Solution tasks specified
  • Feature branch created
  • Unit tests written (on API code only for now)
  • Solution passes full suite of unit tests
  • Design documents updated if needed
  • Pull request created
  • Code is reviewed
  • Code is merged to develop branch
  • Tests pass on CI
  • Deployed to staging environment
  • Acceptance criteria is met

Acceptance Criteria

  • Given a membership leaderboard, when it is rendered, then it will show all users with memberships in descending order by count
  • Given an officer views the membership leaderboard, when an officer goes to add a membership then an modal will be available to add a membership for a user
  • Given an officer goes to add a membership for a user, when they attempt to enter the user information then autocomplete will show up to give them a list of users to choose from
  • Given an officer goes to add a membership for a user, when they attempt to enter the user information and click save then a POST request should be sent and the data should persist in the database.

Solution Tasks

  • Add memberships to schema, with fields for userId, reason, and timeGiven
  • A new, separate page is created which is solely for the memberships leaderboard
  • The leaderboard component is created separately
  • Users can see the membership leaderboard
  • The leaderboard shows all members in descending order based on membership count
  • Add modal for adding memberships
  • Update user API to support searching with a query based on name or email
  • Ensure responsive design

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions