You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
During working on the TaaS API we came across with the next issue.
If we make a request with enrich=true everything works well, for example https://api.topcoder-dev.com/v5/users?enrich=true&externalProfile.organizationId=36ed815b-3da1-49f1-a043-aaed0a4e81ad&externalProfile.externalId=40159127 returns an array with one user
but if we are making the same request without enrich, then U-bahn endpoint returns some random array of multiple users instead of the required user, I guess it doesn't filter result by externalId in such case, for example URL https://api.topcoder-dev.com/v5/users?enrich=false&externalProfile.organizationId=36ed815b-3da1-49f1-a043-aaed0a4e81ad&externalProfile.externalId=40159127 returns
I suggest returning an explicit error when the user tries to filter by externalProfile but enrich !== true. As most likely user would get in response not what they are expecting.
Context
During working on the TaaS API we came across with the next issue.
enrich=true
everything works well, for examplehttps://api.topcoder-dev.com/v5/users?enrich=true&externalProfile.organizationId=36ed815b-3da1-49f1-a043-aaed0a4e81ad&externalProfile.externalId=40159127
returns an array with one userenrich
, then U-bahn endpoint returns some random array of multiple users instead of the required user, I guess it doesn't filter result byexternalId
in such case, for example URLhttps://api.topcoder-dev.com/v5/users?enrich=false&externalProfile.organizationId=36ed815b-3da1-49f1-a043-aaed0a4e81ad&externalProfile.externalId=40159127
returnsSuggestion
I suggest returning an explicit error when the user tries to filter by
externalProfile
butenrich !== true
. As most likely user would get in response not what they are expecting.References
We almost missed this difference in behavior and only QA caught it, see topcoder-platform/taas-apis#154 (comment)
The text was updated successfully, but these errors were encountered: