> On June 26, 2017, 6:24 a.m., Sarath Subramanian wrote: > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java > > Lines 84 (patched) > > <https://reviews.apache.org/r/60272/diff/1/?file=1762491#file1762491line84> > > > > line 84 and 86 creates edges from relationDefs: > > relationDef -> endDef1, relationDef -> endDef2. Should the edges be > > created like: endDef1 -> relationDef, relationDef -> endDef2?
I purposely did it like endDef1 <- relationDef, relationDef -> endDef2. So the relationshipDef only has out edges to manage. this allows us to just ddlete out edges for the Vertex during relationshipDef delete. > On June 26, 2017, 6:24 a.m., Sarath Subramanian wrote: > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java > > Lines 413 (patched) > > <https://reviews.apache.org/r/60272/diff/1/?file=1762491#file1762491line421> > > > > should we add checks for PropagateTags? I am wondering what additional validation you are thinking of. as long as the enum is policed as a valid value by Atlas normal procssing there is no additional valition we need to do for propagaeTags - David ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60272/#review178862 ----------------------------------------------------------- On June 25, 2017, 1:22 p.m., David Radley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60272/ > ----------------------------------------------------------- > > (Updated June 25, 2017, 1:22 p.m.) > > > Review request for atlas, Madhan Neethiraj and Sarath Subramanian. > > > Repository: atlas > > > Description > ------- > > ATLAS-1891 > Additional validation checks for relationshipDefs and add edges between > entityDefs and relationshipDef vertices > > - for create check reserved words are not used on the endpoints and type name > and relationship attribute names > - for update do not allow updates to endpoints or the name or deletion of > attributes or relationship category > - for not allow deletion of an entityDef that has a relatiionshipDef > > > Diffs > ----- > > intg/src/main/java/org/apache/atlas/AtlasErrorCode.java > 70480df113db36cb938a8817239fbeae441acdc0 > intg/src/main/java/org/apache/atlas/type/AtlasTypeUtil.java > 31256683f4c1e3217ef4b2dba83f34c32e025435 > > repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java > aefd1684fe4a71cd0b45c4600cc5eca872ab0892 > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasEntityDefStoreV1.java > 8046234f17885cb6009edbcf3f9b80333932c358 > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasGraphUtilsV1.java > 00fe94b69d69d261e37766434b0cfd1e56117c52 > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasRelationshipDefStoreV1.java > 6992e221884db5382b89a29ea8a7efaad2cadcbc > > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasTypeDefGraphStoreV1.java > 2ba41443d7d5c51ec83848c5f9ca89720f74b63a > repository/src/test/java/org/apache/atlas/TestModules.java > d28956deb349c65d11031dbfb3866b91d5fd37e4 > > repository/src/test/java/org/apache/atlas/repository/store/graph/AtlasRelationshipDefStoreV1Test.java > PRE-CREATION > > webapp/src/main/java/org/apache/atlas/examples/CreateTypesFromJsonFileUtil.java > 82d6f2e3ee3f6376b7830e11900fda4e7275375b > > webapp/src/main/java/org/apache/atlas/examples/UpdateTypesFromJsonFileUtil.java > 3b6770658298849cb70e69c373f97fb4d13d1148 > > > Diff: https://reviews.apache.org/r/60272/diff/1/ > > > Testing > ------- > > run junits > create reltionshipDef > get relationshipDef > get relationshipDef/headers > delete relationshipDef > update relationshipDef > create a relationshipDef and then update it such that an attribute will be > deleted. This should fail. > Set the config option and try to create a reltionshipDef with a reserversed > word as an attribute name - this fails > Delete an entityDef that has a relationshipdef - this fails > Create a relationship with an endpoint name as a reserved word - this fails > > > Thanks, > > David Radley > >