Count Services for Pending Membership Invitations & Membership Requests
Problem
Currently, the Web Client gather the total number of pending membership invitations and membership requests to show notification on Team tab.
Also, we discourage running count query against the database to fill PaginatedResult's totalNumberOfResult; and planned to replace the use of totalNumberOfResult with nextPageToken.
Proposed Solution
Since Membership Invitation and Membership Request data are stored in 2 different tables in the database, we proposed the following services:
Action | Method | URL | ResponseBody |
|---|---|---|---|
Retrieve the number of pending Membership Invitations | GET | /membershipInvitation/openInvitationCount | Count |
Retrieve the number of pending Membership Requests for teams that user is admin | GET | /membershipRequest/openRequestCount | Count |