-
Notifications
You must be signed in to change notification settings - Fork 136
Description
When I'm trying to invite a user in PROD to the customer team starting from @ it doesn't work. Though it works on DEV.
Also, if I invite the same user on PROD without @ it also works.
The reason for this, is that when we make a call to the member service to get user id by user handle we use the handle together with @:
https://api.topcoder.com/v3/members/_search/?fields=userId%2Chandle%2CphotoURL%2CfirstName%2ClastName%2Cdetails%2Cemail&query=handle%3A%40maxceem&limit=1
On PROD such requests returns nothing:
While if we send the same request without @:
https://api.topcoder.com/v3/members/_search/?fields=userId%2Chandle%2CphotoURL%2CfirstName%2ClastName%2Cdetails%2Cemail&query=handle%3Amaxceem&limit=1
it return one user as expected:
On DEV, though, even if we retrieve user with @:
https://api.topcoder-dev.com/v3/members/_search/?fields=userId%2Chandle%2CphotoURL%2CfirstName%2ClastName%2Cdetails%2Cemail&query=handle%3A%40maxceem&limit=1
we get the successful result:
Solution:
It looks like currently we have different versions of member service on PROD and on DEV.
Though to not depend on the member service we can fix this client side, by always sending handle without @ to the members service when searching for user id.


