-
Notifications
You must be signed in to change notification settings - Fork 2k
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(sdk): include some missing properties in request body in transforming #8297
base: develop
Are you sure you want to change the base?
Conversation
@@ -22,6 +23,10 @@ export class Environment { | |||
}; | |||
|
|||
set = (variableName: string, variableValue: boolean | number | string) => { | |||
if (variableValue === null) { |
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.
The varaibleValue
seems inconsistent with the type definition.
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.
Good catch, updated.
@@ -14,8 +14,11 @@ export class Console { | |||
// TODO: support replacing substitution | |||
printLog = (rows: Row[], level: LogLevel, ...values: any) => { | |||
try { | |||
const content = values.map((a: any) => JSON.stringify(a, null, 2).replace('\\n', '\n')) |
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.
When will it include \\n
?
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.
JSON.stringify
may transform \n
into \\n
in a
(if it is a string).
Also with some minor fixes.
Changes
\n
and print params in one line (instead of multiple lines)null
to environmentMultipart body
log output
In test, actual got value is 200, and expected value is a long string.
Ref: INS-4795, #8240