[
https://issues.apache.org/jira/browse/ATLAS-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17393205#comment-17393205
]
Mandar Ambawane edited comment on ATLAS-3881 at 8/6/21, 12:03 PM:
------------------------------------------------------------------
*isLegacyAttribute* flag and *relationshipLabel* plays important role in
deciding the direction of the Relationship Edge.
In this case:
In Relationship Typedef, Both the EndDefs have *isLegacyAttribute* *=* *true*.
Also, in Relationship Typedef, we are not providing any *relationshipLabel*.
Because of above reasons, Relationship Edge is created in *opposite direction*.
For reference:
[https://github.com/apache/atlas/blob/master/intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java#L181]
Hence we are not able to see Relationship attributes in *"File"* entity page.
This is working as per current design.
If you provide *relationshipLabel* while creating Relationship Type. Then this
issue will not occur.
CC: [~sarath] [~jayendrap]
was (Author: mandar_va):
*isLegacyAttribute* flag and *relationshipLabel* plays important role in
deciding the direction of the Relationship Edge.
In this case:
In Relationship Typedef, Both the EndDefs have *isLegacyAttribute* *=* *true*.
Also, in Relationship Typedef, we are not providing any *relationshipLabel*.
Because of above reasons, Relationship Edge is created in *opposite direction*.
For reference:
[https://github.com/apache/atlas/blob/master/intg/src/main/java/org/apache/atlas/type/AtlasRelationshipType.java#L181]
Hence we are not able to see Relationship attributes in *"File"* entity page.
This is working as per current design.
If you provide *relationshipLabel* while creating Relationship Type. Then this
issue will not occur.
> Relationships reflect only on one end
> -------------------------------------
>
> Key: ATLAS-3881
> URL: https://issues.apache.org/jira/browse/ATLAS-3881
> Project: Atlas
> Issue Type: Bug
> Components: atlas-intg
> Affects Versions: 2.0.0
> Reporter: Farida Shafik
> Assignee: Mandar Ambawane
> Priority: Major
> Attachments: FileFieldJSON.json
>
>
> Have two entities: file and field
> Trying to link both with a relationship called file_field
> Set file_field as a COMPOSITION relationship with file containing field
> Created file, then while creating field, set the created file as its file.
> However, when opening the file's page, did not find the relationship set with
> the above field. Instead have to update the file manually to add the field.
> Attached below is the json body sent when creating the types and definitions
> at "/api/atlas/v2/types/typedefs"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)