Skip to content
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

Merged
merged 4 commits into from
Sep 29, 2019

Conversation

lunny
Copy link
Member

@lunny lunny commented Sep 28, 2019

Also added an unit tests for newissue to confirm some special characters will not break the creating of issue.

@lunny lunny added the type/bug label Sep 28, 2019
@codecov-io
Copy link

codecov-io commented Sep 28, 2019

Codecov Report

Merging #8309 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
routers/repo/view.go 43.54% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6fb7fe...0a780f9. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 28, 2019
@@ -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=
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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=
Copy link
Member

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?

var issue = Issue{
RepoID: repo.ID,
PosterID: user.ID,
Title: "my issue1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Title: "my issue1",
Title: title,

RepoID: repo.ID,
PosterID: user.ID,
Title: "my issue1",
Content: "special issue's comments?",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Content: "special issue's comments?",
Content: content,

sapk added a commit to sapk-fork/xormstore that referenced this pull request Sep 28, 2019
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
@lunny
Copy link
Member Author

lunny commented Sep 29, 2019

@sapk @guillep2k done.

Copy link
Member

@sapk sapk left a 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.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 29, 2019
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Sep 29, 2019
@lunny
Copy link
Member Author

lunny commented Sep 29, 2019

Should fix #8301

@lunny lunny merged commit aa9a99c into go-gitea:master Sep 29, 2019
@lunny lunny deleted the lunny/fix_insert_bug branch September 29, 2019 12:52
@guillep2k guillep2k mentioned this pull request Sep 29, 2019
lafriks pushed a commit to lafriks/xormstore that referenced this pull request Sep 29, 2019
* 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
@lafriks
Copy link
Member

lafriks commented Sep 29, 2019

New xormstore version has been tagged

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants