Add default values for settings #455

Merged
lunny merged 4 commits from lunny/add_default_setting_values into master 2016-12-23 07:18:06 +00:00
Owner
No description provided.
ethantkoenig commented 2016-12-23 04:53:44 +00:00 (Migrated from github.com)
Author
Owner

@lunny It looks like your build failed due to a test I added in #442. Sorry about that, there is a race condition and I will have a fix for it very soon. In the meantime, if you just rerun the build, the test will most likely succeed. Again, sorry for any inconvenience.

@lunny It looks like your build failed due to a test I added in #442. Sorry about that, there is a race condition and I will have a fix for it very soon. In the meantime, if you just rerun the build, the test will most likely succeed. Again, sorry for any inconvenience.
bkcsoft commented 2016-12-23 04:54:11 +00:00 (Migrated from github.com)
Author
Owner

@lunny I think you've missed a few keys. Like this one 230cabb4c4/modules/setting/setting.go (L759)

@lunny I think you've missed a few keys. Like this one https://github.com/lunny/gitea/blob/230cabb4c45a076f75244cc247ef98b226e2284f/modules/setting/setting.go#L759
Author
Owner

Yes. I will send more commits.

Yes. I will send more commits.
tboerger commented 2016-12-23 06:22:10 +00:00 (Migrated from github.com)
Author
Owner

LGTM

LGTM
tboerger (Migrated from github.com) reviewed 2016-12-23 06:32:11 +00:00
tboerger (Migrated from github.com) commented 2016-12-23 06:31:46 +00:00
Author
Owner

This default worked well for me, I had the installer initially.

This default worked well for me, I had the installer initially.
tboerger (Migrated from github.com) commented 2016-12-23 06:31:20 +00:00
Author
Owner

Really? This gets generated for me on the installer

Really? This gets generated for me on the installer
lunny reviewed 2016-12-23 06:40:04 +00:00
Author
Owner

So, it's a good idea to give it a default value.

So, it's a good idea to give it a default value.
tboerger (Migrated from github.com) reviewed 2016-12-23 06:41:26 +00:00
tboerger (Migrated from github.com) commented 2016-12-23 06:41:26 +00:00
Author
Owner

But does it still generate a random new string on install?

But does it still generate a random new string on install?
lunny reviewed 2016-12-23 06:46:29 +00:00
Author
Owner

Yes. generate a random will always on installation and write back to ini file.

Yes. generate a random will always on installation and write back to ini file.
tboerger commented 2016-12-23 06:47:26 +00:00 (Migrated from github.com)
Author
Owner

Still LGTM

Still LGTM
bkcsoft commented 2016-12-23 07:17:28 +00:00 (Migrated from github.com)
Author
Owner

LGTM

LGTM
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#455
No description provided.