Skip to content

Invitation of users with @ doesn't work PROD #3347

@maxceem

Description

@maxceem

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:

image

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:

image

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:

image

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions