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

Moved defaults in defaults.go to setting.go #5764

Merged
merged 3 commits into from
Jan 19, 2019
Merged

Moved defaults in defaults.go to setting.go #5764

merged 3 commits into from
Jan 19, 2019

Conversation

jolheiser
Copy link
Member

As titled, I moved the few defaults in defaults.go to setting.go and removed defaults.go since it was then unused.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
@codecov-io
Copy link

codecov-io commented Jan 18, 2019

Codecov Report

Merging #5764 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5764      +/-   ##
==========================================
+ Coverage   37.72%   37.73%   +0.01%     
==========================================
  Files         327      327              
  Lines       47818    47824       +6     
==========================================
+ Hits        18037    18047      +10     
+ Misses      27188    27184       -4     
  Partials     2593     2593
Impacted Files Coverage Δ
modules/setting/setting.go 49.19% <100%> (+0.38%) ⬆️
routers/repo/view.go 47.3% <0%> (+1.19%) ⬆️

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 6822a89...5c25aa8. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 18, 2019
@adelowo
Copy link
Member

adelowo commented Jan 19, 2019

¯_(ツ)_/¯

@zeripath
Copy link
Contributor

zeripath commented Jan 19, 2019

Hmm this looks like it's a nice simple fix but I don't know enough about our infrastructure - is it possible that our crowdin script or another script uses the defaults.go? @tboerger do you know if any of our infrastructure (ab)uses this file?

@tboerger
Copy link
Member

They are anyway not exported, they are not used anywhere else than this package.

@zeripath
Copy link
Contributor

I meant is there a dirty bash script out there that will "parse" the defaults file and update its values.

@tboerger
Copy link
Member

I have not introduced something hacky like that.

@zeripath
Copy link
Contributor

Cool. Wasn't accusing, just aware that sometimes the most expedient and easiest option is to write scripts that generate or read code in other languages.

Then we can probably just approve this PR.

@zeripath
Copy link
Contributor

BTW Is the capitalisation is an indication that the language's translation is (in)complete?

@bkcsoft bkcsoft 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 19, 2019
@zeripath
Copy link
Contributor

We should probably actually autogenerate the list of translations available by looking at the language translation configuration files available.

@adelowo
Copy link
Member

adelowo commented Jan 19, 2019

defaultThemes isn't here anyways

Copy link
Member

@lunny lunny left a comment

Choose a reason for hiding this comment

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

Please take defaultThemes back.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Jan 19, 2019
@zeripath
Copy link
Contributor

zeripath commented Jan 19, 2019

@lunny defaultThemes isn't mentioned anywhere else in the codebase and appears to be completely redundant

$ grep -r defaultThemes ~/go/src/code.gitea.io/gitea                [16:36:01]
~/go/src/code.gitea.io/gitea/modules/setting/defaults.go:	defaultThemes                            = strings.Split("gitea", "arc-green")

@lunny
Copy link
Member

lunny commented Jan 19, 2019

@bkcsoft bkcsoft 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 19, 2019
@techknowlogick techknowlogick added this to the 1.8.0 milestone Jan 19, 2019
@techknowlogick techknowlogick merged commit 6f194b8 into go-gitea:master Jan 19, 2019
@adelowo
Copy link
Member

adelowo commented Jan 19, 2019

Haha... Sorry my bad 😂. I could have sworn I used it somewhere

@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/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.

8 participants