CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 445
update datasource_flow_json_parsers #198
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
==========================================
- Coverage 44.80% 44.25% -0.55%
==========================================
Files 80 80
Lines 4464 4424 -40
==========================================
- Hits 2000 1958 -42
- Misses 2235 2236 +1
- Partials 229 230 +1
Continue to review full report at Codecov.
|
Could you please update json array parser for other rules? |
@louyuting There are still some parts that have not been modified. You can first see whether the modified is ok |
@louyuting Please help with the review. |
ext/datasource/helper.go
Outdated
// SystemRulesJsonConverter provide JSON as the default serialization for list of system.SystemRule | ||
func SystemRulesJsonConverter(src []byte) (interface{}, error) { | ||
// SystemRulesJsonArrayParser provide JSON as the default serialization for list of system.SystemRule | ||
func SystemRulesJsonArrayParser(src []byte) (interface{}, error) { |
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.
keep naming convention consistent.
Maybe "SystemRuleJsonArrayParser" be better?
ext/datasource/helper.go
Outdated
// HotSpotParamRulesJsonConverter decodes list of param flow rules from JSON bytes. | ||
func HotSpotParamRulesJsonConverter(src []byte) (interface{}, error) { | ||
// HotSpotParamRulesJsonArrayParser decodes list of param flow rules from JSON bytes. | ||
func HotSpotParamRulesJsonArrayParser(src []byte) (interface{}, error) { |
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.
Same thing as up
@sczyh30 could you please take a look at this PR? |
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
Nice work. Thanks for contributing! |
Describe what this PR does / why we need it
update datasource_flow_json_parsers
Does this pull request fix one issue?
fix:#191
Describe how to verify it
go test -v -race ./...
Special notes for reviews