Skip to content

fix(config): support colons in tag values (URLs, etc.)#953

Merged
dd-mergequeue[bot] merged 1 commit intomainfrom
tianning.li/SVLS-8095
Dec 4, 2025
Merged

fix(config): support colons in tag values (URLs, etc.)#953
dd-mergequeue[bot] merged 1 commit intomainfrom
tianning.li/SVLS-8095

Conversation

@litianningdatadog
Copy link
Copy Markdown
Contributor

https://datadoghq.atlassian.net/browse/SVLS-8095

Overview

Tag parsing previously used split(':') which broke values containing colons like URLs (git.repository_url:https://...). Changed to usesplitn(2, ':') to split only on the first colon, preserving the rest as the value.

Changes:

  • Add parse_key_value_tag() helper to centralize parsing logic
  • Refactor deserialize_key_value_pairs to use helper
  • Refactor deserialize_key_value_pair_array_to_hashmap to use helper
  • Add comprehensive test coverage for URL values and edge cases

Testing

unit test and expect e2e tests to pass

@litianningdatadog litianningdatadog requested a review from a team as a code owner December 4, 2025 17:28
@litianningdatadog
Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow-routing-codex
Copy link
Copy Markdown

dd-devflow-routing-codex Bot commented Dec 4, 2025

View all feedbacks in Devflow UI.

2025-12-04 19:03:46 UTC ℹ️ Start processing command /merge


2025-12-04 19:03:51 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 1m (p90).


2025-12-04 19:27:23 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue Bot merged commit 56d4a07 into main Dec 4, 2025
45 checks passed
@dd-mergequeue dd-mergequeue Bot deleted the tianning.li/SVLS-8095 branch December 4, 2025 19:27
duncanpharvey pushed a commit that referenced this pull request Mar 10, 2026
https://datadoghq.atlassian.net/browse/SVLS-8095

## Overview
Tag parsing previously used split(':') which broke values containing colons like URLs (git.repository_url:https://...). Changed to usesplitn(2, ':') to split only on the first colon, preserving the rest as the value.

Changes:
 - Add parse_key_value_tag() helper to centralize parsing logic
 - Refactor deserialize_key_value_pairs to use helper
 - Refactor deserialize_key_value_pair_array_to_hashmap to use helper
 - Add comprehensive test coverage for URL values and edge cases

## Testing 
unit test and expect e2e tests to pass

Co-authored-by: tianning.li <tianning.li@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants