Skip to content

fix(dashrate): decode grouped-count rating keys for protocol v14 - #121

Closed
thephez wants to merge 2 commits into
mainfrom
fix/dashrate-grouped-count-keys
Closed

thephez wants to merge 2 commits into
mainfrom
fix/dashrate-grouped-count-keys

Conversation

@thephez

@thephez thephez commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Testing

  • Dashrate unit tests: 163 passed.
  • Dashrate lint and build passed.
  • Dashrate Playwright suite against testnet: 28 passed, including the new ratings checks.
  • Prettier passed for changed files except the lite page, which also fails on the base branch.

thephez and others added 2 commits October 29, 2026 16:34
Protocol version 14 (dashpay/platform#5350) stores unsigned integer index values in value order, so a grouped `count` by rating now returns keys "01".."05" instead of the sign-flipped "81".."85". dashrate looked up the old keys, so every per-star count read 0, the derived average was null, and every resource showed "No reviews yet" even though reviews exist.

Decode the returned keys with `ratingFromKeyHex` instead of re-encoding expected ones. Masking off the top bit handles both the PV14 and pre-PV14 forms. Apply the same fix to dashrate-lite.html.

Unit tests now feed literal network-format keys rather than stubs built with the app's own encoder, which is why the break went unnoticed. A new read-only e2e spec checks on live testnet, for both the app and the lite page, that the per-star distribution sums to the total review count. It fails against the previous code.

Closes #119

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add example apps, walkthroughs, and presentation assets
- Expand tutorials and add Platform diagnostics and research notes
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@thephez thephez closed this Oct 29, 2026
@thephez
thephez deleted the fix/dashrate-grouped-count-keys branch October 29, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashrate: ratings show "No reviews yet" after evo-sdk 5.0 bump (grouped-count key encoding changed in PV14)

1 participant