Revert "Perform user.getEffectiveGroups() less eagerly"
This reverts commit f7569d0cb2.
The implementation removes any ability for slow GroupBackends
to perform their own per-request group level caching.
The correct way to do less eager lookups is for the LDAP
implementation of GroupBackend to create an emtpy membership
and then populate it on demand as requests arrive and need
to be looked up in the contains() methods.
Change-Id: I65210b24bffe10c5b158668867c8167c84712d17
This commit is contained in:
@@ -26,7 +26,6 @@ import com.google.gerrit.common.data.LabelType;
|
||||
import com.google.gerrit.common.data.LabelValue;
|
||||
import com.google.gerrit.common.data.PermissionRule;
|
||||
import com.google.gerrit.reviewdb.client.AccountGroup;
|
||||
import com.google.gerrit.reviewdb.client.AccountGroup.UUID;
|
||||
import com.google.gerrit.reviewdb.client.AccountProjectWatch;
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gerrit.reviewdb.client.Project;
|
||||
@@ -357,11 +356,6 @@ public class Util {
|
||||
return groups;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean memberOfAny(Iterable<UUID> ids) {
|
||||
return getEffectiveGroups().containsAnyOf(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUserName() {
|
||||
return username;
|
||||
|
||||
Reference in New Issue
Block a user