Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
fbabb8ba
Commit
fbabb8ba
authored
6 years ago
by
Kapildeo Nayak
Committed by
Sarath Subramanian
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2458: RelationshipApi Delete doesnt remove relationshipAttributes from entity
Signed-off-by:
Sarath Subramanian
<
ssubramanian@hortonworks.com
>
parent
f1071310
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
EntityGraphRetriever.java
...atlas/repository/store/graph/v2/EntityGraphRetriever.java
+10
-3
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphRetriever.java
View file @
fbabb8ba
...
...
@@ -87,6 +87,7 @@ import static org.apache.atlas.glossary.GlossaryUtils.TERM_ASSIGNMENT_ATTR_EXPRE
import
static
org
.
apache
.
atlas
.
glossary
.
GlossaryUtils
.
TERM_ASSIGNMENT_ATTR_SOURCE
;
import
static
org
.
apache
.
atlas
.
glossary
.
GlossaryUtils
.
TERM_ASSIGNMENT_ATTR_STATUS
;
import
static
org
.
apache
.
atlas
.
glossary
.
GlossaryUtils
.
TERM_ASSIGNMENT_ATTR_STEWARD
;
import
static
org
.
apache
.
atlas
.
model
.
instance
.
AtlasRelationship
.
Status
.
ACTIVE
;
import
static
org
.
apache
.
atlas
.
model
.
typedef
.
AtlasBaseTypeDef
.
ATLAS_TYPE_BIGDECIMAL
;
import
static
org
.
apache
.
atlas
.
model
.
typedef
.
AtlasBaseTypeDef
.
ATLAS_TYPE_BIGINTEGER
;
import
static
org
.
apache
.
atlas
.
model
.
typedef
.
AtlasBaseTypeDef
.
ATLAS_TYPE_BOOLEAN
;
...
...
@@ -1088,13 +1089,19 @@ public class EntityGraphRetriever {
private
Object
toAtlasObjectId
(
Object
obj
)
{
final
Object
ret
;
if
(
obj
instanceof
AtlasObjectId
)
{
ret
=
new
AtlasObjectId
((
AtlasObjectId
)
obj
);
if
(
obj
instanceof
AtlasRelatedObjectId
)
{
AtlasRelatedObjectId
relatedObjId
=
(
AtlasRelatedObjectId
)
obj
;
ret
=
relatedObjId
.
getRelationshipStatus
()
==
ACTIVE
?
new
AtlasObjectId
((
AtlasObjectId
)
obj
)
:
null
;
}
else
if
(
obj
instanceof
Collection
)
{
List
list
=
new
ArrayList
();
for
(
Object
elem
:
(
Collection
)
obj
)
{
list
.
add
(
toAtlasObjectId
(
elem
));
Object
objId
=
toAtlasObjectId
(
elem
);
if
(
objId
!=
null
)
{
list
.
add
(
objId
);
}
}
ret
=
list
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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