-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feat/workflow #23
base: main
Are you sure you want to change the base?
Feat/workflow #23
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.
license-eye has totally checked 152 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
148 | 4 | 0 | 0 |
Click to see the invalid file list
- compose/field_mapping.go
- compose/field_mapping_test.go
- compose/workflow.go
- compose/workflow_test.go
go-test-coverage report:
|
f0c5bf7
to
8cb48ef
Compare
8cb48ef
to
b030107
Compare
📊 Coverage Report:
|
b030107
to
e45266e
Compare
e45266e
to
1b0f73b
Compare
|
||
edge2FieldMapFn map[string]map[string]fieldMapFn | ||
edge2StreamFieldMapFn map[string]map[string]streamFieldMapFn | ||
node2Mappings map[string][]*Mapping |
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.
上边两个Map应该能表达这个信息吧
} | ||
|
||
type fieldMapFn func(any) (map[Mapping]any, error) | ||
type streamFieldMapFn func(streamReader) streamReader |
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.
按上边的any->map[Mapping]any
流式的应该是streamReader -> StreamReader[map[Mapping]any] 吧?
g.markRunTimeCheckEdge(startNode, endNode) | ||
} | ||
} else { | ||
if startNodeOutputType == anyType || endNodeInputType == anyType { // input or output is any, can't do any check here, defer to request time |
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.
为啥in或out是any 要markRunTimeCheckEdge? 有field mapping的时候不需要这个check吧
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.
而且除了any,interface应该也不能判断
} | ||
|
||
func checkAndExtractFieldType(field string, typ reflect.Type) (reflect.Type, error) { | ||
if typ.Kind() == reflect.Ptr { |
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.
这里是不是改成for
Change-Id: I96c41c862bed7a57b13349dab1d26d221ff3a1ba
f02f08d
to
a6ed196
Compare
Change-Id: Ib459e12c3f05498f613d0fb97eefd49d036e68ee
a6ed196
to
2e90ccb
Compare
What type of PR is this?
Check the PR title.
(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
zh(optional):
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: