Skip to content

refactor: remote claim builder: simplify NewClaimBuilders#347

Closed
denopink wants to merge 3 commits intodenopink/chore/docsfrom
denopink/refactor/simplify-builder-claims-
Closed

refactor: remote claim builder: simplify NewClaimBuilders#347
denopink wants to merge 3 commits intodenopink/chore/docsfrom
denopink/refactor/simplify-builder-claims-

Conversation

@denopink
Copy link
Copy Markdown
Contributor

  • collapse range o.Metadata and range o.Claims for loops into the func getStaticValues since they're duplicates in terms of logic
  • moved the IsStatic() error check out of getStaticValues to func (v Value) RawMessage() (json.RawMessage, error) since that's a better home for that particular check, reducing the cognitive load

@denopink denopink requested a review from johnabass March 25, 2026 14:26
@denopink denopink self-assigned this Mar 25, 2026
@denopink denopink added the enhancement New feature or request label Mar 25, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (denopink/chore/docs@a101fb8). Learn more about missing BASE report.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             denopink/chore/docs     #347   +/-   ##
======================================================
  Coverage                       ?   51.33%           
======================================================
  Files                          ?       55           
  Lines                          ?     2063           
  Branches                       ?        0           
======================================================
  Hits                           ?     1059           
  Misses                         ?      969           
  Partials                       ?       35           
Flag Coverage Δ
unittests 51.33% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@denopink denopink force-pushed the denopink/refactor/simplify-builder-claims- branch from d93c150 to 11f6fa8 Compare March 26, 2026 16:03
…ctor and options

- improving the documentation and grouping around remote claims builder's configuration and options, reducing the cognitive load (what is and what isn't related to themis' remote claims builder can be confusing and hard to follow)
- collapse `range o.Metadata` and `range o.Claims` for loops into the func `getStaticValues` since they're duplicates in terms of logic
- moved the `IsStatic()` error check out of `getStaticValues` to `func (v Value) Validate() error` since that's a better home for that particular check and others, reducing the cognitive load
@denopink denopink force-pushed the denopink/refactor/simplify-builder-claims- branch from 11f6fa8 to 375f56b Compare March 26, 2026 16:11
@denopink denopink changed the base branch from denopink/refactor/improve-pathvalues-name- to denopink/chore/docs March 26, 2026 16:12
@denopink
Copy link
Copy Markdown
Contributor Author

closing, replaced by #351 (fixed git history)

@denopink denopink closed this Mar 26, 2026
@denopink denopink deleted the denopink/refactor/simplify-builder-claims- branch March 30, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants