Skip to content

Commit 5d44caf

Browse files
committed
Update the author's filter in autorefresh process
This commit updates the filter construction to correctly match UUIDs in OpenSearch, addressing a bug in Mordred that prevented role identities from being refreshed. Signed-off-by: Jose Javier Merchante <jjmerchante@bitergia.com>
1 parent a46cbe2 commit 5d44caf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

grimoire_elk/elk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def refresh_identities(enrich_backend, author_fields=None, individuals=None):
262262
def create_filter_authors(authors, to_refresh):
263263
filter_authors = []
264264
for author in authors:
265-
author_name = author if author == 'author_uuid' else author + '_uuids'
265+
author_name = author if author.endswith('_uuid') else author + '_uuids'
266266
field_author = {
267267
"name": author_name,
268268
"value": to_refresh
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Identity refresh bug for some items
3+
category: fixed
4+
author: Jose Javier Merchante <jjmerchante@bitergia.com>
5+
issue: 1161
6+
notes: >
7+
Update the filter construction to correctly match UUIDs in
8+
OpenSearch, addressing a bug in Mordred that prevented role
9+
identities from being refreshed.

0 commit comments

Comments
 (0)