Skip to content

fix(ers): address inline claims review feedback - #3836

Open
jrschumacher wants to merge 1 commit into
test-3801-provider-contract-matrixfrom
fix/3794-review-followups
Open

fix(ers): address inline claims review feedback#3836
jrschumacher wants to merge 1 commit into
test-3801-provider-contract-matrixfrom
fix/3794-review-followups

Conversation

@jrschumacher

Copy link
Copy Markdown
Member

Summary

  • normalize typed JWT claim slices ([]float64, []bool, and []int) before structpb serialization
  • add regression coverage proving typed and nested claim slices are accepted by structpb.NewStruct
  • remove inappropriate t.Helper() calls from top-level tests
  • use testify/require consistently in the tests introduced by fix(ers): pass inline claims through multi-strategy context #3794

Testing

  • cd service && go test ./pkg/protohelper ./entityresolution/multi-strategy ./entityresolution/multi-strategy/v2 -count=1
  • cd service && golangci-lint run ./pkg/protohelper ./entityresolution/multi-strategy ./entityresolution/multi-strategy/v2
  • cd tests-bdd && go test ./cukes -run "^TestConvertInterfaceToAny_PlainClaimsJSON$" -count=1
  • cd tests-bdd && golangci-lint run --disable nestif ./cukes (the package has a pre-existing nestif finding in steps_localplatform.go)

Context

Follow-up to review comments on #3794, stacked above #3809 so the existing ERS PR stack can merge without another restack.

Signed-off-by: Ryan Schumacher <jschumacher@virtru.com>
@jrschumacher
jrschumacher requested a review from a team as a code owner August 4, 2026 21:13
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 85057b7f-70dc-447e-b5ed-78655fc1998d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the size/s label Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 102.402291ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 53.026558ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 240.61461ms
Throughput 415.60 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 28.117137646s
Average Latency 280.159186ms
Throughput 177.83 requests/second

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ Govulncheck found vulnerabilities ⚠️

The following modules have known vulnerabilities:

  • examples
  • otdfctl
  • sdk
  • service
  • lib/fixtures
  • tests-bdd

See the workflow run for details.

@elizabethhealy elizabethhealy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants