-
Notifications
You must be signed in to change notification settings - Fork 121
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
[enrich] Update decorator to add metadeta only for non-empty items #846
Comments
Proposed solution:
|
Hi, @valeriocos. Let me know if it looks good to you :) |
Hi @animeshk08 , your solution looks good, however I don't know if these changes may have side effects. I understand that they shouldn't, but I'm not sure. |
Okay, Let me know how we should move ahead.
I think the same. |
@animeshk08 , can you prepare a pull request with the suggested changes. I'll perform with it some long-execution tests. Thanks! |
Thanks. I am on it!! |
The decorator present in the below method adds metadata to the enriched item even if the item is empty
grimoirelab-elk/grimoire_elk/enriched/enrich.py
Line 84 in 48486d0
An empty item may be generated in case the item does not belong to a category that is to be enriched. For e.g in case, the item does not belong to 'issues', 'pull requests' or 'repositories' in the case of github2 enricher.
grimoirelab-elk/grimoire_elk/enriched/github2.py
Line 219 in 48486d0
An update is also needed here to upload only non-empty documents:
grimoirelab-elk/grimoire_elk/enriched/github2.py
Line 389 in 48486d0
The text was updated successfully, but these errors were encountered: