-
Notifications
You must be signed in to change notification settings - Fork 0
RSRVR-27 empty match key removes record from cluster #150
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
RSRVR-27 empty match key removes record from cluster #150
Conversation
For the given match key config of course.
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 pull request implements RSRVR-27, which adds support for removing records from clusters when their match key becomes empty. Previously, records with empty match keys would remain in clusters; now they are properly removed.
Changes:
- Added logic to detect and handle empty match keys by removing affected records from clusters
- Added new test
testClustersNoKeyto verify the new behavior across three phases - Updated existing test expectations to reflect that records with empty match keys are no longer included in cluster results
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| server/src/main/java/com/indexdata/reservoir/server/Storage.java | Refactored empty key handling from updateClusterValues to updateClusterForRecord, added new removeClusterRecord method to remove records with empty keys from clusters |
| server/src/test/java/com/indexdata/reservoir/server/MainVerticleTest.java | Added comprehensive test for empty key removal behavior and updated expectations in existing tests to reflect that empty-key records are no longer clustered |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
server/src/test/java/com/indexdata/reservoir/server/MainVerticleTest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/indexdata/reservoir/server/Storage.java
Outdated
Show resolved
Hide resolved
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
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
server/src/test/java/com/indexdata/reservoir/server/MainVerticleTest.java
Outdated
Show resolved
Hide resolved
…leTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
For the given match key config of course.
https://index-data.atlassian.net/browse/RSRVR-27