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

refactor(base): veneer, type derivation and missing schema's #43

Merged
merged 3 commits into from
May 16, 2023

Conversation

Duologic
Copy link
Member

@Duologic Duologic commented May 8, 2023

Review tip: each commit can be reviewed separately.

refactor(base): take functional approach to adding veneer

The veneer was set up to squash everything on top, this functional approach takes a more
rigorous approach by injecting the veneer closer to the initialization of the original
code.

refactor(base): use schema.info.title to derive type

Previously the panel type schema's were characterized by PanelOptions and PanelFieldConfig
fields, these will change in the near future. Turns out deriving the type from the name is
equally consistent, I don't know why I didn't do that initially.

fix(base): provide backfilling of missing schemas

The referenced schema's are in fact empty and part of the skipPlugins list in Grafana,
newer version rendered by Grok will not include these schema's regardless of the
skipPlugins entry. This commit adds a bit of code that adds the missing plugins with
a generic schema so Grafonnet can keep feature parity with previous versions.

@Duologic Duologic force-pushed the duologic/restructure_veneer branch from 4e03465 to 2c5a451 Compare May 9, 2023 18:20
@Duologic
Copy link
Member Author

Duologic commented May 9, 2023

rebased.

@Duologic Duologic merged commit ad3553a into main May 16, 2023
@Duologic Duologic deleted the duologic/restructure_veneer branch May 16, 2023 08:26
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.

None yet

2 participants