Class ExperimentFeaturesConstants

java.lang.Object
com.google.gerrit.server.experiments.ExperimentFeaturesConstants

public class ExperimentFeaturesConstants extends Object
Constants for Gerrit ExperimentFeatures
  • Field Details

    • GERRIT_BACKEND_FEATURE_ATTACH_NONCE_TO_DOCUMENTATION

      public static String GERRIT_BACKEND_FEATURE_ATTACH_NONCE_TO_DOCUMENTATION
      Features that are known experiments and can be referenced in the code.
    • DEFAULT_ENABLED_FEATURES

      public static final com.google.common.collect.ImmutableSet<String> DEFAULT_ENABLED_FEATURES
      Features, enabled by default in the current release.
    • GERRIT_BACKEND_FEATURE_CHECK_IMPLICIT_MERGES_ON_MERGE

      public static String GERRIT_BACKEND_FEATURE_CHECK_IMPLICIT_MERGES_ON_MERGE
      If true, gerrit checks implicit merges on each merge operations.

      If only this option is set (without GERRIT_BACKEND_FEATURE_REJECT_IMPLICIT_MERGES_ON_MERGE) - then the outcome of the check is only logged and doesn't block merge operation. Any exceptions during the check are logged and doesn't block merge operation.

    • GERRIT_BACKEND_FEATURE_REJECT_IMPLICIT_MERGES_ON_MERGE

      public static String GERRIT_BACKEND_FEATURE_REJECT_IMPLICIT_MERGES_ON_MERGE
      If true, gerrit rejects implicit merges on merge.

      Should work together with GERRIT_BACKEND_FEATURE_CHECK_IMPLICIT_MERGES_ON_MERGE.

      If GERRIT_BACKEND_FEATURE_ALWAYS_REJECT_IMPLICIT_MERGES_ON_MERGE is set to true then implicit merges are rejected even if rejectImplicitMerges in project config is set to false.

      If GERRIT_BACKEND_FEATURE_ALWAYS_REJECT_IMPLICIT_MERGES_ON_MERGE is set to false then implicit merges are rejected only if rejectImplicitMerges in project config is set to true.

    • GERRIT_BACKEND_FEATURE_ALWAYS_REJECT_IMPLICIT_MERGES_ON_MERGE

      public static String GERRIT_BACKEND_FEATURE_ALWAYS_REJECT_IMPLICIT_MERGES_ON_MERGE
      If true, gerrit ignores rejectImplicitMerges setting from the project config on merge.
    • ALLOW_FIX_SUGGESTIONS_IN_COMMENTS

      public static final String ALLOW_FIX_SUGGESTIONS_IN_COMMENTS
      Whether we allow fix suggestions in HumanComments.
      See Also:
  • Constructor Details

    • ExperimentFeaturesConstants

      public ExperimentFeaturesConstants()