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
4ab95b9a
Commit
4ab95b9a
authored
4 years ago
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-4025 ATLAS-4023: Import Service: Lables and Classifications not getting updated.
parent
a0a3c318
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
EntityGraphMapper.java
...he/atlas/repository/store/graph/v2/EntityGraphMapper.java
+5
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
View file @
4ab95b9a
...
@@ -255,6 +255,10 @@ public class EntityGraphMapper {
...
@@ -255,6 +255,10 @@ public class EntityGraphMapper {
if
(
entity
.
getCustomAttributes
()
!=
null
)
{
if
(
entity
.
getCustomAttributes
()
!=
null
)
{
setCustomAttributes
(
vertex
,
entity
);
setCustomAttributes
(
vertex
,
entity
);
}
}
if
(
entity
.
getLabels
()
!=
null
)
{
setLabels
(
vertex
,
entity
.
getLabels
());
}
}
}
public
EntityMutationResponse
mapAttributesAndClassifications
(
EntityMutationContext
context
,
final
boolean
isPartialUpdate
,
final
boolean
replaceClassifications
,
boolean
replaceBusinessAttributes
)
throws
AtlasBaseException
{
public
EntityMutationResponse
mapAttributesAndClassifications
(
EntityMutationContext
context
,
final
boolean
isPartialUpdate
,
final
boolean
replaceClassifications
,
boolean
replaceBusinessAttributes
)
throws
AtlasBaseException
{
...
@@ -299,8 +303,6 @@ public class EntityGraphMapper {
...
@@ -299,8 +303,6 @@ public class EntityGraphMapper {
mapAttributes
(
updatedEntity
,
entityType
,
vertex
,
updateType
,
context
);
mapAttributes
(
updatedEntity
,
entityType
,
vertex
,
updateType
,
context
);
setCustomAttributes
(
vertex
,
updatedEntity
);
setCustomAttributes
(
vertex
,
updatedEntity
);
resp
.
addEntity
(
updateType
,
constructHeader
(
updatedEntity
,
vertex
));
if
(
replaceClassifications
)
{
if
(
replaceClassifications
)
{
deleteClassifications
(
guid
);
deleteClassifications
(
guid
);
addClassifications
(
context
,
guid
,
updatedEntity
.
getClassifications
());
addClassifications
(
context
,
guid
,
updatedEntity
.
getClassifications
());
...
@@ -310,6 +312,7 @@ public class EntityGraphMapper {
...
@@ -310,6 +312,7 @@ public class EntityGraphMapper {
setBusinessAttributes
(
vertex
,
entityType
,
updatedEntity
.
getBusinessAttributes
());
setBusinessAttributes
(
vertex
,
entityType
,
updatedEntity
.
getBusinessAttributes
());
}
}
resp
.
addEntity
(
updateType
,
constructHeader
(
updatedEntity
,
vertex
));
reqContext
.
cache
(
updatedEntity
);
reqContext
.
cache
(
updatedEntity
);
}
}
}
}
...
...
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