Skip to content
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] Fix 'roles' attribute error #1164

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.