fix(entityresolution): pass inline claims through multi-strategy context - #3794
fix(entityresolution): pass inline claims through multi-strategy context#3794jrschumacher wants to merge 5 commits into
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughMulti-strategy ChangesClaims-aware entity resolution
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@service/entityresolution/multi-strategy/registration.go`:
- Around line 449-473: The helper structPBCompatibleValue is duplicated in the
v2 package. Remove the duplicate implementation and reuse the existing shared or
canonical definition, updating callers as needed while preserving recursive
conversion of slices and maps.
In `@service/entityresolution/multi-strategy/v2/registration.go`:
- Around line 465-489: Remove the duplicate structPBCompatibleValue helper from
the v2 registration file and reuse the existing implementation from the v1
registration code through the established shared-access pattern. Preserve
recursive handling for []string, []interface{}, and map[string]interface{}
values without introducing another copy.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 5e49ac7c-2bc3-4237-8a8a-4940e081f699
📒 Files selected for processing (4)
service/entityresolution/multi-strategy/registration.goservice/entityresolution/multi-strategy/registration_test.goservice/entityresolution/multi-strategy/v2/registration.goservice/entityresolution/multi-strategy/v2/registration_test.go
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
fccaf85 to
88c77a4
Compare
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
|
Summary
types.JWTClaimsContextKeybefore calling the multi-strategy serviceTesting
Fixes #3790
Summary by CodeRabbit
New Features
Bug Fixes
Tests