Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev fixes for event collection #2897

Merged
merged 12 commits into from
Aug 27, 2024
6 changes: 3 additions & 3 deletions augur/application/db/data_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,21 +283,21 @@ def extract_pr_review_message_ref_data(comment: dict, augur_pr_review_id, github
return pr_review_comment_message_ref


def extract_pr_event_data(event: dict, pr_id: int, platform_id: int, repo_id: int, tool_source: str, tool_version: str, data_source: str) -> dict:
def extract_pr_event_data(event: dict, pr_id: int, gh_src_id: int, platform_id: int, repo_id: int, tool_source: str, tool_version: str, data_source: str) -> dict:

pr_event = {
'pull_request_id': pr_id,
'cntrb_id': event["cntrb_id"] if "cntrb_id" in event else None,
'action': event['event'],
'action_commit_hash': None,
'created_at': event['created_at'],
'issue_event_src_id': int(event['issue']["id"]),
'issue_event_src_id': gh_src_id,
'node_id': event['node_id'],
'node_url': event['url'],
'tool_source': tool_source,
'tool_version': tool_version,
'data_source': data_source,
'pr_platform_event_id': int(event['issue']["id"]),
'pr_platform_event_id': gh_src_id,
'platform_id': platform_id,
'repo_id': repo_id
}
Expand Down
Loading
Loading