Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,14 @@ private String getPermissionFilterQuery(DataverseRequest dataverseRequest, SolrQ
for (Group group : groups) {
String groupAlias = group.getAlias();
if (groupAlias != null && !groupAlias.isEmpty() && (!avoidJoin || !groupAlias.startsWith("builtIn"))) {
groupList.add(IndexServiceBean.getGroupPrefix() + groupAlias);
boolean skipThisGroup = false;
if (FeatureFlags.SKIP_NONEXPLICIT_GROUPS.enabled() && group.getGroupProvider() != null && !"explicit".equals(group.getGroupProvider().getGroupProviderAlias())) {
skipThisGroup = true;
logger.info("Skipping non-explicit group " + groupAlias);
}
if (!skipThisGroup) {
groupList.add(IndexServiceBean.getGroupPrefix() + groupAlias);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public enum FeatureFlags {
* @since Dataverse 6.3
*/
ADD_PUBLICOBJECT_SOLR_FIELD("add-publicobject-solr-field"),
SKIP_NONEXPLICIT_GROUPS("skip-nonexplicit-groups"),
/**
* With this flag set, Dataverse will index the actual origin of harvested
* metadata records, instead of the "Harvested" string in all cases.
Expand Down
Loading