[ 
https://issues.apache.org/jira/browse/ATLAS-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17093024#comment-17093024
 ] 

Madhan Neethiraj commented on ATLAS-3754:
-----------------------------------------

[~bolke] - looks like this has been the behavior since homeId was introduced 
about 2 years back in ATLAS-2523; and same for isProxy,  introduced in 
ATLAS-2808, and provenanceType, introduced in ATLAS-2936.

Can you add details of the behavior you need (like should these attributes be 
set only during create? or be updatable in entity-update calls?)? Please 
consider that Atlas clients may not supply any value of these attributes 
(homeId/isProxy/provenanceType) - since they many not be aware of these. In 
such cases, existing values shouldn't overwritten.

To add/update/remove business attributes on entities, there are separate APIs 
(like /guid/\{guid}/businessmetadata, 
/guid/\{guid}/businessmetadata/\{bmName}); entity-update APIs ignore if any 
business-attributes are provided.  This is similar to how updates to 
entity-classifications require use of separate APIs.

> System/Business Attributes (like homeId) not being saved
> --------------------------------------------------------
>
>                 Key: ATLAS-3754
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3754
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: trunk
>            Reporter: Bolke de Bruin
>            Priority: Blocker
>
> System attributes and business attributes are not being saved (homeId at 
> least isn't)
> {code}
> skipping unchanged entity: AtlasEntity{AtlasStruct{typeName='hdfs_path', 
> attributes=[name:electionresults, 
> qualifiedName:electionresults.electionresults@Sandbox, 
> path:/user/dmaster/electionresults/ls2014.tsv, 
> clusterName:Sandbox]}guid='8e6ede0c-22c5-4b41-bee4-757568b4b99a', 
> homeId='my_home_id_x', isProxy='false', isIncomplete=false, provenanceType=0, 
> status=null, createdBy='null', updatedBy='null', createTime=null, 
> updateTime=null, version=0, relationshipAttributes=[], classifications=[], 
> meanings=[], customAttributes=[], businessAttributes=[], labels=[]} 
> (AtlasEntityStoreV2:1204)
> {code}
> {code}
> skipping unchanged entity: AtlasEntity{AtlasStruct{typeName='hdfs_path', 
> attributes=[name:electionresults, 
> qualifiedName:electionresults.electionresults@Sandbox, 
> path:/user/dmaster/electionresults/ls2014.tsv, 
> clusterName:Sandbox]}guid='8e6ede0c-22c5-4b41-bee4-757568b4b99a', 
> homeId='my_home_id_2', isProxy='false', isIncomplete=false, provenanceType=0, 
> status=null, createdBy='null', updatedBy='null', createTime=null, 
> updateTime=null, version=0, relationshipAttributes=[], classifications=[], 
> meanings=[], customAttributes=[], businessAttributes=[], labels=[]} 
> (AtlasEntityStoreV2:1204)
> {code}
> Note the change in homeId and the entity not being updated



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to