Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster-ui: allow dynamic timescale window from key buttons #84649

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Jul 19, 2022

fixes #77007

Previously, controlling the time scale window using the arrow
key buttons and 'Now' button would disable the dynamically moving
window even when the end time = now. This commit makes it so that
when the time window is changed to include the current time (i.e.
endTime = now), the time window will be changed to dynamic to
ensure the window is keep up to date with the current time.

This commit also fixes the object construction of the time scale
from session storage and corrects the 'Now' button tooltip label from
'past 1 day' to 'Most recent interval'.

Release note (bug fix): changing the time window using arrow buttons
and 'Now' button will now properly turn the timeframe into a moving
window when endTime = now.

https://www.loom.com/share/54d65c04580747dc92f7e4976b953be6

@xinhaoz xinhaoz requested a review from a team July 19, 2022 14:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

Small nit, otherwise :lgtm:

Reviewed 11 of 11 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)


-- commits line 19 at r1:
nit: can you also mention you updated the tooltip for those buttons?

fixes cockroachdb#77007

Previously, controlling the time scale window using the arrow
key buttons and 'Now' button would disable the dynamically moving
window even when the end time = now. This commit makes it so that
when the time window is changed to include the current time (i.e.
endTime = now), the time window will be changed to dynamic to
ensure the window is keep up to date with the current time.

This commit also fixes the object construction of the time scale
from session storage and corrects the 'Now' button tooltip label from
'past 1 day' to 'Most recent interval', with the other labels in the
control panel ('next time interval' and 'previous time interval'
being capitalized.

Release note (bug fix): changing the time window using arrow buttons
and 'Now' button will now properly turn the timeframe into a moving
window when endTime = now.
@xinhaoz xinhaoz force-pushed the timescale-now-fix branch from 45143e9 to 7377c2b Compare July 19, 2022 16:48
@xinhaoz
Copy link
Member Author

xinhaoz commented Jul 19, 2022

TFTR!
bors r=maryliag

@craig
Copy link
Contributor

craig bot commented Jul 19, 2022

Build succeeded:

@craig craig bot merged commit 477644e into cockroachdb:master Jul 19, 2022
@xinhaoz xinhaoz deleted the timescale-now-fix branch August 8, 2022 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants