Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Enrichment
wks
Commits
c8978436
Commit
c8978436
authored
Apr 30, 2021
by
devesh bajpai
Browse files
update RelationshipBlockHandler
parent
bda64f97
Pipeline
#38556
passed with stages
in 39 minutes and 36 seconds
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
wks-core/src/main/java/org/opengroup/osdu/wks/service/transformer/handler/relationship/RelationshipBlockHandler.java
View file @
c8978436
...
...
@@ -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 k
in
d
targetSchemaAuthority
should be used but due to current limitation be have to use raw record authority
Kind
wksKind
=
new
Kind
(
rawKind
.
get
Authority
()
,
Constants
.
WKS_KIND
,
rawKind
.
getEntityType
(),
"*"
);
Str
in
g
targetSchemaAuthority
=
targetSchemaKindValue
.
substring
(
0
,
targetSchemaKindValue
.
indexOf
(
Constants
.
COLON_SEPARATOR
));
Kind
wksKind
=
new
Kind
(
targetSchema
Authority
,
Constants
.
WKS_KIND
,
rawKind
.
getEntityType
(),
"*"
);
SearchQuery
searchQuery
=
new
SearchByAncestryQuery
(
rawRecordId
,
rawRecordVersion
);
return
new
SearchRequestPayload
(
wksKind
,
searchQuery
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment