Skip to content

PMM-15079: fix missing properties migration from timeseries panels#902

Open
fabio-silva wants to merge 3 commits into
mainfrom
PMM-15079-fix-dashboard-sorting
Open

PMM-15079: fix missing properties migration from timeseries panels#902
fabio-silva wants to merge 3 commits into
mainfrom
PMM-15079-fix-dashboard-sorting

Conversation

@fabio-silva
Copy link
Copy Markdown

@fabio-silva fabio-silva commented May 19, 2026

PMM-15079

SUBMODULES-4367

Fix panel migration to re-instate default sorting on timeseries panels.

Opened PR upstream as well:
grafana#125137

@fabio-silva fabio-silva requested review from a team, Copilot, matejkubinec and mattiasimonato and removed request for a team May 19, 2026 12:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a gap in the Graph → TimeSeries panel migration so that legend table sorting settings (sort column + direction) are preserved/restored when migrating legacy Graph panel configurations.

Changes:

  • Migrate legacy legend sorting configuration (sortBy/sort and sortDesc) into TimeSeries options.legend.
  • Add a legacy-to-TimeSeries mapping helper for legend sort keys.
  • Add unit tests to validate sort migration behavior for both sortBy and legacy sort.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
public/app/plugins/panel/timeseries/migrations.ts Migrates legacy legend sorting settings into TimeSeries legend options and adds a helper to map legacy sort keys.
public/app/plugins/panel/timeseries/migrations.test.ts Adds tests covering sort key and sort direction migration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/app/plugins/panel/timeseries/migrations.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants