Skip to content

Conversation

ryantxu
Copy link
Contributor

@ryantxu ryantxu commented Sep 2, 2025

In #108416, we added a PanelPluginInfoProvider to the migrator -- we should avoid this unless it is absolutely necessary and is actually used to migrate the panels.

From the current usage it is not necessary and would put real values into an invalid state

@ryantxu ryantxu added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Sep 2, 2025
@ryantxu ryantxu marked this pull request as ready for review September 3, 2025 06:14
@ryantxu ryantxu requested review from a team as code owners September 3, 2025 06:14
@ryantxu ryantxu requested review from radiohead and removed request for a team September 3, 2025 06:14
@github-actions github-actions bot added this to the 12.2.x milestone Sep 3, 2025
25: V25,
26: V26,
27: V27,
28: V28(panelProvider),
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically we could even refactor v28 migrator to not have be a factory, and follow all the other migrators pattern except the ones with datasources

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes... but i think we will need to refactor all of them to accept context.Context soon anyway

- Replace hardcoded plugin versions in V24 and V28 migrations with setting.BuildVersion
- Add fallback to current dev version (12.2.0-pre) for test environments
- Update test expectations and mock plugin versions to match dynamic versioning
- Regenerate migration test output files with current versions
@ryantxu ryantxu requested a review from a team as a code owner September 4, 2025 10:21
@ryantxu ryantxu removed the request for review from a team September 4, 2025 10:21
@ryantxu ryantxu requested a review from gassiss September 4, 2025 10:21
Copy link
Collaborator

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

Thanks Ryan!

@ryantxu ryantxu merged commit 8052ecb into main Sep 4, 2025
147 checks passed
@ryantxu ryantxu deleted the dashboard-migraitons-remove-panel-provider branch September 4, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend area/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants