chaoss / grimoirelab-elk

GNU General Public License v3.0
60 stars 121 forks source link

[enriched/githubql] Update references in related indexes #941

Closed mafesan closed 4 years ago

mafesan commented 4 years ago

The cross reference study now accepts a list of related ES aliases or indices to be updated with the obtained references between GitHub issues and Pull Requests, for all the elements identified by a given issue_url.

E.g., github_issues alias, which points to the corresponding enriched indexes from GitHub issues. Note that if the referenced aliases or indexes do not contain the issue_url field, the affected elements can't be updated.

This is an example about how the setup.cfg has to be updated:

[githubql]
...
studies = [..., enrich_reference_analysis]

[enrich_reference_analysis]]
aliases_update = [github_issues, github2_issues, github2_pull_requests]

The affected index patters have been updated in this PR: https://github.com/chaoss/grimoirelab-sigils/pull/476

Note: as soon as this PR and https://github.com/chaoss/grimoirelab-sigils/pull/476 get merged, the index pattern for github_issues has to be updated to include the field issue_url, after the changes from https://github.com/chaoss/grimoirelab-elk/pull/942.