Skip to content

Commit

Permalink
[enrich] Fix 'roles' attribute error
Browse files Browse the repository at this point in the history
The 'roles' attribute wasn't available for all the
enrichers. The attribute has been added to the
main class 'Enrich' so subclasses will have it
available even when they don't use it.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
  • Loading branch information
sduenas committed Aug 13, 2024
1 parent 31f95f9 commit 29a78c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions grimoire_elk/enriched/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class Enrich(ElasticItems):
analyzer = Analyzer
sh_db = None
kibiter_version = None
roles = []
RAW_FIELDS_COPY = ["metadata__updated_on", "metadata__timestamp",
"offset", "origin", "tag", "uuid"]
KEYWORD_MAX_LENGTH = 1000 # this control allows to avoid max_bytes_length_exceeded_exception
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Roles attribute not available on some enrichers
category: fixed
author: Santiago Dueñas <sduenas@bitergia.com>
issue: null
notes: >
The 'roles' attribute wasn't available for all the
enrichers. The attribute has been added to the
main class 'Enrich' so subclasses will have it
available even when they don't use it.

0 comments on commit 29a78c0

Please sign in to comment.