-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enriched/githubql] Fix enrich_reference_analysis study
This code fixes the `enrich_reference_analysis` study that only processed the first 10 references instead of all of them. By default, the ElasticSearch/OpenSearch `aggregations` query only returns the first 10 documents. Using `composite aggregations` we can paginate the result to get all the references. Signed-off-by: Quan Zhou <[email protected]>
- Loading branch information
Showing
2 changed files
with
90 additions
and
58 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
11 changes: 11 additions & 0 deletions
11
releases/unreleased/the-enrich_reference_analysis-study-process-all-references.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: All references processed for the reference analysis study | ||
category: fixed | ||
author: Quan Zhou <[email protected]> | ||
issue: null | ||
notes: > | ||
The `enrich_reference_analysis` study analyzes the cross-references | ||
between "issues" and "pull request". When we use an aggregations query, | ||
it returns only the first 10 items (ElasticSearch/OpenSearch by default). | ||
By using 'composite aggregations', we can paginate the result and thus, | ||
obtain all the references. |