-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Request number of page views from GA in batches
We were sending a list of all of the content items in an organisation to Google Analytics and requesting the number of page views for them all. This is ok for organisations with a smaller number of content items, but for organisations with content items in the tens of thousands, the request fails. To fix this, the request to GA has been wrapped in a batch. The batch size has been hard-coded to 1 to get the test to pass, but will made to be configurable in the next commit. Remove unnecessary assignment in the existing test. Assigning content items to the organisation does affect the outcome of the test, so it has been removed.
- Loading branch information
1 parent
fd585fc
commit 614c4dc
Showing
2 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters