Repository navigation
refactor(web): remove legacy millisecond timestamp getters and standardize on nanosecond bigint timestamps - #1203
Merged
Conversation
…rdize on nanosecond bigint timestamps
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
October 30, 2026 06:02
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the frontend codebase to replace legacy millisecond-based timestamps with nanosecond-based bigint timestamps across various components, pipes, services, tests, and stories. This unifies time representation on nanosecond precision and removes deprecated legacy properties. The review feedback correctly identifies an issue in the timezone offset formatting logic of toLongDisplayTimestamp in TimestampFormatPipe when handling negative fractional timezone offsets, and provides a code suggestion to resolve it.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Oct 30, 2026
02e67e3
17 checks passed
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.
Fixes #1202
Summary
Domain models in
web/src/app/store/domain/(Log,Revision, andEvent) and timeline components previously mixed floating-point millisecond timestamps (legacyTimestampMs,legacyChangedTimeMs,legacyGetEndMs(),legacyTimestamp,viewStartMs,durationMs, andpixelsPerMs) with canonicalbigintnanosecond timestamps.This change removes the deprecated millisecond getters from the domain models and standardizes timestamp formatting utilities, timeline query bounds, cursor state, ruler/tick generators, histogram bucket calculations, and viewport/pixel coordinate calculators on
bigintnanosecond timestamps andpixelsPerNs. Conversion to floating-point milliseconds viaBigIntTimeUtil.NsToNumberMsis now confined strictly to the finalDateformatting boundary.