-
Notifications
You must be signed in to change notification settings - Fork 872
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: Index structure map[string]string,Mongo resulting in inconsistent results obtained by filtering non-string type by index. #5274
Fix: Index structure map[string]string,Mongo resulting in inconsistent results obtained by filtering non-string type by index. #5274
Conversation
Codecov ReportBase: 61.16% // Head: 61.18% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5274 +/- ##
==========================================
+ Coverage 61.16% 61.18% +0.02%
==========================================
Files 308 308
Lines 46562 46611 +49
==========================================
+ Hits 28478 28519 +41
+ Misses 15138 15137 -1
- Partials 2946 2955 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
7be2927
to
0ade9ba
Compare
76a5934
to
25cee15
Compare
25cee15
to
3a917cb
Compare
@@ -25,6 +25,11 @@ import ( | |||
"strings" | |||
"time" | |||
|
|||
pkgUtils "github.com/oam-dev/kubevela/pkg/utils" |
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.
Please keep the code style, and move the inner package to last.
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.
@barnettZQG ok,modify completed
…t results obtained by filtering non-string type by index. Signed-off-by: old.prince <di7zhang@gmail.com>
20926c3
to
a763d3d
Compare
Successfully created backport PR #5303 for |
…t results obtained by filtering non-string type by index. (kubevela#5274) Signed-off-by: old.prince <di7zhang@gmail.com> Signed-off-by: old.prince <di7zhang@gmail.com>
…t results obtained by filtering non-string type by index. (kubevela#5274) Signed-off-by: old.prince <di7zhang@gmail.com> Signed-off-by: old.prince <di7zhang@gmail.com>
Signed-off-by: old.prince di7zhang@gmail.com
Description of your changes
Fixes #5263
Value of non-string type stored in mongo is not string.Resulting in inconsistent results obtained by filtering non-string type by index.The reason is that when mongo stores the index is still filtered by string value but the actual value is not a string.
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer