-
Notifications
You must be signed in to change notification settings - Fork 136
Description
When we invite Topcoder or Project Team members, there are various reasons why members couldn't be invited.
Actual Bahiour
Now we always show very general error alert YOU ARE UNABLE TO INVITE MEMBERS SUCCESSFULLY.
Expected Bahiour
It could be helpfull to see the exact reason why we cannot invite a member. Server usually retuns the exact error reason why we cannot invite a particular member which we can show instead of a general error message.
Steps to reproduce
For example. I'm trying to invite pshash_customer user as a Manager:
pshah_customer doesn't have enough rights to be a Manager, so server rejects inviting him and we see the next error:
While server returns the next response:
{
"id": "21e38f17-cc41-41bf-9979-77af23705516",
"result": {
"success": false,
"status": 403,
"content": {
"message": "40152922 cannot be added with a Manager role to the project"
},
"debug": "..."
}
}So we can show the particular error meesage 40152922 cannot be added with a Manager role to the project.
Note
It would be better to also update project service to use in the error message the data we typed into the fieled. Like if we add user by handle @pshah_customer server should format error message using handle @pshah_customer cannot be added with a Manager role to the project. If we invited user using email like pshah_customer@topcoder.com, server should format error message using email: pshah_customer@topcoder.com cannot be added with a Manager role to the project.
@RishiRajSahu what do you think?

