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:
sam boyer
2023-05-15 23:07:54 -04:00
committed by GitHub
parent 5a5860256f
commit 33fd83f7e3
202 changed files with 618 additions and 617 deletions

View File

@ -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,