mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 04:19:26 +08:00
kindsys: Adapt to new PanelCfg schema interface (#65297)
* kindsys: Adapt to new PanelCfg schema interface * building locally * Remove Panel prefix in cue files * Regenerate * Update imports * fixup! Merge branch 'remove-panel-prefix' into sdboyer/redundant-panelcfg-prefixes * Fix formatting --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com> Co-authored-by: Tania B <yalyna.ts@gmail.com>
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { FieldConfigSource, PanelModel } from '@grafana/data';
|
||||
|
||||
import { TextMode, PanelOptions } from './panelcfg.gen';
|
||||
import { TextMode, Options } from './panelcfg.gen';
|
||||
import { textPanelMigrationHandler } from './textPanelMigrationHandler';
|
||||
|
||||
describe('textPanelMigrationHandler', () => {
|
||||
@ -38,7 +38,7 @@ describe('textPanelMigrationHandler', () => {
|
||||
|
||||
describe('when invoked and previous version was not old Angular text panel', () => {
|
||||
it('then should just pass options through', () => {
|
||||
const panel: PanelModel<PanelOptions> = {
|
||||
const panel: PanelModel<Options> = {
|
||||
id: 1,
|
||||
type: 'text',
|
||||
fieldConfig: {} as unknown as FieldConfigSource,
|
||||
@ -64,7 +64,7 @@ describe('textPanelMigrationHandler', () => {
|
||||
describe('when invoked and previous version was using text mode', () => {
|
||||
it('then should switch to markdown', () => {
|
||||
const mode = 'text' as unknown as TextMode;
|
||||
const panel: PanelModel<PanelOptions> = {
|
||||
const panel: PanelModel<Options> = {
|
||||
id: 1,
|
||||
type: 'text',
|
||||
fieldConfig: {} as unknown as FieldConfigSource,
|
||||
|
Reference in New Issue
Block a user