diff --git a/java/com/google/gerrit/httpd/raw/IndexPreloadingUtil.java b/java/com/google/gerrit/httpd/raw/IndexPreloadingUtil.java index c17cd97bc3..f1da6b7190 100644 --- a/java/com/google/gerrit/httpd/raw/IndexPreloadingUtil.java +++ b/java/com/google/gerrit/httpd/raw/IndexPreloadingUtil.java @@ -123,9 +123,7 @@ public class IndexPreloadingUtil { options.add(ListChangesOption.LABELS); options.add(ListChangesOption.DETAILED_ACCOUNTS); - if (isEnabledAttentionSet(serverApi)) { - options.add(ListChangesOption.DETAILED_LABELS); - } else { + if (!isEnabledAttentionSet(serverApi)) { options.add(ListChangesOption.REVIEWED); } return ListOption.toHex(options); diff --git a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.ts b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.ts index 7d08560920..b3596c7586 100644 --- a/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.ts +++ b/polygerrit-ui/app/elements/shared/gr-rest-api-interface/gr-rest-api-interface.ts @@ -1422,9 +1422,7 @@ export class GrRestApiInterface ListChangesOption.LABELS, ListChangesOption.DETAILED_ACCOUNTS, ]; - if (config?.change && config.change.enable_attention_set) { - options.push(ListChangesOption.DETAILED_LABELS); - } else { + if (!config?.change?.enable_attention_set) { options.push(ListChangesOption.REVIEWED); }