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

Update the author's filter in autorefresh process #1163

Merged
merged 1 commit into from
Aug 9, 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
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.