Skip to content

hyrox: removed boundary no longer comes back on next sync - #966

Merged
abdulsaheel merged 1 commit into
mainfrom
fix/auto-hyrox-remove-boundary
Nov 29, 2026
Merged

abdulsaheel merged 1 commit into
mainfrom
fix/auto-hyrox-remove-boundary

Conversation

@abdulsaheel

@abdulsaheel abdulsaheel commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

removeBoundary only excluded the one tap at the boundary time. the rest of the burst (eg t+2, t+4, t+5) still made 3 taps, so the next reconcile put the boundary back ~2s later. if the boundary had been moved by hand first, the excluded time matched no tap at all and the whole burst came back.

now it excludes every stored double tap after the merged round's start (anything earlier is already below the reconciler floor). added a test for both cases. removeBoundary has no ui caller yet so this was latent.

Summary by CodeRabbit

  • Bug Fixes
    • Prevented taps from a removed boundary and matching band-event taps after the merged segment from being included in future reconciliation.

@sourcery-ai

sourcery-ai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Sorry @abdulsaheel, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 6 hours and 22 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

When removeBoundary merges segments, it now excludes matching band-event taps after the left segment’s start, along with the removed boundary tap. The exclusion helper merges and sorts unique timestamps and skips database updates when exclusions do not change.

Changes: HYROX boundary tap exclusions

Layer / File(s) Summary
Collect and store excluded taps
lib/data/hyrox_store.dart
removeBoundary collects matching band-event timestamps after the left segment’s start. _addExcludedTaps merges and sorts unique exclusions, and skips updates when the exclusions are unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • OpenStrap/edge#663: Introduces the HYROX storage model and offline reconciler used by the boundary-removal changes.

Suggested reviewers: mistral-vibe

Merge Risk: Minimal · up to 98d26 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title says a removed Hyrox boundary no longer returns on the next sync. The change matches this. removeBoundary now excludes the removed boundary tap and every stored matching band-event tap after…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says a removed Hyrox boundary no longer returns on the next sync. The change matches this. removeBoundary now excludes the removed boundary tap and every stored matching band-event tap after the merged segment's start, so the reconciler no longer recreates the boundary from the rest of a tap burst. The title is specific, short, and names the main behavior change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f6faa23 and 98d2600.

Files ignored due to path filters: 1

  • test/hyrox_model_storage_test.dart is excluded by !test/**
Files selected for processing: 1

  • lib/data/hyrox_store.dart

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

Failed to generate code suggestions for PR

@abdulsaheel

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Full review finished.

@abdulsaheel
abdulsaheel merged commit a4dd7ae into main Nov 29, 2026
7 of 11 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.

1 participant