-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix existing followed assets not getting listed after search Reindexing #22621
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where followed assets were not being listed after search reindexing by implementing proper batch fetching for the followers field. The issue was that the field support mapping for followers was missing, causing bulk operations to not properly populate follower information.
- Added batch fetch method for followers field to enable efficient bulk loading
- Enhanced test validation to verify followers field consistency between bulk and individual operations
- Fixed the missing field support mapping registration for followers
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
EntityRepository.java | Added batch followers fetching implementation and registered field support mapping |
EntityResourceTest.java | Enhanced test validation for followers field consistency and data integrity |
Comments suppressed due to low confidence (1)
openmetadata-service/src/test/java/org/openmetadata/service/resources/EntityResourceTest.java:903
- The test assumes getFollowers() method exists and returns List, but this may not be consistent across all entity types. Consider using a more generic approach or add null checks to handle cases where the method might not be available.
List<EntityReference> bulkFollowers = entity.getFollowers();
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java
Outdated
Show resolved
Hide resolved
|
Describe your changes:
Add batch fetch methods for missing fields
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>