-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"units" displayed instead of "unit" in the plot top legend and legend form #5540
Closed
2 of 7 tasks
Labels
Milestone
Comments
nunoguedelha
added a commit
to ami-iit/openmct
that referenced
this issue
Jul 21, 2022
…lemetry data "unit" within the legend and form handling (nasa#5540)
nunoguedelha
added a commit
to ami-iit/openmct
that referenced
this issue
Jul 21, 2022
Rename the `units` attribute to `unit` when referencing the telemetry data "unit" within: - the legend-form vue for setting the `valueToShowWhenCollapsed` and `showUnitsWhenExpanded` and displaying the available choices in write mode, - the plot-options-browse vue for displaying the selected choices within the form in read mode, - the plot-legend-item-collapsed when checking which field to display.
This was referenced Jul 21, 2022
jvigliotta
pushed a commit
that referenced
this issue
Aug 23, 2022
…GEND form, top legend display and documentation (#5546) * [Plot] Rename the `units` attribute to `unit` (#5540) Rename the `units` attribute to `unit` when referencing the telemetry data "unit" within: - the legend-form vue for setting the `valueToShowWhenCollapsed` and `showUnitsWhenExpanded` and displaying the available choices in write mode, - the plot-options-browse vue for displaying the selected choices within the form in read mode, - the plot-legend-item-collapsed when checking which field to display. * [Documentation] Update API documentation (#3562)
Verified Fixed in Testathon on 09/30/22 |
Verified 09/30/22 Testathon |
Verified Testathon 9/30/22 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
The options "Show When Collapsed" and "Show When Expanded" in the Overlay Plot right pane form display "units" instead of "unit" (we disregard the case intentionally here), when just viewing as well as editing. Not a big deal, but this is not coherent with the choice of naming this field "unit" elsewhere (refer to #3562 ) and can lead to confusion.
Expected vs Current Behavior
The user should always see the same reference to this field: "unit", "Unit". More specifically, the
config.legend
field should be called "unit", as the existing fieldPlotSeries.metadata["<some-y-key>"].unit
and the "unit" field of the Telemetry "range" values.Steps to Reproduce
Environment
`npx envinfo --system --browsers --npmPackages --binaries --markdown` command output
System:
Binaries:
Browsers:
npmPackages:
master
branch, SHA 488cd82Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: