-
Notifications
You must be signed in to change notification settings - Fork 465
Support ternaries in marker labels #5818
Copy link
Copy link
Labels
markersAnything to do with marker data structures, marker chart, or the marker tableAnything to do with marker data structures, marker chart, or the marker tablepolishSmall features or changes that do not require planning to work on. These help out our end users.Small features or changes that do not require planning to work on. These help out our end users.
Metadata
Metadata
Assignees
Labels
markersAnything to do with marker data structures, marker chart, or the marker tableAnything to do with marker data structures, marker chart, or the marker tablepolishSmall features or changes that do not require planning to work on. These help out our end users.Small features or changes that do not require planning to work on. These help out our end users.
This issue relates to https://bugzilla.mozilla.org/show_bug.cgi?id=2014999
parseLabel() only supports accessing fields in the marker, if we could process the fields with operators such as the ternary, we would be able to remove fields from the recorded data that can be deduced from other fields.
For example, the TimerMarker uses a prefix string field to display a ❌ when the timer is canceled. A better solution would be to use a ternary in the label string, like this
┆Issue is synchronized with this Jira Task