Merge "Remove the ReviewCategory preference"
This commit is contained in:
@@ -694,36 +694,6 @@ The user's preferences are stored in a `git config` style file named
|
||||
|
||||
The following preferences can be configured:
|
||||
|
||||
- [[review-category]]`Display In Review Category`:
|
||||
+
|
||||
This setting controls how the values of the review labels in change
|
||||
lists and dashboards are visualized.
|
||||
+
|
||||
** `None`:
|
||||
+
|
||||
For each review label only the voting value is shown. Approvals are
|
||||
rendered as a green check mark icon, vetoes as a red X icon.
|
||||
+
|
||||
** `Show Name`:
|
||||
+
|
||||
For each review label the voting value is shown together with the full
|
||||
name of the voting user.
|
||||
+
|
||||
** `Show Email`:
|
||||
+
|
||||
For each review label the voting value is shown together with the email
|
||||
address of the voting user.
|
||||
+
|
||||
** `Show Username`:
|
||||
+
|
||||
For each review label the voting value is shown together with the
|
||||
username of the voting user.
|
||||
+
|
||||
** `Show Abbreviated Name`:
|
||||
+
|
||||
For each review label the voting value is shown together with the
|
||||
initials of the full name of the voting user.
|
||||
|
||||
- [[page-size]]`Maximum Page Size`:
|
||||
+
|
||||
The maximum number of entries that are shown on one page, e.g. used
|
||||
|
@@ -1255,7 +1255,6 @@ any account.
|
||||
"time_format": "HHMM_12",
|
||||
"diff_view": "SIDE_BY_SIDE",
|
||||
"size_bar_in_change_table": true,
|
||||
"review_category_strategy": "ABBREV",
|
||||
"mute_common_path_prefixes": true,
|
||||
"publish_comments_on_push": true,
|
||||
"work_in_progress_by_default": true,
|
||||
@@ -1309,7 +1308,6 @@ link:#preferences-input[PreferencesInput] entity.
|
||||
"date_format": "STD",
|
||||
"time_format": "HHMM_12",
|
||||
"size_bar_in_change_table": true,
|
||||
"review_category_strategy": "NAME",
|
||||
"diff_view": "SIDE_BY_SIDE",
|
||||
"mute_common_path_prefixes": true,
|
||||
"my": [
|
||||
@@ -1358,7 +1356,6 @@ link:#preferences-info[PreferencesInfo] entity.
|
||||
"date_format": "STD",
|
||||
"time_format": "HHMM_12",
|
||||
"size_bar_in_change_table": true,
|
||||
"review_category_strategy": "NAME",
|
||||
"diff_view": "SIDE_BY_SIDE",
|
||||
"publish_comments_on_push": true,
|
||||
"work_in_progress_by_default": true,
|
||||
@@ -2740,9 +2737,6 @@ Allowed values are `SIDE_BY_SIDE`, `UNIFIED_DIFF`.
|
||||
Whether to show the change sizes as colored bars in the change table.
|
||||
|`legacycid_in_change_table` |not set if `false`|
|
||||
Whether to show change number in the change table.
|
||||
|`review_category_strategy` ||
|
||||
The strategy used to displayed info in the review category column.
|
||||
Allowed values are `NONE`, `NAME`, `EMAIL`, `USERNAME`, `ABBREV`.
|
||||
|`mute_common_path_prefixes` |not set if `false`|
|
||||
Whether to mute common path prefixes in file names in the file table.
|
||||
|`signed_off_by` |not set if `false`|
|
||||
@@ -2808,9 +2802,6 @@ Allowed values are `SIDE_BY_SIDE`, `UNIFIED_DIFF`.
|
||||
Whether to show the change sizes as colored bars in the change table.
|
||||
|`legacycid_in_change_table` |optional|
|
||||
Whether to show change number in the change table.
|
||||
|`review_category_strategy` |optional|
|
||||
The strategy used to displayed info in the review category column.
|
||||
Allowed values are `NONE`, `NAME`, `EMAIL`, `USERNAME`, `ABBREV`.
|
||||
|`mute_common_path_prefixes` |optional|
|
||||
Whether to mute common path prefixes in file names in the file table.
|
||||
|`signed_off_by` |optional|
|
||||
|
@@ -1059,7 +1059,6 @@ PreferencesInfo] is returned.
|
||||
"time_format": "HHMM_12",
|
||||
"diff_view": "SIDE_BY_SIDE",
|
||||
"size_bar_in_change_table": true,
|
||||
"review_category_strategy": "NONE",
|
||||
"mute_common_path_prefixes": true,
|
||||
"publish_comments_on_push": true,
|
||||
"my": [
|
||||
@@ -1136,7 +1135,6 @@ PreferencesInfo] is returned.
|
||||
"time_format": "HHMM_12",
|
||||
"diff_view": "SIDE_BY_SIDE",
|
||||
"size_bar_in_change_table": true,
|
||||
"review_category_strategy": "NONE",
|
||||
"mute_common_path_prefixes": true,
|
||||
"publish_comments_on_push": true,
|
||||
"my": [
|
||||
|
@@ -68,14 +68,6 @@ public class GeneralPreferencesInfo {
|
||||
}
|
||||
}
|
||||
|
||||
public enum ReviewCategoryStrategy {
|
||||
NONE,
|
||||
NAME,
|
||||
EMAIL,
|
||||
USERNAME,
|
||||
ABBREV
|
||||
}
|
||||
|
||||
public enum DiffView {
|
||||
SIDE_BY_SIDE,
|
||||
UNIFIED_DIFF
|
||||
@@ -144,7 +136,6 @@ public class GeneralPreferencesInfo {
|
||||
public DiffView diffView;
|
||||
public Boolean sizeBarInChangeTable;
|
||||
public Boolean legacycidInChangeTable;
|
||||
public ReviewCategoryStrategy reviewCategoryStrategy;
|
||||
public Boolean muteCommonPathPrefixes;
|
||||
public Boolean signedOffBy;
|
||||
public EmailStrategy emailStrategy;
|
||||
@@ -156,10 +147,6 @@ public class GeneralPreferencesInfo {
|
||||
public List<String> changeTable;
|
||||
public Map<String, String> urlAliases;
|
||||
|
||||
public boolean isShowInfoInReviewCategory() {
|
||||
return getReviewCategoryStrategy() != ReviewCategoryStrategy.NONE;
|
||||
}
|
||||
|
||||
public DateFormat getDateFormat() {
|
||||
if (dateFormat == null) {
|
||||
return DateFormat.STD;
|
||||
@@ -174,13 +161,6 @@ public class GeneralPreferencesInfo {
|
||||
return timeFormat;
|
||||
}
|
||||
|
||||
public ReviewCategoryStrategy getReviewCategoryStrategy() {
|
||||
if (reviewCategoryStrategy == null) {
|
||||
return ReviewCategoryStrategy.NONE;
|
||||
}
|
||||
return reviewCategoryStrategy;
|
||||
}
|
||||
|
||||
public DiffView getDiffView() {
|
||||
if (diffView == null) {
|
||||
return DiffView.SIDE_BY_SIDE;
|
||||
@@ -215,7 +195,6 @@ public class GeneralPreferencesInfo {
|
||||
p.diffView = DiffView.SIDE_BY_SIDE;
|
||||
p.sizeBarInChangeTable = true;
|
||||
p.legacycidInChangeTable = false;
|
||||
p.reviewCategoryStrategy = ReviewCategoryStrategy.NONE;
|
||||
p.muteCommonPathPrefixes = true;
|
||||
p.signedOffBy = false;
|
||||
p.emailStrategy = EmailStrategy.ENABLED;
|
||||
|
@@ -28,7 +28,6 @@ import com.google.gerrit.extensions.client.GeneralPreferencesInfo.DiffView;
|
||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand;
|
||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailFormat;
|
||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy;
|
||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.ReviewCategoryStrategy;
|
||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.TimeFormat;
|
||||
import com.google.gerrit.extensions.client.MenuItem;
|
||||
import com.google.gerrit.extensions.config.DownloadScheme;
|
||||
@@ -86,7 +85,6 @@ public class GeneralPreferencesIT extends AbstractDaemonTest {
|
||||
i.legacycidInChangeTable ^= true;
|
||||
i.muteCommonPathPrefixes ^= true;
|
||||
i.signedOffBy ^= true;
|
||||
i.reviewCategoryStrategy = ReviewCategoryStrategy.ABBREV;
|
||||
i.diffView = DiffView.UNIFIED_DIFF;
|
||||
i.my = new ArrayList<>();
|
||||
i.my.add(new MenuItem("name", "url"));
|
||||
|
Reference in New Issue
Block a user