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

Fix identity refresh bug for all roles #626

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

jjmerchante
Copy link
Contributor

@jjmerchante jjmerchante commented Aug 8, 2024

This PR resolves an issue where role identities (like reviewed_by or merged_by among others) were not refreshed.

The bug occurred because the queries to OpenSearch filtered items in which author_uuid was the individual pk, but not when the <role>_uuid was the individual pk. That causes many items that contain the <role>_uuid but not the author_uuid not to be refreshed.

For example, the Author role was not affected because it matched author_uuid, but roles like reviewed_by did not match and were missed.

This PR depends on chaoss/grimoirelab-elk#1163
This PR fixes chaoss/grimoirelab-elk#1161

notes: >
Fix issue where some fields were not refreshed
in the identities database under certain
circumstances.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be good to explain here that circustances.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the changelog, let me know if that is enough or if I should include more information.

This commit resolves an issue where role identities
(like `reviewed_by` or `merged_by` among others) were not
refreshed.
The bug occurred because the queries to OpenSearch filtered
items in which `author_uuid` was the individual pk, but not
when the `<role>_uuid` was the individual pk. That causes many
items that contain the `<role>_uuid` but not the `author_uuid`
not to be refreshed.

For example, the `Author` role was not affected because it
matched `author_uuid`, but roles like `reviewed_by` did not
match and were missed.

Signed-off-by: Jose Javier Merchante <[email protected]>
Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sduenas sduenas merged commit cd40634 into chaoss:master Aug 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pull requests index is not synced with identities dataset
2 participants