Implement 'privateByDefault' option for project.config

This change adds an inherited 'privateByDefault' option,
which allows project owners to configure a project so that
all new changes will be set as private by default.

This change also removes the 'privateByDefault' config option
from gerrit.config introduced by [1] as it's not necessary any
more (enable the 'privateByDefault' in All-Project will be
inherited by all other projects).

[1] Ie7cdb6f714714

Change-Id: I6fea9f8d55c7a38ac293057681874e9b480341ed
This commit is contained in:
Changcheng Xiao
2017-08-10 14:05:22 +02:00
parent bbb3708fc0
commit d089b4adda
19 changed files with 153 additions and 30 deletions

View File

@@ -1146,16 +1146,6 @@ Zero or negative values allow robot comments of unlimited size.
+
The default limit is 1024kB.
[[change.privateByDefault]]change.privateByDefault::
+
If set to true, every change created will be private by default.
+
Note that the newly created change will be public if the `is_private` field in
link:rest-api-changes.html#change-input[ChangeInput] is set to `false` explicitly
or the `remove-private` link:user-upload.html#private[PushOption] is used in the push.
+
The default is false.
[[changeCleanup]]
=== Section changeCleanup