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

Improvements for supporting UI Location #3146

Merged
merged 4 commits into from
Dec 13, 2017
Merged

Conversation

lunny
Copy link
Member

@lunny lunny commented Dec 11, 2017

As title.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Dec 11, 2017
@lunny lunny added this to the 1.4.0 milestone Dec 11, 2017
@codecov-io
Copy link

codecov-io commented Dec 11, 2017

Codecov Report

Merging #3146 into master will increase coverage by 0.01%.
The diff coverage is 27.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3146      +/-   ##
==========================================
+ Coverage   34.71%   34.72%   +0.01%     
==========================================
  Files         276      276              
  Lines       39974    39975       +1     
==========================================
+ Hits        13876    13881       +5     
+ Misses      24102    24100       -2     
+ Partials     1996     1994       -2
Impacted Files Coverage Δ
modules/setting/setting.go 46.93% <ø> (ø) ⬆️
models/user.go 40.19% <ø> (ø) ⬆️
routers/api/v1/convert/convert.go 67.8% <0%> (ø) ⬆️
models/ssh_key.go 31.61% <0%> (-0.06%) ⬇️
cmd/serv.go 0% <0%> (ø) ⬆️
models/issue_tracked_time.go 73.13% <100%> (ø) ⬆️
modules/util/time_stamp.go 80% <100%> (ø) ⬆️
models/repo.go 41.47% <0%> (+0.18%) ⬆️
models/repo_indexer.go 51.94% <0%> (+0.97%) ⬆️

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 b6d2243...1a345a8. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 11, 2017
@@ -740,6 +736,12 @@ func GetDeployKeyByRepo(keyID, repoID int64) (*DeployKey, error) {
return key, nil
}

// UpdateDeployKeyCols updates deploy key information only columns.
Copy link
Member

Choose a reason for hiding this comment

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

nit: // UpdateDeployKeyCols updates deploy key information only in the specified columns

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@@ -24,7 +25,7 @@ type TrackedTime struct {

// AfterLoad is invoked from XORM after setting the values of all fields of this object.
func (t *TrackedTime) AfterLoad() {
t.Created = time.Unix(t.CreatedUnix, 0).Local()
t.Created = time.Unix(t.CreatedUnix, 0).In(setting.UILocation)
Copy link
Member

Choose a reason for hiding this comment

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

Why have we left the Created field in the TrackedTime struct?

Copy link
Member Author

Choose a reason for hiding this comment

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

It has one json:"created" tag here. I should invistigate where referenced it. Maybe send a PR later.

@lunny
Copy link
Member Author

lunny commented Dec 13, 2017

should fix #3178

@lafriks
Copy link
Member

lafriks commented Dec 13, 2017

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 Dec 13, 2017
@ethantkoenig
Copy link
Member

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 Dec 13, 2017
@lunny lunny merged commit f94c1b3 into go-gitea:master Dec 13, 2017
@lunny lunny deleted the lunny/ui_location branch January 21, 2018 02:12
@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.

5 participants