Ashutosh Mestry created ATLAS-2749:
--------------------------------------
Summary: Migration Import: Associated Classifications Cannot Be
Deleted
Key: ATLAS-2749
URL: https://issues.apache.org/jira/browse/ATLAS-2749
Project: Atlas
Issue Type: Bug
Components: atlas-core
Reporter: Ashutosh Mestry
Assignee: Ashutosh Mestry
Fix For: trunk
*Pre-requisite*
On Atlas v0.8: Create few entities say _entity1_ and classifications say
_tag1_. Associate _tag1_ to _entity1_.
*Steps to duplicate on Atlas v1.0*
* Perform _migration import_.
* From the web ui select _tag1_, notice that _entity1_ is displayed.
* Attempt to remove _tag1_ from _entity1_.
*Expected result*: _tag1_ should be removed from _entity1_.
*Actual result*: _tag1_ is not removed. Server logs show _'No classifications
associated with entity.'_
*Root cause:* Imported edges that associate vertex with classification vertex
do not have ___isPropagate_ property set. The
_EntityGraphMapper_._deleteClassification_ calls _getTraitNames_ with
_isPropagate_ set to false. This makes the call return with no entities. The
deletion thus fails.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)