You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hyrox: removed boundary no longer comes back on next sync - #966
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.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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