Closed Bug 1787294 Opened 3 years ago Closed 3 years ago

Allow optional tolerance in the /rest/user endpoint when querying users that are not exist

Categories

(bugzilla.mozilla.org :: API, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

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.

Attached file GitHub Pull Request
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: