Skip to content
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

fix(dashboards): Improve handling for TimeSeries with unknown data types #87306

Merged
merged 10 commits into from
Mar 19, 2025

Conversation

gggritso
Copy link
Member

Closes JAVASCRIPT-2YG7
Closes JAVASCRIPT-2YHG

TimeSeriesWidgetVisualization is failing on the Queues page if the project doesn't have any specific queue data. If it doesn't, one of the time series come back with a null type, it has no meta information. In this case, the visualization creates a "duration" axis for the one time series that has data, but doesn't create a fallback axis for the time series with a null type. This happens because I aggressively filtered out null types, since I didn't realize how often this happens.

Rather than patching over that bug, I've added new, more robust types and behaviour.

  • TimeSeries is allowed to have a null type, and the types are now more specifically set in TypeScript. This is just reality
  • Plottable is not allowed to have a null type. It must provide an actually plottable type! To this end, I added more specific types to explain what is and isn't plottable
  • TimeSeriesWidgetVisualization only works on plottables with good types, so the code there doesn't have to change, the error handling has been moved into the plottable implementations and enforced with types

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 18, 2025

This comment was marked as outdated.

@gggritso gggritso marked this pull request as ready for review March 18, 2025 19:34
@gggritso gggritso requested a review from a team as a code owner March 18, 2025 19:34
Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

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

lgtm 💯

@gggritso gggritso merged commit a2e42e3 into master Mar 19, 2025
40 checks passed
@gggritso gggritso deleted the fix/dashboards/better-multi-axis-unknown-handling branch March 19, 2025 14:44
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.

None yet

2 participants