Closed
Bug 1478540
Opened 7 years ago
Closed 7 years ago
Update User.pm to load more than 100 users by using the paging functionality of Conduit API
Categories
(bugzilla.mozilla.org :: Phabricator Integration, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dkl, Assigned: dkl)
Details
Attachments
(1 file)
I have figure out that the reason that group syncing has not been working as designed as the Conduit API has a 100 entry limit for Conduit API requests. If more than 100 results are desired, you have to make multiple API calls, getting 100 results each time and then combining into a full list.
https://github.com/phacility/phabricator/blob/master/src/applications/search/engine/PhabricatorSearchEngineAPIMethod.php#L519
Comment 1•7 years ago
|
||
Do you need the full list at once, or could you make match() return an iterator?
| Assignee | ||
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Dylan Hardison [:dylan] (he/him) from comment #1)
> Do you need the full list at once, or could you make match() return an
> iterator?
right now i was working under the assumption that any calling code will assume that all matching results will always be returned no matter how many.
If the calling code wanted all results, it would have to be smart enough to keep making calls til all results are gathered. Right now none of the PhabBugz code works in that way and just needs everything. So I thought better to just put the login in one place for now, User->match().
| Assignee | ||
Comment 4•7 years ago
|
||
This patch also fixed the call to diff_arrays where the values are arguments were in the wrong order.\
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•