This PR updates the role assignment module to utilize the new matchRoles project instead of fetching roles directly from Supabase. The main changes include:
Removal of Supabase Dependencies:
The getSubscriberRoles method has been replaced by a call to the new FastAPI service endpoint.
Addition of FastAPI Request:
A FastAPI endpoint (FASTAPI_ENDPOINT) has been introduced to obtain roles based on the subscriber's skills.
Conditional Role Handling:
If the subscriber has skillsId, the function makes a request to FastAPI to get roles based on the provided skills and languages.
If the subscriber does not have skillsId, the top40Roles method is used to retrieve a default set of roles.
This PR updates the role assignment module to utilize the new matchRoles project instead of fetching roles directly from Supabase. The main changes include:
Removal of Supabase Dependencies:
The getSubscriberRoles method has been replaced by a call to the new FastAPI service endpoint. Addition of FastAPI Request:
A FastAPI endpoint (FASTAPI_ENDPOINT) has been introduced to obtain roles based on the subscriber's skills. Conditional Role Handling:
If the subscriber has skillsId, the function makes a request to FastAPI to get roles based on the provided skills and languages. If the subscriber does not have skillsId, the top40Roles method is used to retrieve a default set of roles.