Skip to content

Set measuredAt on a declared badge count - #228

Merged
HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-sbnaaz
Dec 1, 2026
Merged

HarryCordewener merged 1 commit into
mainfrom
claude/project-thread-sbnaaz

Conversation

@HarryCordewener

Copy link
Copy Markdown
Member

Requested by Grave · project thread

Follow-up to #227.

What

badge.json's measuredAt is now set for a declared count too: the time the game's MSSP PLAYERS was last read. state (measured / declared) still says whose count it is.

The declared-count test now asserts the exact age (540s, "read 9m ago") and measuredAt, which was CodeRabbit's nit on #227.

Tests

MUI.Web.Tests: 1297 passed, 5 skipped (Postgres-only, no Docker here).


Generated by Claude Code

measuredAt was null for a declared count, so a consumer of badge.json had only
ageSeconds to place it in time. It now carries when the count was last read for
measured and declared counts alike; state already says whose count it is.

The declared-count test now pins the age (540s, "read 9m ago") and the instant,
rather than only its sign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7W4nivsdxcZRkUXYdy
@HarryCordewener HarryCordewener self-assigned this Dec 1, 2026
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 35 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 9a7a81cb-1ee8-4f41-8b23-4d8995edb1fa
Commits

Reviewing files that changed from the base of the PR and between 4a19299 and 77eb32d.

Files selected for processing: 2

  • src/MUI.Web/Api/BadgeEndpoints.cs
  • tests/MUI.Web.Tests/Api/BadgeApiTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@HarryCordewener
HarryCordewener marked this pull request as ready for review December 1, 2026 03:13
@HarryCordewener
HarryCordewener merged commit 4131958 into main Dec 1, 2026
3 checks passed
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.

2 participants