grafana / cog

Code Generation with a human touch
Apache License 2.0
48 stars 2 forks source link

Ensure the local kind-registry is up-to-date before releasing #483

Closed K-Phoen closed 4 months ago

K-Phoen commented 4 months ago

Otherwise there's a risk of us releasing a foundation-sdk based on outdated schemas :|

github-actions[bot] commented 4 months ago

Note: in addition to the changes introduced by this PR, the diff includes unreleased changes living in main.

### 🔎 Changes to `grafana-foundation-sdk@next+cog-v0.0.x` ```patch diff --git a/python/grafana_foundation_sdk/cog/plugins.py b/python/grafana_foundation_sdk/cog/plugins.py index 1a2e2d0..5317531 100644 --- a/python/grafana_foundation_sdk/cog/plugins.py +++ b/python/grafana_foundation_sdk/cog/plugins.py @@ -1,39 +1,39 @@ # Code generated - EDITING IS FUTILE. DO NOT EDIT. +from ..models import canvas from ..models import googlecloudmonitoring -from ..models import nodegraph -from ..models import tempo -from ..models import text -from ..models import cloudwatch -from ..models import dashboardlist -from ..models import parca -from ..models import table -from ..models import barchart from ..models import statushistory -from ..models import timeseries -from ..models import stat -from ..models import gauge -from ..models import heatmap -from ..models import xychart +from ..models import expr from ..models import azuremonitor -from ..models import annotationslist -from ..models import bargauge from ..models import elasticsearch from ..models import geomap -from ..models import histogram -from ..models import logs -from ..models import candlestick from ..models import grafanapyroscope -from ..models import news +from ..models import nodegraph +from ..models import histogram from ..models import piechart -from ..models import expr -from ..models import datagrid -from ..models import debug from ..models import loki +from ..models import tempo +from ..models import text +from ..models import debug +from ..models import logs +from ..models import parca from ..models import statetimeline from ..models import trend +from ..models import bargauge +from ..models import gauge +from ..models import news +from ..models import table +from ..models import heatmap +from ..models import annotationslist +from ..models import barchart +from ..models import candlestick +from ..models import cloudwatch +from ..models import dashboardlist +from ..models import datagrid +from ..models import stat +from ..models import timeseries +from ..models import xychart from ..models import prometheus -from ..models import canvas from . import runtime as cogruntime diff --git a/python/grafana_foundation_sdk/models/cloudwatch.py b/python/grafana_foundation_sdk/models/cloudwatch.py index 68ad69b..d9d5c79 100644 --- a/python/grafana_foundation_sdk/models/cloudwatch.py +++ b/python/grafana_foundation_sdk/models/cloudwatch.py @@ -894,7 +894,7 @@ CloudWatchQuery: typing.TypeAlias = typing.Union['CloudWatchMetricsQuery', 'Clou def variant_config() -> cogruntime.DataqueryConfig: - decoding_map: dict[str, typing.Union[typing.Type[CloudWatchMetricsQuery], typing.Type[CloudWatchLogsQuery], typing.Type[CloudWatchAnnotationQuery]]] = {"Metrics": CloudWatchMetricsQuery, "Logs": CloudWatchLogsQuery, "Annotations": CloudWatchAnnotationQuery} + decoding_map: dict[str, typing.Union[typing.Type[CloudWatchLogsQuery], typing.Type[CloudWatchAnnotationQuery], typing.Type[CloudWatchMetricsQuery]]] = {"Logs": CloudWatchLogsQuery, "Annotations": CloudWatchAnnotationQuery, "Metrics": CloudWatchMetricsQuery} return cogruntime.DataqueryConfig( identifier="cloudwatch", from_json_hook=lambda data: decoding_map[data["queryMode"]].from_json(data), diff --git a/python/grafana_foundation_sdk/models/expr.py b/python/grafana_foundation_sdk/models/expr.py index bcd9dbf..0cd9080 100644 --- a/python/grafana_foundation_sdk/models/expr.py +++ b/python/grafana_foundation_sdk/models/expr.py @@ -9,7 +9,7 @@ Expr: typing.TypeAlias = typing.Union['TypeMath', 'TypeReduce', 'TypeResample', def variant_config() -> cogruntime.DataqueryConfig: - decoding_map: dict[str, typing.Union[typing.Type[TypeReduce], typing.Type[TypeResample], typing.Type[TypeClassicConditions], typing.Type[TypeThreshold], typing.Type[TypeSql], typing.Type[TypeMath]]] = {"reduce": TypeReduce, "resample": TypeResample, "classic_conditions": TypeClassicConditions, "threshold": TypeThreshold, "sql": TypeSql, "math": TypeMath} + decoding_map: dict[str, typing.Union[typing.Type[TypeSql], typing.Type[TypeMath], typing.Type[TypeReduce], typing.Type[TypeResample], typing.Type[TypeClassicConditions], typing.Type[TypeThreshold]]] = {"sql": TypeSql, "math": TypeMath, "reduce": TypeReduce, "resample": TypeResample, "classic_conditions": TypeClassicConditions, "threshold": TypeThreshold} return cogruntime.DataqueryConfig( identifier="__expr__", from_json_hook=lambda data: decoding_map[data["type"]].from_json(data), diff --git a/python/pyproject.toml b/python/pyproject.toml index 6382073..7542f17 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -13,7 +13,7 @@ keywords = [ "traces", "metrics" ] -version = "1719238427!next" +version = "1719238708!next" dependencies = [] requires-python = ">=3.11" classifiers = [ diff --git a/typescript/package.json b/typescript/package.json index 20699cd..91a5026 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@grafana/grafana-foundation-sdk", - "version": "next-cogv0.0.x.1719238427", + "version": "next-cogv0.0.x.1719238708", "description": "A set of tools, types and libraries for building and manipulating Grafana objects.", "keywords": [ "observability", ```