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

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

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Jun 24, 2024

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

@K-Phoen K-Phoen requested a review from a team as a code owner June 24, 2024 14:18
Copy link

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

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

@K-Phoen K-Phoen merged commit 70ea20f into main Jun 24, 2024
11 checks passed
@K-Phoen K-Phoen deleted the release-update-registry branch June 24, 2024 19:18
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