Commit c8978436 authored by devesh bajpai's avatar devesh bajpai
Browse files

update RelationshipBlockHandler

parent bda64f97
Pipeline #38556 passed with stages
in 39 minutes and 36 seconds
......@@ -350,8 +350,8 @@ public class RelationshipBlockHandler {
String rawRecordId = rawRecordTree.get(RelationshipConstants.ID).asString();
String rawRecordVersion = rawRecordTree.get("version").asString();
Kind rawKind = new Kind(rawRecordTree.get("kind").asString());
// For wks kind targetSchemaAuthority should be used but due to current limitation be have to use raw record authority
Kind wksKind = new Kind(rawKind.getAuthority(), Constants.WKS_KIND, rawKind.getEntityType(), "*");
String targetSchemaAuthority = targetSchemaKindValue.substring(0, targetSchemaKindValue.indexOf(Constants.COLON_SEPARATOR));
Kind wksKind = new Kind(targetSchemaAuthority, Constants.WKS_KIND, rawKind.getEntityType(), "*");
SearchQuery searchQuery = new SearchByAncestryQuery(rawRecordId, rawRecordVersion);
return new SearchRequestPayload(wksKind, searchQuery);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment