Flip the defaults of the attention and assignee flags

By default the attention set becomes enabled and the assignee feature
becomes disabled.

Change-Id: Ic55a731eb5136306dd14c6bad80e1e160185793a
(cherry picked from commit 4427d43734)
This commit is contained in:
Ben Rohlfs
2020-10-28 09:14:10 +01:00
committed by Gal Paikin
parent 7086aae782
commit 848ad1a813
4 changed files with 9 additions and 9 deletions

View File

@@ -61,6 +61,6 @@ public class EmailSettings {
TimeUnit.MILLISECONDS.convert(60, TimeUnit.SECONDS),
TimeUnit.MILLISECONDS);
sendNewPatchsetEmails = cfg.getBoolean("change", null, "sendNewPatchsetEmails", true);
isAttentionSetEnabled = cfg.getBoolean("change", null, "enableAttentionSet", false);
isAttentionSetEnabled = cfg.getBoolean("change", null, "enableAttentionSet", true);
}
}

View File

@@ -238,8 +238,9 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
info.mergeabilityComputationBehavior =
MergeabilityComputationBehavior.fromConfig(config).name();
info.enableAttentionSet =
toBoolean(this.config.getBoolean("change", null, "enableAttentionSet", false));
info.enableAssignee = toBoolean(this.config.getBoolean("change", null, "enableAssignee", true));
toBoolean(this.config.getBoolean("change", null, "enableAttentionSet", true));
info.enableAssignee =
toBoolean(this.config.getBoolean("change", null, "enableAssignee", false));
return info;
}