Skip to content

ref(insights): Improve TimeSeriesWidgetVisualization series name rendering#95078

Merged
gggritso merged 2 commits into
masterfrom
ref/insights/improve-series-formatting
Jul 9, 2025
Merged

ref(insights): Improve TimeSeriesWidgetVisualization series name rendering#95078
gggritso merged 2 commits into
masterfrom
ref/insights/improve-series-formatting

Conversation

@gggritso

@gggritso gggritso commented Jul 8, 2025

Copy link
Copy Markdown
Member

Preparation for an incoming refactor.

  1. formatSeriesName is now called formatTimeSeriesName, because it accepts a TimeSeries! This is an important change because soon I will take TimeSeries.groupBy into account when formatting the names
  2. Remove direct usage for formatSeriesName from Release Health charts. That's a very specific usage, it's only doing version formatting, so it should use the underlying helper

gggritso added 2 commits July 8, 2025 17:35
Use the specific function they actually need, rather than the whole
series formatter, so I can change the function freely.
This way we can use all information about the `TimeSeries`, like its
`groupBy`
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 8, 2025
@gggritso gggritso requested a review from michellewzhang July 8, 2025 22:07
@gggritso gggritso marked this pull request as ready for review July 8, 2025 22:07
@gggritso gggritso requested review from a team July 8, 2025 22:07
@gggritso gggritso merged commit 5f6cfbb into master Jul 9, 2025
46 checks passed
@gggritso gggritso deleted the ref/insights/improve-series-formatting branch July 9, 2025 13:35
@codecov

codecov Bot commented Jul 9, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #95078      +/-   ##
==========================================
- Coverage   84.61%   83.40%   -1.21%     
==========================================
  Files       10448    10448              
  Lines      604624   604621       -3     
  Branches    23607    23604       -3     
==========================================
- Hits       511613   504303    -7310     
- Misses      92522    99829    +7307     
  Partials      489      489              

andrewshie-sentry pushed a commit that referenced this pull request Jul 14, 2025
…ndering (#95078)

Preparation for an incoming refactor.

1. `formatSeriesName` is now called `formatTimeSeriesName`, because it
accepts a `TimeSeries`! This is an important change because soon I will
take `TimeSeries.groupBy` into account when formatting the names
2. Remove direct usage for `formatSeriesName` from Release Health
charts. That's a very specific usage, it's _only_ doing version
formatting, so it should use the underlying helper
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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