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
cda7f56d
Commit
cda7f56d
authored
7 years ago
by
David Radley
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1901: Tolerate no propogatetags on Relationshipdef
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
24a106b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
AtlasRelationshipDefStoreV1.java
...epository/store/graph/v1/AtlasRelationshipDefStoreV1.java
+5
-0
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java
View file @
cda7f56d
...
...
@@ -480,8 +480,13 @@ public class AtlasRelationshipDefStoreV1 extends AtlasAbstractDefStoreV1 impleme
vertex
.
setProperty
(
Constants
.
RELATIONSHIPTYPE_END2_KEY
,
AtlasType
.
toJson
(
relationshipDef
.
getEndDef2
()));
// Update RelationshipCategory
vertex
.
setProperty
(
Constants
.
RELATIONSHIPTYPE_CATEGORY_KEY
,
relationshipDef
.
getRelationshipCategory
().
name
());
if
(
relationshipDef
.
getPropagateTags
()
==
null
)
{
vertex
.
setProperty
(
Constants
.
RELATIONSHIPTYPE_TAG_PROPAGATION_KEY
,
AtlasRelationshipDef
.
PropagateTags
.
NONE
.
name
());
}
else
{
vertex
.
setProperty
(
Constants
.
RELATIONSHIPTYPE_TAG_PROPAGATION_KEY
,
relationshipDef
.
getPropagateTags
().
name
());
}
}
private
AtlasRelationshipDef
toRelationshipDef
(
AtlasVertex
vertex
)
throws
AtlasBaseException
{
AtlasRelationshipDef
ret
=
null
;
...
...
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