Skip to content

fix: validating passed address and workspace params before creating a http target#1946

Merged
Prashansa-K merged 4 commits intomainfrom
fix/addr-workspace-input
Mar 23, 2026
Merged

fix: validating passed address and workspace params before creating a http target#1946
Prashansa-K merged 4 commits intomainfrom
fix/addr-workspace-input

Conversation

@Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Mar 23, 2026

@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2026

Codecov Report

❌ Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.51%. Comparing base (633b814) to head (bf8c5c8).

Files with missing lines Patch % Lines
cmd/common.go 0.00% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1946      +/-   ##
==========================================
- Coverage   33.54%   33.51%   -0.04%     
==========================================
  Files          76       76              
  Lines        6711     6726      +15     
==========================================
+ Hits         2251     2254       +3     
- Misses       4280     4293      +13     
+ Partials      180      179       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Prashansa-K Prashansa-K requested review from harshadixit12 and shivaygupta-dotcom and removed request for shivaygupta-dotcom March 23, 2026 07:17
cmd/common.go Outdated
return "", err
}
// Validate address scheme before constructing the fallback URL.
if err := validateAddress(reconcilerUtils.CleanAddress(config.Address)); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

One nit - if we store the returned value from reconcilerUtils.CleanAddress(config.Address), we can avoid a subsequent call in line 796

LGTM other than this.

@Prashansa-K Prashansa-K merged commit ea99142 into main Mar 23, 2026
40 checks passed
@Prashansa-K Prashansa-K deleted the fix/addr-workspace-input branch March 23, 2026 12:24
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