-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(1429): Typing full URI in Endpoint's name generates bad YAML #1467
Conversation
a90d684
to
d336509
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1467 +/- ##
=======================================
Coverage ? 68.64%
Complexity ? 25
=======================================
Files ? 269
Lines ? 7722
Branches ? 1537
=======================================
Hits ? 5301
Misses ? 2372
Partials ? 49 ☔ View full report in Codecov by Sentry. |
@@ -109,7 +109,7 @@ export class CamelUriHelper { | |||
queryString?.split('&').reduce((parameters, parameter) => { | |||
if (parameter) { | |||
const [key, stringValue] = parameter.split('='); | |||
parameters[key] = getParsedValue(stringValue); | |||
if (isDefined(stringValue) && stringValue !== '') parameters[key] = getParsedValue(stringValue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (isDefined(stringValue) && stringValue !== '') parameters[key] = getParsedValue(stringValue); | |
if (isDefined(stringValue) && stringValue !== '') { | |
parameters[key] = getParsedValue(stringValue); | |
} |
Object.entries(CamelUriHelper.getParametersFromQueryString(queryUri)).reduce((parameters, parameter) => { | ||
if (parameter) { | ||
const [key, stringValue] = parameter; | ||
if (catalogLookup.definition?.properties[key]) parameters[key] = stringValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (catalogLookup.definition?.properties[key]) parameters[key] = stringValue; | |
if (catalogLookup.definition?.properties[key]) { | |
parameters[key] = stringValue; | |
} |
} | ||
|
||
return parameters; | ||
}, {} as ParsedParameters) ?? {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, {} as ParsedParameters) ?? {}; | |
}, {} as ParsedParameters); |
Quality Gate failedFailed conditions |
Created new PR : #1493 |
Fixes #1429