grafana / grok

Grafana Object Development Kit
Apache License 2.0
50 stars 1 forks source link

Maturity: make minimum configurable #17

Closed malcolmholmes closed 1 year ago

malcolmholmes commented 1 year ago

Grok currently imposes a minimum level of maturity of experimental. This makes clear sense - anything less than experimental lacks sufficient thought to be reliably usable.

However, in the very early phases of building downstream libraries, access to a schema (however immature) is more valuable than a guarantee of minimum maturity.

This PR allows the user invoking go generate to set a mimimum maturity, potentially including the merged schemas. This could also be used to only render schemas that are stable or merged.

It is fully intended that this feature will not be used once Grok goes GA, and could well be removed.

This PR depends upon https://github.com/grafana/grafana/pull/63631.

sdboyer commented 1 year ago

i realize you've moved on from this, but fwiw i wouldn't object to having it if only for testing purposes. But, closing for now