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

refactor(model): update user method. #3360

Merged
merged 2 commits into from
Jan 13, 2018
Merged

Conversation

appleboy
Copy link
Member

as title.

@codecov-io
Copy link

codecov-io commented Jan 12, 2018

Codecov Report

Merging #3360 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3360      +/-   ##
==========================================
- Coverage   35.05%   35.03%   -0.02%     
==========================================
  Files         281      281              
  Lines       40559    40543      -16     
==========================================
- Hits        14219    14206      -13     
+ Misses      24236    24234       -2     
+ Partials     2104     2103       -1
Impacted Files Coverage Δ
models/user.go 39.75% <100%> (-0.4%) ⬇️
modules/process/manager.go 76.81% <0%> (-4.35%) ⬇️

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 f708829...4dab3b6. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 12, 2018
@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 Jan 12, 2018
@thehowl
Copy link
Contributor

thehowl commented Jan 12, 2018

LGTM

@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 Jan 12, 2018
@lafriks
Copy link
Member

lafriks commented Jan 12, 2018

Is this PR really does not change behaviour?

@thehowl
Copy link
Contributor

thehowl commented Jan 12, 2018

I'm quite sure it should not: this is the update code on xorm, so it is always run. Are you perhaps referring to the code running in cases where it wouldn't have before? (e.g. user_mail.go#L225)

@appleboy
Copy link
Member Author

@lafriks No, just like @thehowl say.We always get user data from x.Get(user) before execute the Update(user) method.

@lunny
Copy link
Member

lunny commented Jan 13, 2018

LGTM

@lunny lunny added this to the 1.4.0 milestone Jan 13, 2018
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Jan 13, 2018
@lafriks lafriks merged commit 7a2a3fb into go-gitea:master Jan 13, 2018
@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/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.

7 participants