-
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.
updated the docstring for pair_programming
Signed-off-by: Nitish Gupta <[email protected]>
- Loading branch information
1 parent
578b494
commit 1641acf
Showing
1 changed file
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -388,8 +388,34 @@ def get_pair_programming_metrics(eitem, nauthors): | |
return eitem | ||
|
||
def enrich_items(self, ocean_backend, events=False): | ||
""" Implementation supporting signed-off and multiauthor/committer commits.""" | ||
|
||
""" Implementation supporting signed-off and multiauthor/committer commits. | ||
Multiauthor/Multcommiter commits are the ones authored/commited by more | ||
than one users, in such a case, ELK first extracts authors names from | ||
raw data through regex, for instance in, | ||
... | ||
"data": { | ||
"Author": "Eduardo Morais and Zhongpeng Lin <[email protected]>", | ||
"AuthorDate": "Tue Aug 14 14:32:15 2012 -0300", | ||
"Commit": "Eduardo Morais and Zhongpeng Lin <[email protected]>", | ||
"CommitDate": "Tue Aug 14 14:32:15 2012 -0300", | ||
"Signed-off-by": [ | ||
"Eduardo Morais <[email protected]>" | ||
], | ||
"commit": "87783129c3f00d2c81a3a8e585eb86a47e39891a", | ||
... | ||
authors extracted are ['Eduardo Morais', 'Zhongpeng Lin'] (can be more than 2). | ||
A new rich item is now created using each author name. For multicommitter only | ||
the first committer name is used to create the rich item. In case the commit is | ||
signed-off by committer, raw data has extra "Signed-off-by" attribute used to | ||
create a new rich item for every author who signed off the commit, making sure | ||
duplicate entries are not created. | ||
Note - | ||
"message": "Enable users to pass flags\n\nCo-authored-by: mariiapunda <[email protected]>", | ||
Co-authored commits like these are not considered as multiauthored commits in ELK. | ||
""" | ||
headers = {"Content-Type": "application/json"} | ||
|
||
max_items = self.elastic.max_items_bulk | ||
|