-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(util/gconv): unstable converting when there is an external attribute with the same name as the internal structure #3799
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.补充测试issue#3797,以及嵌套结构体同名不同类型字段 3.过滤掉gmeta.Meta类型的字段 4.对于匿名结构体字段不带tag的,不再缓存 5.增加一些工具函数
Quality Gate passedIssues Measures |
gqcn
changed the title
fix(util/gconv): #3797 同名字段和同名结构体覆盖不完全修复
fix(util/gconv): unstable converting when there is an external attribute with the same name as the internal structure
Sep 24, 2024
* fix(net/goai): change default value of RequestBody.Required from true to false, add required tag support for RequestBody (gogf#3796) * fix(database/gdb): support OrderRandom feature in different databases (gogf#3794) * up * fix issue 3800 --------- Co-authored-by: oldme <45782393+oldme-git@users.noreply.github.com>
* up * fix issue 3800 * up * up
gqcn
approved these changes
Sep 25, 2024
houseme
added a commit
that referenced
this pull request
Sep 28, 2024
…ris-config * 'master' of github.com:gogf/gf: (23 commits) build(go.mod): upgrade minimum required go version from 1.18 to 1.20 (#3688) refactor(net/ghttp): enhance `ghttp.StartPProfServer` (#3555) refactor(encoding/gjson): change data parameter from type any to []byte (#3542) refactor(net/gudp): improve implements (#3491) fix(os/gcache): memory leak for LRU when adding operations more faster than deleting (#3823) fix(os/gcmd): argument index calculating error in multilevel command (#3807) fix(database/gdb): invalid order by statement generated when multiple order inputs (#3803) fix(cmd/gf): creating logic.go empty folder when there is no correct logic service (#3815) test(drivers/mysql): loose unit testing for transaction (#3819) fix(net/ghttp&gclient,contrib/rpc/grpcx): remove request and response contents in opentelemetry tracing attributes (#3810) feat: new version v2.7.4 (#3809) fix(util/gconv): unstable converting when there is an external attribute with the same name as the internal structure (#3799) feat(database/gdb): add year field type support for ORM operations (#3805) fix(cmd/gf): table and field names converted to its lower case before CamelCase converting in command `gen dao` (#3801) fix(net/gclient): panic when containing `@file:` parameter value in json post request (#3775) feat(contrib/registry/etcd/): add `DialTimeout` and `AutoSyncInterval` option (#3698) fix(database/gdb): support OrderRandom feature in different databases (#3794) fix(net/goai): change default value of RequestBody.Required from true to false, add required tag support for RequestBody (#3796) fix(util/gvalid): retrive empty slice parameter in custom validation rule function failed (#3795) fix(util/gconv): cached field indexes append issue caused incorrect field converting (#3790) ... # Conflicts: # .github/workflows/ci-main.sh # .github/workflows/golangci-lint.yml # contrib/metric/otelmetric/go.mod
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixed #3797 #3800 不完全修复,对于字段和结构体同名时,字段如果为零值时,有几率(跟map的遍历顺序有关)会重新初始化结构体
建议以后类似问题,不要把名字搞成一样的