-
Notifications
You must be signed in to change notification settings - Fork 56
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: Return slice of correct length from db.AddSchema #2765
fix: Return slice of correct length from db.AddSchema #2765
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.
LGTM! Thanks for fixing :)
Values are appended to this slice
5e78787
to
e3b9fba
Compare
Thanks for finding it :) |
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2765 +/- ##
===========================================
+ Coverage 78.16% 78.23% +0.07%
===========================================
Files 310 310
Lines 23071 23071
===========================================
+ Hits 18032 18049 +17
+ Misses 3669 3658 -11
+ Partials 1370 1364 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 16 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
…2765) ## Relevant issue(s) Resolves sourcenetwork#2764 ## Description Return slice of correct length from db.AddSchema, values are appended to this slice later in the function, but the result declaration is done as if they will be set by index. Bug also affected `db.AddView`.
Relevant issue(s)
Resolves #2764
Description
Return slice of correct length from db.AddSchema, values are appended to this slice later in the function, but the result declaration is done as if they will be set by index.
Bug also affected
db.AddView
.I'll create a ticket to allow us to test this properly (the results ofTicket created: #2766AddSchema and
AddView` are never asserted by our integration tests atm).