Skip to content

Conversation

@lunny
Copy link
Member

@lunny lunny commented Sep 24, 2017

Reduce some unneccessary of AllCols on update.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Sep 24, 2017
@lunny lunny added this to the 1.3.0 milestone Sep 24, 2017
@lafriks
Copy link
Member

lafriks commented Sep 24, 2017

Test fails for this

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 24, 2017
@lunny lunny force-pushed the lunny/reduce_allcols_update branch from 770e9e3 to 5ed36ba Compare September 25, 2017 04:19
@lunny lunny added the type/bug label Sep 25, 2017
@codecov-io
Copy link

Codecov Report

Merging #2596 into master will increase coverage by <.01%.
The diff coverage is 42.1%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2596      +/-   ##
==========================================
+ Coverage   27.31%   27.32%   +<.01%     
==========================================
  Files          86       86              
  Lines       17146    17143       -3     
==========================================
  Hits         4684     4684              
+ Misses      11784    11781       -3     
  Partials      678      678
Impacted Files Coverage Δ
models/repo.go 13.5% <0%> (ø) ⬆️
models/ssh_key.go 10.48% <0%> (+0.09%) ⬆️
models/issue_milestone.go 60.88% <0%> (ø) ⬆️
models/pull.go 20.58% <0%> (ø) ⬆️
models/issue_user.go 65.71% <100%> (ø) ⬆️
models/org.go 69.8% <100%> (ø) ⬆️
models/repo_collaboration.go 67.52% <100%> (ø) ⬆️
models/user_mail.go 64.18% <33.33%> (ø) ⬆️
models/org_team.go 52.74% <40%> (ø) ⬆️
models/user.go 18.41% <66.66%> (-0.05%) ⬇️
... and 1 more

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 6b6f16c...5ed36ba. Read the comment docs.

@lunny
Copy link
Member Author

lunny commented Sep 25, 2017

@lafriks done.

@appleboy
Copy link
Member

LGTM

@tboerger tboerger 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 25, 2017
@ethantkoenig
Copy link
Member

LGTM

Out of curiosity, what is the main benefit of only updating affected columns? Performance, or something else?

@tboerger tboerger 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 25, 2017
@lunny
Copy link
Member Author

lunny commented Sep 25, 2017

@ethantkoenig I think there are two reasons. One is for performance, another is to reduce the possibility of wrong updates. I remember the random avatar bug is affected by updating all the columns when login.

@lunny lunny merged commit dd55534 into go-gitea:master Sep 25, 2017
@lunny lunny deleted the lunny/reduce_allcols_update branch September 25, 2017 04:59
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 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 type/refactoring Existing code has been cleaned up. There should be no new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants