IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit 1fd6c283 authored by Emi Simpson's avatar Emi Simpson
Browse files

[bug] Synchronize index names between config and analytics module

parent 38c1ed56
......@@ -119,7 +119,7 @@ class CommitsByAuthor(Query[List[str], Dict[str, int]]):
"""
@staticmethod
def perform_query(es: Elasticsearch, args: List[str]) -> Dict[str, int]:
results: _QueryResult = es.search(index="git_demo_enriched", body = {
results: _QueryResult = es.search(index="git_enriched", body = {
'size': 0,
"query": {
"bool": {
......@@ -159,7 +159,7 @@ class CommitsByDate(Query[List[str], Dict[str, int]]):
"""
@staticmethod
def perform_query(es: Elasticsearch, args: List[str]) -> Dict[str, int]:
results: _QueryResult = es.search(index="git_demo_enriched", body = {
results: _QueryResult = es.search(index="git_enriched", body = {
'size': 0,
"query": {
"bool": {
......@@ -202,7 +202,7 @@ class IssuesByOpenTime(Query[List[str], Dict[float, int]]):
@staticmethod
def perform_query(es: Elasticsearch, args: List[str]) -> Dict[float, int]:
DEGREE: int = 2
results: _QueryResult = es.search(index="github_issues,gitlab", body = {
results: _QueryResult = es.search(index="github_enriched,gitlab_issues_enriched", body = {
'size': 3,
"query": {
"bool": {
......@@ -259,7 +259,7 @@ class OsfActivityByDate(Query[List[str], Dict[str, int]]):
"""
@staticmethod
def perform_query(es: Elasticsearch, args: List[str]) -> Dict[str, int]:
results: _QueryResult = es.search(index="osf_nodes_demo_enriched", body = {
results: _QueryResult = es.search(index="osf_nodes_enriched", body = {
'size': 0,
"query": {
"bool": {
......
......@@ -47,108 +47,41 @@ reset_on_load = false
identities_file = [{{COORDINATOR_DATA_DIR}}configs/identities.yml]
identities_format = grimoirelab
#[bugzillarest]
#raw_index = bugzillarest_demo_raw
#enriched_index = bugzillarest_demo_enriched
#no-archive = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/bugzilla/"
#[confluence]
#no-archive = true
#raw_index = confluence_demo_raw
#enriched_index = confluence_demo_enriched
#base-path = "{{COORDINATOR_DATA_DIR}}cache/confluence/"
[git]
raw_index = git_demo_raw
enriched_index = git_demo_enriched
raw_index = git_raw
enriched_index = git_enriched
latest-items = true
studies = [enrich_demography:git, enrich_onion:git]
base-path = "{{COORDINATOR_DATA_DIR}}cache/git/"
#[github]
#api-token = <YOUR_API_TOKEN_WHERE>
#raw_index = github_demo_raw
#raw_index = github_raw
#sleep-for-rate = true
#sleep-time = "300"
#enriched_index = github_demo_enriched
#enriched_index = github_enriched
#base-path = "{{COORDINATOR_DATA_DIR}}cache/github/"
#[gitlab:gitlab.com:issue]
#api-token = <YOUR_API_TOKEN_WHERE>
#raw_index = gitlab_issues_demo_raw
#enriched_index = gitlab_issues_demo_enriched
#raw_index = gitlab_issues_raw
#enriched_index = gitlab_issues_enriched
#no-archive = true
#sleep-for-rate = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/gitlab/"
#[gitlab:gitlab.com:merge]
#api-token = <YOUR_API_TOKEN_WHERE>
#raw_index = gitlab_merges_demo_raw
#enriched_index = gitlab_merges_demo_enriched
#raw_index = gitlab_merges_raw
#enriched_index = gitlab_merges_enriched
#no-archive = true
#category = merge_request
#sleep-for-rate = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/gitlab/"
#[jira]
#raw_index = jira_demo_raw
#enriched_index = jira_demo_enriched
#no-archive = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/jira/"
#[pipermail]
#raw_index = pipermail_demo_raw
#enriched_index = pipermail_demo_enriched
#no-verify = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/pipermail/"
#[mediawiki]
#raw_index = mediawiki_demo_raw
#enriched_index = mediawiki_demo_enriched
#no-archive = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/mediawiki/"
#[meetup]
#raw_index = meetup_demo_raw
#enriched_index = meetup_demo_enriched
#api-token = <YOUR_API_TOKEN_WHERE>
#no-archive = true
#sleep-for-rate = true
#sleep-time = "300"
#base-path = "{{COORDINATOR_DATA_DIR}}cache/meetup/"
#[stackexchange]
#raw_index = stackexchange_demo_raw
#enriched_index = stackexchange_demo_enriched
#api-token = <YOUR_API_TOKEN_WHERE>
#no-archive = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/stackexchange/"
#[slack]
#raw_index = slack_demo_raw
#enriched_index = slack_demo_enriched
#api-token = <YOUR_API_TOKEN_WHERE>
#no-archive = true
#base-path = "{{COORDINATOR_DATA_DIR}}cache/slack/"
#[supybot]
#raw_index = supybot_demo_raw
#enriched_index = supybot_demo_enriched
#base-path = "{{COORDINATOR_DATA_DIR}}cache/supybot/"
#[twitter]
#raw_index = twitter_demo_raw
#enriched_index = twitter_demo_enriched
#api-token = <YOUR_API_TOKEN_WHERE>
#no-archive = true
#sleep-for-rate = true
#sleep-time = 300
#base-path = "{{COORDINATOR_DATA_DIR}}cache/twitter/"
#[osf]
#raw_index = osf_nodes_demo_raw
#enriched_index = osf_nodes_demo_enriched
#raw_index = osf_nodes_raw
#enriched_index = osf_nodes_enriched
#category = log
#sleep-for-rate = true
#sleep-time = 300
......@@ -170,10 +103,10 @@ base-path = "{{COORDINATOR_DATA_DIR}}cache/rss/"
[enrich_demography:git]
[enrich_areas_of_code:git]
in_index = git_demo_raw
out_index = git-aoc_demo_enriched
in_index = git_raw
out_index = git-aoc_enriched
[enrich_onion:git]
in_index = git
out_index = git-onion_demo_enriched
out_index = git-onion_enriched
contribs_field = hash
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment