Closed
Bug 1214304
Opened 10 years ago
Closed 10 years ago
API v2 search by group AND email results all users
Categories
(Participation Infrastructure :: Phonebook, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: peterbe, Assigned: nemo-yiannis)
References
Details
When I do a search like this:
https://mozillians.org/api/v2/users/?group=air+mozilla+contributors&api-key=XXXXXX&username=a-buck
or
https://mozillians.org/api/v2/users/?group=air+mozilla+contributors&api-key=XXXXXXX&email=peterbe%40mozilla.com
I'd expect it to return the mutual exclusive. I.e. users who are part of that mentioned group AND (have that email or username).
Instead it returns ALL users of that group ignoring my `email=...` or `username=...`
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jgiannelos
Comment 1•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/mozillians
https://github.com/mozilla/mozillians/commit/0deba8571a186aa9eb3d0cec371c17539a3fb260
[Fix bug 1214304] Fix queryset in MethodFilter filters.
https://github.com/mozilla/mozillians/commit/012680d91430cfe5e940d7555401304db7a5bbf1
Merge pull request #1257 from johngian/1214304-api-v2-results
[Fix bug 1214304] Fix queryset in MethodFilter filters.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Version: other → next
Reporter | ||
Comment 2•10 years ago
|
||
Is there a way I can track or be informed when this reaches prod?
Assignee | ||
Comment 3•10 years ago
|
||
I will update the bug. This will most probably go on prod tomorrow morning UTC.
Assignee | ||
Comment 4•10 years ago
|
||
Verified on stage:
Tried this query on stage:
https://mozillians.allizom.org/api/v2/users/?group=<group_name>&email=<email_address>
Returns exactly one user (with email <email_address>) if user is member of group <group_name> else no users.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•10 years ago
|
Version: next → 2014-10.1
Assignee | ||
Comment 5•10 years ago
|
||
:peterbe
This fix is live on prod.
Thank you for reporting that!
Reporter | ||
Comment 6•10 years ago
|
||
It works! Yay!
You need to log in
before you can comment on or make changes to this bug.
Description
•