-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Upgrade xorm to latest to fix insert issue bug #8309
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8309 +/- ##
==========================================
+ Coverage 41.52% 41.53% +<.01%
==========================================
Files 494 494
Lines 65384 65384
==========================================
+ Hits 27151 27155 +4
+ Misses 34737 34733 -4
Partials 3496 3496
Continue to review full report at Codecov.
|
@@ -824,3 +824,5 @@ xorm.io/builder v0.3.6 h1:ha28mQ2M+TFx96Hxo+iq6tQgnkC9IZkM6D8w9sKHHF8= | |||
xorm.io/builder v0.3.6/go.mod h1:LEFAPISnRzG+zxaxj2vPicRwz67BdhFreKg8yv8/TgU= | |||
xorm.io/core v0.7.0 h1:hKxuOKWZNeiFQsSuGet/KV8HZ788hclvAl+7azx3tkM= | |||
xorm.io/core v0.7.0/go.mod h1:TuOJjIVa7e3w/rN8tDcAvuLBMtwzdHPbyOzE6Gk1EUI= | |||
xorm.io/core v0.7.2-0.20190928055935-90aeac8d08eb h1:msX3zG3BPl8Ti+LDzP33/9K7BzO/WqFXk610K1kYKfo= |
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.
Why is xorm.io/core v0.7.0 still referenced? Some dependency needs updating too, it seems.
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.
It seems github.com/lafriks/xormstore
need an update.
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.
@lunny It would maybe cleaner to release a new version for core and xorm than using a commit reference ?
@@ -162,3 +166,7 @@ xorm.io/builder v0.3.6 h1:ha28mQ2M+TFx96Hxo+iq6tQgnkC9IZkM6D8w9sKHHF8= | |||
xorm.io/builder v0.3.6/go.mod h1:LEFAPISnRzG+zxaxj2vPicRwz67BdhFreKg8yv8/TgU= | |||
xorm.io/core v0.7.0 h1:hKxuOKWZNeiFQsSuGet/KV8HZ788hclvAl+7azx3tkM= | |||
xorm.io/core v0.7.0/go.mod h1:TuOJjIVa7e3w/rN8tDcAvuLBMtwzdHPbyOzE6Gk1EUI= | |||
xorm.io/core v0.7.1 h1:I6x6Q6dYb67aDEoYFWr2t8UcKIYjJPyCHS+aXuj5V0Y= | |||
xorm.io/core v0.7.1/go.mod h1:jJfd0UAEzZ4t87nbQYtVjmqpIODugN6PD2D9E+dJvdM= |
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.
Again, is it OK to have v0.7.0 and v0.7.1 still referenced here?
models/issue_test.go
Outdated
var issue = Issue{ | ||
RepoID: repo.ID, | ||
PosterID: user.ID, | ||
Title: "my issue1", |
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.
Title: "my issue1", | |
Title: title, |
models/issue_test.go
Outdated
RepoID: repo.ID, | ||
PosterID: user.ID, | ||
Title: "my issue1", | ||
Content: "special issue's comments?", |
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.
Content: "special issue's comments?", | |
Content: content, |
Related: go-gitea/gitea#8309 Commands used: GO111MODULE=on go get -u -v github.com/go-xorm/xorm@v0.7.8-0.20190928100219-d6963b7d423d GO111MODULE=on go mod tidy
@sapk @guillep2k done. |
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
I think we can merge this even before github.com/lafriks/xormstore
is updated (and create an other PR later) or wait for it as you like.
Should fix #8301 |
* Update xorm to latest bug fix Related: go-gitea/gitea#8309 Commands used: GO111MODULE=on go get -u -v github.com/go-xorm/xorm@v0.7.8-0.20190928100219-d6963b7d423d GO111MODULE=on go mod tidy * update to tagged github.com/go-xorm/xorm@v0.7.8
New xormstore version has been tagged |
Also added an unit tests for newissue to confirm some special characters will not break the creating of issue.