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

Linked Time: Fix bug with zooming always maximizing end step #6058

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

rileyajones
Copy link
Contributor

@rileyajones rileyajones commented Nov 17, 2022

Motivation for features / changes

When changing the zoom on the scalar card with an the end fob the end fob was always placed at the maximum possible step.
For Googlers b/259562961

Technical description of changes

The StepSelectorTimeSelection derived by a subscription to a bunch of other Observables. The main issue was that it simply never checked if an existing end step existed. The code was also kinda hard to read(:raised_hand_with_fingers_splayed: my fault) so I went ahead with a bit of a cleanup there.

Screenshots of UI changes

Before:
Zooming In:
129f960a-2ee0-4762-98eb-875594b31b6f

Resetting Zoom Level:
00194071-2280-4d9b-953c-18740f7cad77

After:
cf40658d-c57c-4d76-a267-9feb8b35f7fe

Detailed steps to verify changes work correctly (as executed by you)

  1. Start tensorboard
  2. Navigate to http://localhost:6006?enableRangeSelection&enableDataTable
  3. Place two fobs on the scalar card
  4. Zoom in on a segment of the chart which contains both fobs (much easier now that Moving mouse past fob stops zoom on scalar card #5932 is closed)
  5. Assert neither fob has moved
  6. Reset the chart zoom level
  7. Assert that neither fob has moved.

@rileyajones
Copy link
Contributor Author

I can definitely understand wanting the function rename moved to another PR but I'm hoping it's fine.

@rileyajones rileyajones marked this pull request as ready for review November 17, 2022 23:54
Copy link
Contributor

@JamesHollyer JamesHollyer left a comment

Choose a reason for hiding this comment

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

Looks good after some name fixes.

@rileyajones rileyajones merged commit 888dcdc into tensorflow:master Nov 18, 2022
qihach64 pushed a commit to qihach64/tensorboard that referenced this pull request Dec 19, 2022
…low#6058)

## Motivation for features / changes
When changing the zoom on the scalar card with an the end fob the end
fob was always placed at the maximum possible step.
For Googlers b/259562961

## Technical description of changes
The `StepSelectorTimeSelection` derived by a subscription to a bunch of
other Observables. The main issue was that it simply never checked if an
existing end step existed. The code was also kinda hard to
read(:raised_hand_with_fingers_splayed: my fault) so I went ahead with a
bit of a cleanup there.

## Screenshots of UI changes
Before:
Zooming In:

![129f960a-2ee0-4762-98eb-875594b31b6f](https://user-images.githubusercontent.com/78179109/202584325-cdd164e7-2b04-4930-8de7-4c551ce85bcd.gif)

Resetting Zoom Level:

![00194071-2280-4d9b-953c-18740f7cad77](https://user-images.githubusercontent.com/78179109/202584465-4ddb3235-93b7-431b-92e1-16a7961d79e5.gif)


After:

![cf40658d-c57c-4d76-a267-9feb8b35f7fe](https://user-images.githubusercontent.com/78179109/202583150-6e7c662c-8230-4060-a289-7880dafda39a.gif)

## Detailed steps to verify changes work correctly (as executed by you)
1) Start tensorboard
2) Navigate to
http://localhost:6006?enableRangeSelection&enableDataTable
3) Place two fobs on the scalar card
4) Zoom in on a segment of the chart which contains both fobs (much
easier now that tensorflow#5932 is closed)
5) Assert neither fob has moved
6) Reset the chart zoom level
7) Assert that neither fob has moved.
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
…low#6058)

## Motivation for features / changes
When changing the zoom on the scalar card with an the end fob the end
fob was always placed at the maximum possible step.
For Googlers b/259562961

## Technical description of changes
The `StepSelectorTimeSelection` derived by a subscription to a bunch of
other Observables. The main issue was that it simply never checked if an
existing end step existed. The code was also kinda hard to
read(:raised_hand_with_fingers_splayed: my fault) so I went ahead with a
bit of a cleanup there.

## Screenshots of UI changes
Before:
Zooming In:

![129f960a-2ee0-4762-98eb-875594b31b6f](https://user-images.githubusercontent.com/78179109/202584325-cdd164e7-2b04-4930-8de7-4c551ce85bcd.gif)

Resetting Zoom Level:

![00194071-2280-4d9b-953c-18740f7cad77](https://user-images.githubusercontent.com/78179109/202584465-4ddb3235-93b7-431b-92e1-16a7961d79e5.gif)


After:

![cf40658d-c57c-4d76-a267-9feb8b35f7fe](https://user-images.githubusercontent.com/78179109/202583150-6e7c662c-8230-4060-a289-7880dafda39a.gif)

## Detailed steps to verify changes work correctly (as executed by you)
1) Start tensorboard
2) Navigate to
http://localhost:6006?enableRangeSelection&enableDataTable
3) Place two fobs on the scalar card
4) Zoom in on a segment of the chart which contains both fobs (much
easier now that tensorflow#5932 is closed)
5) Assert neither fob has moved
6) Reset the chart zoom level
7) Assert that neither fob has moved.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…low#6058)

## Motivation for features / changes
When changing the zoom on the scalar card with an the end fob the end
fob was always placed at the maximum possible step.
For Googlers b/259562961

## Technical description of changes
The `StepSelectorTimeSelection` derived by a subscription to a bunch of
other Observables. The main issue was that it simply never checked if an
existing end step existed. The code was also kinda hard to
read(:raised_hand_with_fingers_splayed: my fault) so I went ahead with a
bit of a cleanup there.

## Screenshots of UI changes
Before:
Zooming In:

![129f960a-2ee0-4762-98eb-875594b31b6f](https://user-images.githubusercontent.com/78179109/202584325-cdd164e7-2b04-4930-8de7-4c551ce85bcd.gif)

Resetting Zoom Level:

![00194071-2280-4d9b-953c-18740f7cad77](https://user-images.githubusercontent.com/78179109/202584465-4ddb3235-93b7-431b-92e1-16a7961d79e5.gif)


After:

![cf40658d-c57c-4d76-a267-9feb8b35f7fe](https://user-images.githubusercontent.com/78179109/202583150-6e7c662c-8230-4060-a289-7880dafda39a.gif)

## Detailed steps to verify changes work correctly (as executed by you)
1) Start tensorboard
2) Navigate to
http://localhost:6006?enableRangeSelection&enableDataTable
3) Place two fobs on the scalar card
4) Zoom in on a segment of the chart which contains both fobs (much
easier now that tensorflow#5932 is closed)
5) Assert neither fob has moved
6) Reset the chart zoom level
7) Assert that neither fob has moved.
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.

2 participants