Skip to content

Revert "Temporarily support legacy schema return from the backend"#911

Merged
jasonforal merged 1 commit into
mainfrom
jf/config
May 13, 2026
Merged

Revert "Temporarily support legacy schema return from the backend"#911
jasonforal merged 1 commit into
mainfrom
jf/config

Conversation

@jasonforal

Copy link
Copy Markdown
Collaborator

What this PR does

When the backend migrated to support the v1 configuration file, there was a manual override that allowed reverting back to the legacy file in case of unforeseen issues. 09c361e was thus added to gracefully handle that scenario. This override has since been removed from the backend, and so given the ?schema_version=v1 query param, the backend will always respond with a v1 configuration. Thus, this commit can be reverted now (as was originally intended)

Copilot AI review requested due to automatic review settings May 13, 2026 14:17
@jasonforal
jasonforal requested a review from a team as a code owner May 13, 2026 14:17

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 reverts the previously-added “temporary legacy schema” handling for remote configuration parsing, based on the backend now always returning a v1 configuration when ?schema_version=v1 is used.

Changes:

  • Switch remote configuration parsing from parse_any_schema_yaml (legacy-or-v1) back to strict file_v1::parse_yaml.
  • Remove the legacy-to-v1 conversion path for remote configs (WithVersion::Legacy mapping).

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

@datadog-official

This comment has been minimized.

@jasonforal
jasonforal merged commit 2383f04 into main May 13, 2026
111 of 112 checks passed
@jasonforal
jasonforal deleted the jf/config branch May 13, 2026 19:38
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.

3 participants