Skip to content

refactor(web): remove legacy millisecond timestamp getters and standardize on nanosecond bigint timestamps - #1203

Merged
kyasbal merged 2 commits into
GoogleCloudPlatform:mainfrom
kyasbal:push-mrukspsxmztl
Oct 30, 2026
Merged

kyasbal merged 2 commits into
GoogleCloudPlatform:mainfrom
kyasbal:push-mrukspsxmztl

Conversation

@kyasbal

@kyasbal kyasbal commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #1202

Summary

Domain models in web/src/app/store/domain/ (Log, Revision, and Event) and timeline components previously mixed floating-point millisecond timestamps (legacyTimestampMs, legacyChangedTimeMs, legacyGetEndMs(), legacyTimestamp, viewStartMs, durationMs, and pixelsPerMs) with canonical bigint nanosecond 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 bigint nanosecond timestamps and pixelsPerNs. Conversion to floating-point milliseconds via BigIntTimeUtil.NsToNumberMs is now confined strictly to the final Date formatting boundary.

@kyasbal kyasbal added area:frontend Web frontend application and UI components type:refactor Code refactoring without behavioral change labels Oct 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kyasbal
kyasbal added this pull request to the merge queue Oct 30, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 02e67e3 Oct 30, 2026
17 checks passed
@kyasbal
kyasbal deleted the push-mrukspsxmztl branch October 30, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Web frontend application and UI components type:refactor Code refactoring without behavioral change

1 participant