Include the final fractional second in local day ranges - #1693
Open
skyfallwastaken wants to merge 1 commit into
Open
Include the final fractional second in local day ranges#1693skyfallwastaken wants to merge 1 commit into
skyfallwastaken wants to merge 1 commit into
Conversation
Contributor
Greptile SummaryUpdates local-day filtering to use the next local midnight as an exclusive upper boundary.
Confidence Score: 5/5The PR appears safe to merge, with regression coverage for fractional-second boundaries and DST-aware local days. No new issues were introduced since the previous review, and the full PR remains consistent with the repository requirements. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Local calendar date] --> B[Beginning of local day]
A --> C[Beginning of next local day]
B --> D{Heartbeat timestamp}
C --> D
D -->|timestamp >= start and timestamp < next midnight| E[Included]
D -->|otherwise| F[Excluded]
Reviews (2): Last reviewed commit: "Include the final second in local heartb..." | Re-trigger Greptile |
Co-authored-by: Amp <amp@ampcode.com>
skyfallwastaken
force-pushed
the
fix-heartbeat-day-boundaries
branch
from
September 6, 2026 13:16
aa16405 to
2dd9c68
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of the problem
Today and custom date ranges truncated their upper boundary, losing heartbeats during the final fractional second of a day.
Describe your changes
Use an exclusive next-local-midnight boundary, including across daylight-saving changes. Preserve stored timestamps and deduplication identity; duration output remains in whole seconds.
Screenshots / Media
Not applicable: backend-only changes.