[jira] [Updated] (ATLAS-4573) [Relationships] Updating legacyAttribute from False to True resets the initially created relationshipAttributes values
[ https://issues.apache.org/jira/browse/ATLAS-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dharshana M Krishnamoorthy updated ATLAS-4573: -- Description: Steps followed: Create types , entities, relationship with *is_legacy_attribute* set initially to *False* Update the relationshipDef to have *is_legacy_attribute* to *True* For the entities that were created before updating the *is_legacy_attribute* to *True,* *relationshipAttributes* is now reset Initial relationship def: [https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/types/relationshipdef/name/ASSOCIATION_5YEDIO] (This will now fetch the updated def) {code:java} { category: "RELATIONSHIP", guid: "-294437519020", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474404121, updateTime: 1648474404121, version: 1, name: "ASSOCIATION_5YEDIO", description: "default relationshipDef description with name: ASSOCIATION_5YEDIO", typeVersion: "1.0", attributeDefs: [], relationshipCategory: "ASSOCIATION", propagateTags: "NONE", endDef1: { type: "type_1_ASSOCIATION_O6FR7Q", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: false, description: "default relationshipEndDef description with name: rel_attribute" }, endDef2: { type: "type_2_ASSOCIATION_XP3JPH", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: false, description: "default relationshipEndDef description with name: rel_attribute" } } {code} Entiry1 def before update to True: {code:java} { referredEntities: {}, entity: { typeName: "type_1_ASSOCIATION_O6FR7Q", attributes: { name: "entity_1_PP8ULL" }, guid: "daa724fe-1e14-4734-ab95-85c4a5aafee4", isIncomplete: false, status: "ACTIVE", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474464955, updateTime: 1648474464955, version: 0, relationshipAttributes: { rel_attribute: { guid: "5271-ecdb-4792-8962-4bc6a68df3a2", typeName: "type_2_ASSOCIATION_XP3JPH", entityStatus: "ACTIVE", displayText: "entity_2_L47P2H", relationshipType: "ASSOCIATION_5YEDIO", relationshipGuid: "8e390507-cdfc-4f83-bded-16862498ac0c", relationshipStatus: "ACTIVE", relationshipAttributes: { typeName: "ASSOCIATION_5YEDIO" } } }, labels: [] } } {code} Entity2 def before Update to True: {code:java} { referredEntities: {}, entity: { typeName: "type_2_ASSOCIATION_XP3JPH", attributes: { name: "entity_2_L47P2H" }, guid: "5271-ecdb-4792-8962-4bc6a68df3a2", isIncomplete: false, status: "ACTIVE", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474464955, updateTime: 1648474464955, version: 0, relationshipAttributes: { rel_attribute: { guid: "daa724fe-1e14-4734-ab95-85c4a5aafee4", typeName: "type_1_ASSOCIATION_O6FR7Q", entityStatus: "ACTIVE", displayText: "entity_1_PP8ULL", relationshipType: "ASSOCIATION_5YEDIO", relationshipGuid: "8e390507-cdfc-4f83-bded-16862498ac0c", relationshipStatus: "ACTIVE", relationshipAttributes: { typeName: "ASSOCIATION_5YEDIO" } } }, labels: [] } } {code} Updated relationship def: {code:java} { category: "RELATIONSHIP", guid: "-294437519020", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474404121, updateTime: 1648474705804, version: 2, name: "ASSOCIATION_5YEDIO", description: "default relationshipDef description with name: ASSOCIATION_5YEDIO", typeVersion: "1.0", attributeDefs: [], relationshipCategory: "ASSOCIATION", propagateTags: "NONE", endDef1: { type: "type_1_ASSOCIATION_O6FR7Q", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: true, description: "default relationshipEndDef description with name: rel_attribute" }, endDef2: { type: "type_2_ASSOCIATION_XP3JPH", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: true, description: "default relationshipEndDef description with name: rel_attribute" } } {code} Entity1 def after update to True:
[jira] [Updated] (ATLAS-4573) [Relationships] Updating legacyAttribute from False to True resets the initially created relationshipAttributes values
[ https://issues.apache.org/jira/browse/ATLAS-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dharshana M Krishnamoorthy updated ATLAS-4573: -- Description: Steps followed: Create types , entities, relationship with *is_legacy_attribute* set initially to *False* Update the relationshipDef to have *is_legacy_attribute* to *True* For the entities that were created before updating the *is_legacy_attribute* to *True,* *relationshipAttributes* is now reset Initial relationship def: [https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/types/relationshipdef/name/ASSOCIATION_5YEDIO] (This will now fetch the updated def) {code:java} { category: "RELATIONSHIP", guid: "-294437519020", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474404121, updateTime: 1648474404121, version: 1, name: "ASSOCIATION_5YEDIO", description: "default relationshipDef description with name: ASSOCIATION_5YEDIO", typeVersion: "1.0", attributeDefs: [], relationshipCategory: "ASSOCIATION", propagateTags: "NONE", endDef1: { type: "type_1_ASSOCIATION_O6FR7Q", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: false, description: "default relationshipEndDef description with name: rel_attribute" }, endDef2: { type: "type_2_ASSOCIATION_XP3JPH", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: false, description: "default relationshipEndDef description with name: rel_attribute" } } {code} Entiry1 def before update to True: {code:java} { referredEntities: {}, entity: { typeName: "type_1_ASSOCIATION_O6FR7Q", attributes: { name: "entity_1_PP8ULL" }, guid: "daa724fe-1e14-4734-ab95-85c4a5aafee4", isIncomplete: false, status: "ACTIVE", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474464955, updateTime: 1648474464955, version: 0, relationshipAttributes: { rel_attribute: { guid: "5271-ecdb-4792-8962-4bc6a68df3a2", typeName: "type_2_ASSOCIATION_XP3JPH", entityStatus: "ACTIVE", displayText: "entity_2_L47P2H", relationshipType: "ASSOCIATION_5YEDIO", relationshipGuid: "8e390507-cdfc-4f83-bded-16862498ac0c", relationshipStatus: "ACTIVE", relationshipAttributes: { typeName: "ASSOCIATION_5YEDIO" } } }, labels: [] } } {code} Entity2 def before Update to True: {code:java} { referredEntities: {}, entity: { typeName: "type_2_ASSOCIATION_XP3JPH", attributes: { name: "entity_2_L47P2H" }, guid: "5271-ecdb-4792-8962-4bc6a68df3a2", isIncomplete: false, status: "ACTIVE", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474464955, updateTime: 1648474464955, version: 0, relationshipAttributes: { rel_attribute: { guid: "daa724fe-1e14-4734-ab95-85c4a5aafee4", typeName: "type_1_ASSOCIATION_O6FR7Q", entityStatus: "ACTIVE", displayText: "entity_1_PP8ULL", relationshipType: "ASSOCIATION_5YEDIO", relationshipGuid: "8e390507-cdfc-4f83-bded-16862498ac0c", relationshipStatus: "ACTIVE", relationshipAttributes: { typeName: "ASSOCIATION_5YEDIO" } } }, labels: [] } } {code} Updated relationship def: {code:java} { category: "RELATIONSHIP", guid: "-294437519020", createdBy: "hrt_qa", updatedBy: "hrt_qa", createTime: 1648474404121, updateTime: 1648474705804, version: 2, name: "ASSOCIATION_5YEDIO", description: "default relationshipDef description with name: ASSOCIATION_5YEDIO", typeVersion: "1.0", attributeDefs: [], relationshipCategory: "ASSOCIATION", propagateTags: "NONE", endDef1: { type: "type_1_ASSOCIATION_O6FR7Q", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: true, description: "default relationshipEndDef description with name: rel_attribute" }, endDef2: { type: "type_2_ASSOCIATION_XP3JPH", name: "rel_attribute", isContainer: false, cardinality: "SINGLE", isLegacyAttribute: true, description: "default relationshipEndDef description with name: rel_attribute" } } {code} Entity1 def after update to True: