-
Notifications
You must be signed in to change notification settings - Fork 286
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
[to-reply] feature: support saga multi type config #741
base: feature/saga
Are you sure you want to change the base?
[to-reply] feature: support saga multi type config #741
Conversation
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.
apache License 要加上,其他的酌情考虑下
pkg/saga/statemachine/statelang/parser/statemachine_config_parser.go
Outdated
Show resolved
Hide resolved
pkg/saga/statemachine/statelang/parser/statemachine_config_parser.go
Outdated
Show resolved
Hide resolved
|
||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
_, err := parser.Parse(tt.configFilePath) |
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.
这里对字段的值进行断言?
pkg/saga/statemachine/statelang/parser/statemachine_config_parser_test.go
Show resolved
Hide resolved
apache License 要在你所有新增的文件上加上,只要没有的,都要加上 |
好的 |
pkg/saga/statemachine/statelang/parser/statemachine_json_parser.go
Outdated
Show resolved
Hide resolved
…ncubator-seata-go into feature-saga-multi-type-config
Quality Gate passedIssues Measures |
@@ -242,7 +259,7 @@ func (s ServiceTaskStateParser) Parse(stateName string, stateMap map[string]inte | |||
return nil, err | |||
} | |||
|
|||
serviceName, err := s.GetString(stateName, stateMap, "serviceName") | |||
serviceName, err := s.GetString(stateName, stateMap, "ServiceName") |
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.
Why modify this.
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.
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.
LGTM
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.
LGTM
What this PR does:
Supported multi-type configuration parser in saga mode, fixed some related problems, adjusted and improved related unit tests, and supplemented test data in yaml format.
Which issue(s) this PR fixes:
Fixes #734
Special notes for your reviewer:
All relevant unit tests have been completed and passed.
Does this PR introduce a user-facing change?: