openedx / edx-enterprise

GNU Affero General Public License v3.0
43 stars 46 forks source link

Feat: Adding Enterprise-Customer-Support endpoint #2177

Closed pmakwana93 closed 1 month ago

pmakwana93 commented 1 month ago

Adding Enterprise-Customer-Support endpoint to consolidate data from various API endpoints JIRA: https://2u-internal.atlassian.net/browse/ENT-9183

This endpoint will be used in the Customer Support Tool to display information in the users table we need data for admins, pending admins, learners and pending learners. This is a replacement endpoint in lieu of using 4 existing endpoints:

A valid enterprise customer UUID needs to be passed in as endpoint input as per: enterprise/api/v1/enterprise-customer-support/5368db2a-5faf-48a7-99d2-f2e9b5e0fc6f

NOTE: Filtering and Sorting functionality will be added in a separate PR and ticket

Testing:

  1. Testing Admin Enterprise Customer User:

    Enterprise Admin
  2. Testing Non-Admin Enterprise Customer User:

    Enterprise Non Admin
  3. Testing Pending Admi Enterprise Customer User:

    Pending Admin
  4. Testing Pending Non-Admin Enterprise Customer User:

    Pending Non Admin
  5. Testing Admin + Pending Admin Enterprise Customer User:

    Enteprise + Pending
  6. Testing Paginated Response (response count is set to 8 objects per page)

    Paginated Response

Merge checklist:

Post merge: