Skip to content

Fix grafana schema#263

Merged
janboll merged 3 commits into
mainfrom
fix-grafana-types
Jul 6, 2026
Merged

Fix grafana schema#263
janboll merged 3 commits into
mainfrom
fix-grafana-types

Conversation

@janboll

@janboll janboll commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Need to use values for parameters, cause the current approach does not work
Also delete tags, cause we do not have it as of now and it only complicates things.

Need to use values for parameters, cause the current approach does not work
Copilot AI review requested due to automatic review settings July 2, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GrafanaManage pipeline step contract to support parameterized inputs via the shared Value shape (configRef/input/value) and removes tag support that is currently not used, aligning the JSON schema and Go types with the intended pipeline authoring model.

Changes:

  • Removed --tags support from grafanactl manage reconcile and stopped merging arbitrary tags into the ARM request.
  • Updated pipeline.schema.v1.json GrafanaManage step properties to use #/definitions/value and removed the tags property.
  • Updated GrafanaManageStep Go type to use Value fields (and removed Tags) to match the schema.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
tools/grafanactl/cmd/manage/options.go Removes Tags option and its CLI flag binding.
tools/grafanactl/cmd/manage/cmd.go Removes merging of user-provided tags into the Grafana ARM resource tags map.
pipelines/types/pipeline.schema.v1.json Switches GrafanaManage step fields to value references and removes tags; updates timeout typing for this step.
pipelines/types/common.go Updates GrafanaManageStep field types to Value and removes Tags to match schema.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pipelines/types/common.go Outdated
Comment thread pipelines/types/pipeline.schema.v1.json
Comment thread pipelines/types/pipeline.schema.v1.json
Comment thread pipelines/types/pipeline.schema.v1.json
Copilot AI review requested due to automatic review settings July 3, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread pipelines/types/pipeline.schema.v1.json

@raelga raelga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@raelga raelga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@janboll janboll merged commit 3679b62 into main Jul 6, 2026
3 checks passed
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.

4 participants