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
4dc6284e
Commit
4dc6284e
authored
May 18, 2018
by
apoorvnaik
Committed by
Madhan Neethiraj
May 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2703: entity delete should not remove its term associations
Change-Id: I23b53086b2bb2380f451e7d85b59096edc610181 Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
63a0be26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DeleteHandlerV1.java
...ache/atlas/repository/store/graph/v1/DeleteHandlerV1.java
+2
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java
View file @
4dc6284e
...
@@ -161,7 +161,7 @@ public abstract class DeleteHandlerV1 {
...
@@ -161,7 +161,7 @@ public abstract class DeleteHandlerV1 {
*/
*/
public
void
deleteRelationships
(
Collection
<
AtlasEdge
>
edges
)
throws
AtlasBaseException
{
public
void
deleteRelationships
(
Collection
<
AtlasEdge
>
edges
)
throws
AtlasBaseException
{
for
(
AtlasEdge
edge
:
edges
)
{
for
(
AtlasEdge
edge
:
edges
)
{
boolean
isInternal
=
isInternalType
(
edge
.
getInVertex
())
||
isInternalType
(
edge
.
getOutVertex
());
boolean
isInternal
=
isInternalType
(
edge
.
getInVertex
())
&&
isInternalType
(
edge
.
getOutVertex
());
if
(!
isInternal
&&
getState
(
edge
)
==
DELETED
)
{
if
(!
isInternal
&&
getState
(
edge
)
==
DELETED
)
{
if
(
LOG
.
isDebugEnabled
())
{
if
(
LOG
.
isDebugEnabled
())
{
...
@@ -851,7 +851,7 @@ public abstract class DeleteHandlerV1 {
...
@@ -851,7 +851,7 @@ public abstract class DeleteHandlerV1 {
}
}
if
(
edge
!=
null
)
{
if
(
edge
!=
null
)
{
deleteEdge
(
edge
,
isInternalType
(
inVertex
)
||
isInternalType
(
outVertex
));
deleteEdge
(
edge
,
isInternalType
(
inVertex
)
&&
isInternalType
(
outVertex
));
RequestContextV1
requestContext
=
RequestContextV1
.
get
();
RequestContextV1
requestContext
=
RequestContextV1
.
get
();
...
...
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