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

ui: properly construct timescale object from session storage #86909

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Aug 25, 2022

Previously, when we restore the global timescale object from session
storage, we did not properly construct non primitive type fields. This
commit properly constructs the TimeScale object from session storage,
reconstructing the moment.duration and moment objects that are expected
in certain fields.

Release justification: bug fix
Release note (bug fix): timescale object is properly constructed
from session storage, preventing bugs and crashes in pages that use
the time scale object when reloading the page

@xinhaoz xinhaoz requested a review from a team August 25, 2022 20:42
@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.

:lgtm:

Reviewed all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @maryliag)

Previously, when we restore the global timescale object from session
storage, we did not properly construct non primitive type fields. This
commit properly constructs the TimeScale object from session storage,
reconstructing the moment.duration and moment objects that are expected
in certain fields.

Release justification: bug fix
Release note (bug fix): timescale object is properly constructed
from session storage, preventing  bugs and crashes in pages that use
the time scale object when reloading the page
@xinhaoz xinhaoz force-pushed the fix-ts-from-session-store branch from 6dbc954 to b01b104 Compare August 26, 2022 19:01
@xinhaoz
Copy link
Member Author

xinhaoz commented Aug 26, 2022

Failures look unrelated.
bors r+

@craig
Copy link
Contributor

craig bot commented Aug 26, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Aug 27, 2022

Build succeeded:

@craig craig bot merged commit 4e84ce7 into cockroachdb:master Aug 27, 2022
@xinhaoz xinhaoz deleted the fix-ts-from-session-store branch September 21, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants