seomoz/garb — pull request #1 by proby (2012-03-12 21:13:06+00:00)
Title: Profile feed fix

Can I get a code review on this?

Basically we found an agency user who has over 1000 GA profiles associated with it. GA has a limit of 1000 profiles returned per request. Right now when they attempt to connect a campaign to a GA account and that GA profile isn't in the first 1000 they get an error. We and the authors of Garb never imagined a scenario where we'd need to fetch more than 1000 profiles.

The fix is that if there are more results to fetch as denoted by a next page link in the response we get the next 1000 and add its parsed results to the previous set. Fixing this entirely in Garb prevents any changes from having to happen in CMoz.