Skip to content

Commit

Permalink
Update the author's filter in autorefresh process
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jjmerchante committed Aug 8, 2024
1 parent a46cbe2 commit 5d44caf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grimoire_elk/elk.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def refresh_identities(enrich_backend, author_fields=None, individuals=None):
def create_filter_authors(authors, to_refresh):
filter_authors = []
for author in authors:
author_name = author if author == 'author_uuid' else author + '_uuids'
author_name = author if author.endswith('_uuid') else author + '_uuids'
field_author = {
"name": author_name,
"value": to_refresh
Expand Down
9 changes: 9 additions & 0 deletions releases/unreleased/identity-refresh-bug-for-some-items.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Identity refresh bug for some items
category: fixed
author: Jose Javier Merchante <[email protected]>
issue: 1161
notes: >
Update the filter construction to correctly match UUIDs in
OpenSearch, addressing a bug in Mordred that prevented role
identities from being refreshed.

0 comments on commit 5d44caf

Please sign in to comment.