Allow optional tolerance in the /rest/user endpoint when querying users that are not exist
Categories
(bugzilla.mozilla.org :: API, enhancement)
Tracking
()
People
(Reporter: suhaib, Assigned: dkl)
Details
Attachments
(1 file)
When querying users by ids
or names
. The request will return an error if one of the users is invalid. Example: https://bugzilla.mozilla.org/rest/user?names=botond%40mozilla.com&names=jwatt%40jwatt.org&names=hikezoe.birchill%40mozilla.com&names=atila.butkovits%40softvision.com&names=pbone%40mozilla.com&names=nalexander%40mozilla.com&names=m_kato%40ga2.so-net.ne.jp
While this behaviour is good in most cases; failing the whole request is not the desired behaviour in some use cases.
In the context of https://github.com/mozilla/relman-auto-nag/issues/1609, we need to detect invalid users. Thus, it would be great if we could have an option to tolerate invalid users by ignoring them (e.g. ignore_inavlid=true
). In this way, we could identify invalid users on the client side.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Description
•