Skip to content

[enrich] Update decorator to add metadeta only for non-empty items #846

@animeshk08

Description

@animeshk08

The decorator present in the below method adds metadata to the enriched item even if the item is empty

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.

def get_rich_item(self, item):

An update is also needed here to upload only non-empty documents:

items_to_enrich.append(eitem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions