You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Saqeeb Shaikh <sa...@freestoneinfotech.com> on 2019/08/27 13:14:59 UTC

Review Request 71374: ATLAS-3392: Relationships : Creating multiple relationships from entity of type1 to many entities of type2

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/71374/
-----------------------------------------------------------

Review request for atlas, Ashutosh Mestry, Madhan Neethiraj, Nixon Rodrigues, and Sarath Subramanian.


Bugs: ATLAS-3392
    https://issues.apache.org/jira/browse/ATLAS-3392


Repository: atlas


Description
-------

1. Created 2 types - type1 and type2 , and created an ASSOCIATION relationship between the types - asso_relnship with legacyAttribute set to False (so that only edge is created)
2. Created 3 entities :
entity1 : type1
entity21 , entity22 : type2
3. Created a relationship instance between entity1 and entity21 - succeeded.
4. Created a relationship instance between entity1 and entity22 - succeeded.
5. In entity1's entity definition it is related to entity21 and vice versa.
6. Expected that either #4 would fail or relationship created between entity1 and entity21 would be DELETED. 
7. Both the relationships are ACTIVE.


Diffs
-----

  common/src/main/java/org/apache/atlas/repository/Constants.java 673a85c 
  repository/src/main/java/org/apache/atlas/repository/graph/GraphHelper.java a58c670 
  repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasRelationshipStoreV2.java 1c8b057 


Diff: https://reviews.apache.org/r/71374/diff/1/


Testing
-------

manually checked with custom and built-in types.


Thanks,

Saqeeb Shaikh