Skip to content

Commit

Permalink
add policy variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshi0301 committed Dec 10, 2024
1 parent b2a58a6 commit 0da7195
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,12 @@ private boolean isPolicyAttribute(Set<String> attributes) {
AccessControlUtils.ATTR_POLICY_RESOURCES_CATEGORY,
AccessControlUtils.ATTR_POLICY_SERVICE_NAME,
AccessControlUtils.ATTR_POLICY_PRIORITY,
AccessControlUtils.REL_ATTR_POLICIES));
AccessControlUtils.REL_ATTR_POLICIES,
AccessControlUtils.ATTR_SERVICE_SERVICE_TYPE,
AccessControlUtils.ATTR_SERVICE_TAG_SERVICE,
AccessControlUtils.ATTR_SERVICE_IS_ENABLED,
AccessControlUtils.ATTR_SERVICE_LAST_SYNC)
);

return exclusionSet.stream().anyMatch(attributes::contains);
}
Expand Down Expand Up @@ -1926,11 +1931,7 @@ public Object getVertexAttributePreFetchCache(AtlasVertex vertex, AtlasAttribute

// value is present as marker, fetch the value from the vertex
if (ATLAS_INDEXSEARCH_ENABLE_FETCHING_NON_PRIMITIVE_ATTRIBUTES.getBoolean()) {
//AtlasPerfMetrics.MetricRecorder nonPrimitiveAttributes = RequestContext.get().startMetricRecord("processNonPrimitiveAttributes");
return mapVertexToAttribute(vertex, attribute, null, false);
//LOG.debug("capturing excluded property set category and value, mapVertexValue - {}: {} : {} : {}", attribute.getName(), attribute.getAttributeType().getTypeCategory(), properties.get(attribute.getName()), mappedVertex);
//RequestContext.get().endMetricRecord(nonPrimitiveAttributes);
//return mappedVertex;
}

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public final class AccessControlUtils {

public static final String ATTR_PURPOSE_CLASSIFICATIONS = "purposeClassifications";

public static final String ATTR_SERVICE_SERVICE_TYPE = "authServiceType";
public static final String ATTR_SERVICE_TAG_SERVICE = "tagService";
public static final String ATTR_SERVICE_IS_ENABLED = "authServiceIsEnabled";
public static final String ATTR_SERVICE_LAST_SYNC = "authServicePolicyLastSync";
public static final String ATTR_POLICY_TYPE = "policyType";
public static final String ATTR_POLICY_USERS = "policyUsers";
public static final String ATTR_POLICY_GROUPS = "policyGroups";
Expand Down

0 comments on commit 0da7195

Please sign in to comment.