Skip to content

fix(tracemetrics): Switching to equation mode clears aliases#117229

Merged
narsaynorath merged 2 commits into
masterfrom
nar/fix/tracemetrics-widget-builder-doesnt-clear-aliases
Jun 10, 2026
Merged

fix(tracemetrics): Switching to equation mode clears aliases#117229
narsaynorath merged 2 commits into
masterfrom
nar/fix/tracemetrics-widget-builder-doesnt-clear-aliases

Conversation

@narsaynorath

Copy link
Copy Markdown
Member

We don't support aliases yet for equations mode, so clear them when switching. They are cached in the series mode so when flipped back, they will still apply.

We don't support aliases yet for equations mode, so clear them when switching.
They are cached in the series mode so when flipped back, they will still apply.
@narsaynorath narsaynorath requested a review from a team June 9, 2026 19:57
@narsaynorath narsaynorath requested a review from a team as a code owner June 9, 2026 19:57
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 9, 2026

@adrianviquez adrianviquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm! Is there an easy way to properly toggle/untoggle the series/equation mode for the test so we don't have to mock the navigate?

@narsaynorath

Copy link
Copy Markdown
Member Author

Is there an easy way to properly toggle/untoggle the series/equation mode for the test so we don't have to mock the navigate?

@adrianviquez good call, the navigate call was the easiest thing to mock so we just did that since it's a side effect of updating the widget builder state, but I updated the test to just check the final alias state without checking the navigation. I think I'll update the rest of the tests to use a similar pattern afterwards

@narsaynorath narsaynorath enabled auto-merge (squash) June 10, 2026 14:00
@narsaynorath narsaynorath merged commit 0b367bf into master Jun 10, 2026
70 checks passed
@narsaynorath narsaynorath deleted the nar/fix/tracemetrics-widget-builder-doesnt-clear-aliases branch June 10, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants