Skip to content

validation/limits: remove name ValidationSchemeValue in favor of prometheus/common/model.ValidationScheme - #12505

Merged
juliusmh merged 1 commit into
mainfrom
jmh/validation_scheme_flag_cleanup
Aug 26, 2025
Merged

validation/limits: remove name ValidationSchemeValue in favor of prometheus/common/model.ValidationScheme#12505
juliusmh merged 1 commit into
mainfrom
jmh/validation_scheme_flag_cleanup

Conversation

@juliusmh

Copy link
Copy Markdown
Contributor

What this PR does

Removes unnecessary validation.ValidationSchemeValue because prometheus/common#807 was merged.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • about-versioning.md updated with experimental features.

@juliusmh
juliusmh requested a review from a team as a code owner August 26, 2025 10:48
@juliusmh juliusmh self-assigned this Aug 26, 2025
@juliusmh juliusmh added the changelog-not-needed PRs that don't need a CHANGELOG.md entry label Aug 26, 2025
@juliusmh
juliusmh requested a review from aknuds1 August 26, 2025 10:49
@aknuds1
aknuds1 requested a review from Copilot August 26, 2025 10:51

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

This PR removes the local ValidationSchemeValue wrapper type in favor of using the direct model.ValidationScheme type from the prometheus/common/model package, following the merge of a related upstream PR.

  • Removes the custom ValidationSchemeValue type and its implementation file
  • Updates all references to use model.ValidationScheme directly
  • Removes associated test files for the wrapper type

Reviewed Changes

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

Show a summary per file
File Description
pkg/util/validation/validation_scheme_value.go Removes the custom ValidationSchemeValue wrapper type
pkg/util/validation/validation_scheme_value_test.go Removes tests for the ValidationSchemeValue wrapper
pkg/util/validation/limits.go Updates field type to use model.ValidationScheme directly
pkg/util/validation/limits_test.go Updates test assertions to use model.ValidationScheme
pkg/distributor/validate_test.go Updates test setup to use model.ValidationScheme
pkg/distributor/otel_test.go Updates test setup to use model.ValidationScheme

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread pkg/util/validation/limits.go Outdated

@aknuds1 aknuds1 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 modulo the Copilot suggestion. Thanks!

@juliusmh
juliusmh force-pushed the jmh/validation_scheme_flag_cleanup branch from 273271a to ac1267c Compare August 26, 2025 11:07
@juliusmh
juliusmh merged commit 6ac9b58 into main Aug 26, 2025
37 checks passed
@juliusmh
juliusmh deleted the jmh/validation_scheme_flag_cleanup branch August 26, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-not-needed PRs that don't need a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants