Skip to content

Commit

Permalink
added docstring to transform_and_write_to_dynamo in github_activity_m…
Browse files Browse the repository at this point in the history
…odel.py
  • Loading branch information
klai95 committed Apr 24, 2023
1 parent d917516 commit dd71781
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data-workflows/activity/github_activity_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ def __eq__(self, other):


def transform_and_write_to_dynamo(data: dict[str, List], activity_type: GitHubActivityType) -> None:
"""
Transforms plugin commit data generated by get_plugins_commit_count_since_timestamp to the expected format
and then writes the formatted data to the corresponding github-activity dynamo table in each environment
:param dict[str, list] data: plugin commit data of type dictionary in which the key is plugin name
of type str and the value is Github activities of type list
:param GitHubActivityType activity_type:
"""
LOGGER.info(f'Starting item creation for github-activity type={activity_type.name}')

batch = GitHubActivity.batch_write()
Expand Down

0 comments on commit dd71781

Please sign in to comment.