Remove the ReviewCategory preference
It was not ported to PolyGerrit, and we would rather like to reduce the configurability than bringing it back. A proposed change to bring the feature back was turned down in https://gerrit-review.googlesource.com/c/gerrit/+/230013 Bug: Issue 8079 Change-Id: Ib98c3c8365065d3bcf8d7f82b3fed7b3e1595b70
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:
|
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`:
|
- [[page-size]]`Maximum Page Size`:
|
||||||
+
|
+
|
||||||
The maximum number of entries that are shown on one page, e.g. used
|
The maximum number of entries that are shown on one page, e.g. used
|
||||||
|
@@ -1257,7 +1257,6 @@ any account.
|
|||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
"diff_view": "SIDE_BY_SIDE",
|
"diff_view": "SIDE_BY_SIDE",
|
||||||
"size_bar_in_change_table": true,
|
"size_bar_in_change_table": true,
|
||||||
"review_category_strategy": "ABBREV",
|
|
||||||
"mute_common_path_prefixes": true,
|
"mute_common_path_prefixes": true,
|
||||||
"publish_comments_on_push": true,
|
"publish_comments_on_push": true,
|
||||||
"work_in_progress_by_default": true,
|
"work_in_progress_by_default": true,
|
||||||
@@ -1313,7 +1312,6 @@ link:#preferences-input[PreferencesInput] entity.
|
|||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
"size_bar_in_change_table": true,
|
"size_bar_in_change_table": true,
|
||||||
"review_category_strategy": "NAME",
|
|
||||||
"diff_view": "SIDE_BY_SIDE",
|
"diff_view": "SIDE_BY_SIDE",
|
||||||
"mute_common_path_prefixes": true,
|
"mute_common_path_prefixes": true,
|
||||||
"my": [
|
"my": [
|
||||||
@@ -1364,7 +1362,6 @@ link:#preferences-info[PreferencesInfo] entity.
|
|||||||
"date_format": "STD",
|
"date_format": "STD",
|
||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
"size_bar_in_change_table": true,
|
"size_bar_in_change_table": true,
|
||||||
"review_category_strategy": "NAME",
|
|
||||||
"diff_view": "SIDE_BY_SIDE",
|
"diff_view": "SIDE_BY_SIDE",
|
||||||
"publish_comments_on_push": true,
|
"publish_comments_on_push": true,
|
||||||
"work_in_progress_by_default": true,
|
"work_in_progress_by_default": true,
|
||||||
@@ -2750,9 +2747,6 @@ Allowed values are `SIDE_BY_SIDE`, `UNIFIED_DIFF`.
|
|||||||
Whether to show the change sizes as colored bars in the change table.
|
Whether to show the change sizes as colored bars in the change table.
|
||||||
|`legacycid_in_change_table` |not set if `false`|
|
|`legacycid_in_change_table` |not set if `false`|
|
||||||
Whether to show change number in the change table.
|
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`|
|
|`mute_common_path_prefixes` |not set if `false`|
|
||||||
Whether to mute common path prefixes in file names in the file table.
|
Whether to mute common path prefixes in file names in the file table.
|
||||||
|`signed_off_by` |not set if `false`|
|
|`signed_off_by` |not set if `false`|
|
||||||
@@ -2822,9 +2816,6 @@ Allowed values are `SIDE_BY_SIDE`, `UNIFIED_DIFF`.
|
|||||||
Whether to show the change sizes as colored bars in the change table.
|
Whether to show the change sizes as colored bars in the change table.
|
||||||
|`legacycid_in_change_table` |optional|
|
|`legacycid_in_change_table` |optional|
|
||||||
Whether to show change number in the change table.
|
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|
|
|`mute_common_path_prefixes` |optional|
|
||||||
Whether to mute common path prefixes in file names in the file table.
|
Whether to mute common path prefixes in file names in the file table.
|
||||||
|`signed_off_by` |optional|
|
|`signed_off_by` |optional|
|
||||||
|
@@ -1061,7 +1061,6 @@ PreferencesInfo] is returned.
|
|||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
"diff_view": "SIDE_BY_SIDE",
|
"diff_view": "SIDE_BY_SIDE",
|
||||||
"size_bar_in_change_table": true,
|
"size_bar_in_change_table": true,
|
||||||
"review_category_strategy": "NONE",
|
|
||||||
"mute_common_path_prefixes": true,
|
"mute_common_path_prefixes": true,
|
||||||
"publish_comments_on_push": true,
|
"publish_comments_on_push": true,
|
||||||
"my": [
|
"my": [
|
||||||
@@ -1140,7 +1139,6 @@ PreferencesInfo] is returned.
|
|||||||
"time_format": "HHMM_12",
|
"time_format": "HHMM_12",
|
||||||
"diff_view": "SIDE_BY_SIDE",
|
"diff_view": "SIDE_BY_SIDE",
|
||||||
"size_bar_in_change_table": true,
|
"size_bar_in_change_table": true,
|
||||||
"review_category_strategy": "NONE",
|
|
||||||
"mute_common_path_prefixes": true,
|
"mute_common_path_prefixes": true,
|
||||||
"publish_comments_on_push": true,
|
"publish_comments_on_push": true,
|
||||||
"my": [
|
"my": [
|
||||||
|
@@ -68,14 +68,6 @@ public class GeneralPreferencesInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ReviewCategoryStrategy {
|
|
||||||
NONE,
|
|
||||||
NAME,
|
|
||||||
EMAIL,
|
|
||||||
USERNAME,
|
|
||||||
ABBREV
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum DiffView {
|
public enum DiffView {
|
||||||
SIDE_BY_SIDE,
|
SIDE_BY_SIDE,
|
||||||
UNIFIED_DIFF
|
UNIFIED_DIFF
|
||||||
@@ -148,7 +140,6 @@ public class GeneralPreferencesInfo {
|
|||||||
public DiffView diffView;
|
public DiffView diffView;
|
||||||
public Boolean sizeBarInChangeTable;
|
public Boolean sizeBarInChangeTable;
|
||||||
public Boolean legacycidInChangeTable;
|
public Boolean legacycidInChangeTable;
|
||||||
public ReviewCategoryStrategy reviewCategoryStrategy;
|
|
||||||
public Boolean muteCommonPathPrefixes;
|
public Boolean muteCommonPathPrefixes;
|
||||||
public Boolean signedOffBy;
|
public Boolean signedOffBy;
|
||||||
public EmailStrategy emailStrategy;
|
public EmailStrategy emailStrategy;
|
||||||
@@ -160,10 +151,6 @@ public class GeneralPreferencesInfo {
|
|||||||
public List<String> changeTable;
|
public List<String> changeTable;
|
||||||
public Map<String, String> urlAliases;
|
public Map<String, String> urlAliases;
|
||||||
|
|
||||||
public boolean isShowInfoInReviewCategory() {
|
|
||||||
return getReviewCategoryStrategy() != ReviewCategoryStrategy.NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
public DateFormat getDateFormat() {
|
public DateFormat getDateFormat() {
|
||||||
if (dateFormat == null) {
|
if (dateFormat == null) {
|
||||||
return DateFormat.STD;
|
return DateFormat.STD;
|
||||||
@@ -178,13 +165,6 @@ public class GeneralPreferencesInfo {
|
|||||||
return timeFormat;
|
return timeFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReviewCategoryStrategy getReviewCategoryStrategy() {
|
|
||||||
if (reviewCategoryStrategy == null) {
|
|
||||||
return ReviewCategoryStrategy.NONE;
|
|
||||||
}
|
|
||||||
return reviewCategoryStrategy;
|
|
||||||
}
|
|
||||||
|
|
||||||
public DiffView getDiffView() {
|
public DiffView getDiffView() {
|
||||||
if (diffView == null) {
|
if (diffView == null) {
|
||||||
return DiffView.SIDE_BY_SIDE;
|
return DiffView.SIDE_BY_SIDE;
|
||||||
@@ -221,7 +201,6 @@ public class GeneralPreferencesInfo {
|
|||||||
p.diffView = DiffView.SIDE_BY_SIDE;
|
p.diffView = DiffView.SIDE_BY_SIDE;
|
||||||
p.sizeBarInChangeTable = true;
|
p.sizeBarInChangeTable = true;
|
||||||
p.legacycidInChangeTable = false;
|
p.legacycidInChangeTable = false;
|
||||||
p.reviewCategoryStrategy = ReviewCategoryStrategy.NONE;
|
|
||||||
p.muteCommonPathPrefixes = true;
|
p.muteCommonPathPrefixes = true;
|
||||||
p.signedOffBy = false;
|
p.signedOffBy = false;
|
||||||
p.emailStrategy = EmailStrategy.ENABLED;
|
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.DownloadCommand;
|
||||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailFormat;
|
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailFormat;
|
||||||
import com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy;
|
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.GeneralPreferencesInfo.TimeFormat;
|
||||||
import com.google.gerrit.extensions.client.MenuItem;
|
import com.google.gerrit.extensions.client.MenuItem;
|
||||||
import com.google.gerrit.extensions.config.DownloadScheme;
|
import com.google.gerrit.extensions.config.DownloadScheme;
|
||||||
@@ -88,7 +87,6 @@ public class GeneralPreferencesIT extends AbstractDaemonTest {
|
|||||||
i.legacycidInChangeTable ^= true;
|
i.legacycidInChangeTable ^= true;
|
||||||
i.muteCommonPathPrefixes ^= true;
|
i.muteCommonPathPrefixes ^= true;
|
||||||
i.signedOffBy ^= true;
|
i.signedOffBy ^= true;
|
||||||
i.reviewCategoryStrategy = ReviewCategoryStrategy.ABBREV;
|
|
||||||
i.diffView = DiffView.UNIFIED_DIFF;
|
i.diffView = DiffView.UNIFIED_DIFF;
|
||||||
i.my = new ArrayList<>();
|
i.my = new ArrayList<>();
|
||||||
i.my.add(new MenuItem("name", "url"));
|
i.my.add(new MenuItem("name", "url"));
|
||||||
|
Reference in New Issue
Block a user