Commit f52eb8c
authored
Use maximum step as default for single step selection. (#6372)
## Motivation for features / changes
We are changing single step selection to default to the maximum step. We
think this is more useful than making the default the minimum step.
This also means that when step selection changes from single selection
to range selection, the minimum value of the chart is added as the start
of the range and the previous single step now becomes the end of the
range. Similarly, when step selection changes from range selection to
single selection, the new single selection is the previous maximum value
of the range.
## Technical description of changes
Where default value is set to "min" step, instead set it to the "max"
step. Where range selection is enabled, ensure the new start of the
range is the "min" step.
I have three internal CLs that accompagny this change.
* cl/528745120 adjusts or comments out code to allow the import to
succeed. It will be submitted prior to merging this PR.
* cl/528745440 is a set of harmless screenshot-updates. It will be
patched into the import CL and submitted at the same time as the import.
* cl/528745657 is a set of changes to uncomment out the code from the
first CL and make remaining adjustments. It will be submitted after the
import.
## Detailed steps to verify changes work correctly (as executed by you)
* I tested it manually quite a bit.
* I imported it into the internal repo and ensured that end-to-end tests
pass (after adjusting for the change in behavior).1 parent 5ea918e commit f52eb8c
File tree
5 files changed
+47
-25
lines changed- tensorboard/webapp/metrics
- store
- views/card_renderer
5 files changed
+47
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | | - | |
1145 | | - | |
| 1144 | + | |
| 1145 | + | |
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1205 | 1208 | | |
1206 | | - | |
1207 | | - | |
| 1209 | + | |
| 1210 | + | |
1208 | 1211 | | |
1209 | 1212 | | |
1210 | 1213 | | |
1211 | 1214 | | |
| 1215 | + | |
1212 | 1216 | | |
1213 | | - | |
| 1217 | + | |
1214 | 1218 | | |
1215 | 1219 | | |
1216 | 1220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4057 | 4057 | | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | | - | |
4061 | | - | |
| 4060 | + | |
| 4061 | + | |
4062 | 4062 | | |
4063 | 4063 | | |
4064 | 4064 | | |
| |||
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
4076 | | - | |
| 4076 | + | |
4077 | 4077 | | |
4078 | 4078 | | |
4079 | 4079 | | |
| |||
4358 | 4358 | | |
4359 | 4359 | | |
4360 | 4360 | | |
4361 | | - | |
| 4361 | + | |
4362 | 4362 | | |
4363 | 4363 | | |
4364 | 4364 | | |
4365 | 4365 | | |
4366 | 4366 | | |
4367 | 4367 | | |
4368 | 4368 | | |
4369 | | - | |
| 4369 | + | |
4370 | 4370 | | |
4371 | 4371 | | |
4372 | 4372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
604 | 626 | | |
605 | | - | |
606 | 627 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
| 628 | + | |
611 | 629 | | |
612 | 630 | | |
613 | 631 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | | - | |
| 1439 | + | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | 1442 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3971 | 3971 | | |
3972 | 3972 | | |
3973 | 3973 | | |
3974 | | - | |
| 3974 | + | |
3975 | 3975 | | |
3976 | 3976 | | |
3977 | 3977 | | |
| |||
0 commit comments