[
https://issues.apache.org/jira/browse/ATLAS-4048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Mestry updated ATLAS-4048:
-----------------------------------
Description:
*Background*
Business Metadata attributes provide a simple way to augment attributes to
existing entity types.
Updating Business Metadata for existing entities via REST APIs did not happen
as the changes were not tracked when considering entity for update.
*Steps to Duplicate*
Setup:
* Create a source cluster, say cl1.
* Create a destination cluster, say cl2.
Steps to duplicate:
# On cl1: Create Business Metadata say bm1. Add 3 attributes to an entity, say
t1. Perform export.
# On cl2: Use Import REST API, perform import on a different cluster, say cl2.
# On cl1: Edit the entity t1. Remove 2 of the 3 BM attributes. Perform export.
# On cl2: Perform import.
Expected results: On cl2: Entity t1 will have 1 business metadata attribute.
Actual result: On cl2, Entity t1 contains all 3 attributes from step 1.
*Root Cause*
During entity creation flow, the Business Metadata attributes are not
considered when detecting if entity has changes.
Solution: Add a step to detect changes to Business Metadata attributes.
was:
*Background*
Business Metadata attributes provide a simple way to augment attributes to
existing entity types.
Updating Business Metadata for existing entities via REST APIs did not happen
as the changes were not tracked when considering entity for update.
*Steps to Duplicate*
Setup:
* Create Business Metadata and add 3 attributes.
* Create an exported ZIP file.
Steps to duplicate:
# Via REST API, create an entity with 3 Business Metadata attributes.
# From the web UI, load the entity where attributes have been added.
# Delete 1 attribute.
# Use entity update REST API to update the entity from step 1.
Expected results: Entity will have all 3 attributes.
Actual result: Entity will contain only 2 attributes that were present in step
2.
*Root Cause*
During entity creation flow, the Business Metadata attributes are not
considered when detecting if entity has changes.
Solution: Add a step to detect changes to Business Metadata attributes.
> Import Service: Entity Creation: Updates to Business Metadata
> -------------------------------------------------------------
>
> Key: ATLAS-4048
> URL: https://issues.apache.org/jira/browse/ATLAS-4048
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 2.1.0
> Reporter: Umesh Padashetty
> Assignee: Ashutosh Mestry
> Priority: Major
> Attachments: ATLAS-4048-Entity-Update-Businessmetada-changes.patch
>
>
> *Background*
> Business Metadata attributes provide a simple way to augment attributes to
> existing entity types.
> Updating Business Metadata for existing entities via REST APIs did not happen
> as the changes were not tracked when considering entity for update.
> *Steps to Duplicate*
> Setup:
> * Create a source cluster, say cl1.
> * Create a destination cluster, say cl2.
> Steps to duplicate:
> # On cl1: Create Business Metadata say bm1. Add 3 attributes to an entity,
> say t1. Perform export.
> # On cl2: Use Import REST API, perform import on a different cluster, say
> cl2.
> # On cl1: Edit the entity t1. Remove 2 of the 3 BM attributes. Perform
> export.
> # On cl2: Perform import.
> Expected results: On cl2: Entity t1 will have 1 business metadata attribute.
> Actual result: On cl2, Entity t1 contains all 3 attributes from step 1.
> *Root Cause*
> During entity creation flow, the Business Metadata attributes are not
> considered when detecting if entity has changes.
> Solution: Add a step to detect changes to Business Metadata attributes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)