-
Notifications
You must be signed in to change notification settings - Fork 281
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
CP-47356: Support backwards capability for Go SDK #5620
CP-47356: Support backwards capability for Go SDK #5620
Conversation
ef2a295
to
ba92171
Compare
From generated source files, for methods under session.go, it's not correct. eg. func (class *Session) LoginWithPassword3(pwd string, version string) (retval SessionRef, err error) {
method := "session.login_with_password"
unameArg, err := serializeString(fmt.Sprintf("%s(%s)", method, "uname"), uname)
if err != nil {
return
}
pwdArg, err := serializeString(fmt.Sprintf("%s(%s)", method, "pwd"), pwd)
if err != nil {
return
}
versionArg, err := serializeString(fmt.Sprintf("%s(%s)", method, "version"), version)
if err != nil {
return
}
result, err := class.client.sendCall(method, unameArg, pwdArg, versionArg)
if err != nil {
return
}
retval, err = deserializeSessionRef(method+" -> ", result)
if err != nil {
return
}
class.ref = retval
err = setSessionDetails(class)
return
} obviously missing parameter "uname" in functions. please check the generated JSON data. |
Yeah, there is a bug here. I'll fix soon. -- |
ba92171
to
e95c93e
Compare
… for usage of other modules Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
f7f8cff
to
c2738c2
Compare
When checking Golong lint , got 3 errors, could you please check why the method version for "VM.restart_device_models" is null? root@3eea0d3e0e5d:/app/go/goSDK# golangci-lint run --config=/app/.golangci.yml
WARN The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner.
WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd.
vm.go:264: File is not `gci`-ed with --skip-generated -s standard -s default (gci)
//
vm.go:287: File is not `gci`-ed with --skip-generated -s standard -s default (gci)
//
vm.go:314: File is not `gci`-ed with --skip-generated -s standard -s default (gci)
//
3 issues:
* gci: 3 |
There is a bug hidden here. I'll fix it soon. |
c2738c2
to
a9b0904
Compare
Golang lint checking pass. root@3eea0d3e0e5d:/app/go/goSDK# golangci-lint run --config=/app/.golangci.yml
WARN The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd.
WARN The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner.
0 issues. test with xs-samples go project, no special error found. |
Hi @duobei |
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
…unctions Signed-off-by: xueqingz <xueqing.zhang@citrix.com> Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
…h_enums` Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
Signed-off-by: Luca Zhang <feiya.zhang@cloud.com>
874f9a6
to
2e5635f
Compare
pytype_reporter extracted 50 problem reports from pytype output. You can check the results of the job here |
No description provided.