[
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: "51111271-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: "51111271-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:
[https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/daa724fe-1e14-4734-ab95-85c4a5aafee4]
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_1_ASSOCIATION_O6FR7Q",
attributes: {
rel_attribute: null,
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: null
},
labels: []
}
} {code}
Entity2 def after update to True:
https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/51111271-ecdb-4792-8962-4bc6a68df3a2
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_2_ASSOCIATION_XP3JPH",
attributes: {
rel_attribute: null,
name: "entity_2_L47P2H"
},
guid: "51111271-ecdb-4792-8962-4bc6a68df3a2",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648474464955,
updateTime: 1648474464955,
version: 0,
relationshipAttributes: {
rel_attribute: null
},
labels: []
}
} {code}
New entity Entity3 def created after update to True:
https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/0ac1d17b-7252-4ccc-a400-d94abc5e2e01
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_1_ASSOCIATION_O6FR7Q",
attributes: {
rel_attribute: {
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
typeName: "type_2_ASSOCIATION_XP3JPH"
},
name: "entity_3_MKC1MV"
},
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648475166152,
updateTime: 1648475166152,
version: 0,
relationshipAttributes: {
rel_attribute: {
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
typeName: "type_2_ASSOCIATION_XP3JPH",
entityStatus: "ACTIVE",
displayText: "entity_4_3ATB39",
relationshipType: "ASSOCIATION_5YEDIO",
relationshipGuid: "fbdffdd8-95b8-4c55-87e7-be0cdcbf56a0",
relationshipStatus: "ACTIVE",
relationshipAttributes: {
typeName: "ASSOCIATION_5YEDIO"
}
}
},
labels: []
}
} {code}
new entity Entity4 def created after update to True:
https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/52e76d12-d5ab-43e7-ab28-f194444f9f67
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_2_ASSOCIATION_XP3JPH",
attributes: {
rel_attribute: {
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
typeName: "type_1_ASSOCIATION_O6FR7Q"
},
name: "entity_4_3ATB39"
},
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648475166152,
updateTime: 1648475166152,
version: 0,
relationshipAttributes: {
rel_attribute: {
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
typeName: "type_1_ASSOCIATION_O6FR7Q",
entityStatus: "ACTIVE",
displayText: "entity_3_MKC1MV",
relationshipType: "ASSOCIATION_5YEDIO",
relationshipGuid: "3727d6a7-e49b-4e1b-a03a-a7c84c91dc28",
relationshipStatus: "ACTIVE",
relationshipAttributes: {
typeName: "ASSOCIATION_5YEDIO"
}
}
},
labels: []
}
} {code}
Here we can see that *relationshipAttributes* of the entities that were created
before update were reset and the response is inconsistent with the newly
created entities
was:
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:
{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: "51111271-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: "51111271-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:
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_1_ASSOCIATION_O6FR7Q",
attributes: {
rel_attribute: null,
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: null
},
labels: []
}
} {code}
Entity2 def after update:
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_2_ASSOCIATION_XP3JPH",
attributes: {
rel_attribute: null,
name: "entity_2_L47P2H"
},
guid: "51111271-ecdb-4792-8962-4bc6a68df3a2",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648474464955,
updateTime: 1648474464955,
version: 0,
relationshipAttributes: {
rel_attribute: null
},
labels: []
}
} {code}
New entity Entity3 def created after update:
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_1_ASSOCIATION_O6FR7Q",
attributes: {
rel_attribute: {
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
typeName: "type_2_ASSOCIATION_XP3JPH"
},
name: "entity_3_MKC1MV"
},
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648475166152,
updateTime: 1648475166152,
version: 0,
relationshipAttributes: {
rel_attribute: {
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
typeName: "type_2_ASSOCIATION_XP3JPH",
entityStatus: "ACTIVE",
displayText: "entity_4_3ATB39",
relationshipType: "ASSOCIATION_5YEDIO",
relationshipGuid: "fbdffdd8-95b8-4c55-87e7-be0cdcbf56a0",
relationshipStatus: "ACTIVE",
relationshipAttributes: {
typeName: "ASSOCIATION_5YEDIO"
}
}
},
labels: []
}
} {code}
new entity Entity4 def created after update:
{code:java}
{
referredEntities: {},
entity: {
typeName: "type_2_ASSOCIATION_XP3JPH",
attributes: {
rel_attribute: {
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
typeName: "type_1_ASSOCIATION_O6FR7Q"
},
name: "entity_4_3ATB39"
},
guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
isIncomplete: false,
status: "ACTIVE",
createdBy: "hrt_qa",
updatedBy: "hrt_qa",
createTime: 1648475166152,
updateTime: 1648475166152,
version: 0,
relationshipAttributes: {
rel_attribute: {
guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
typeName: "type_1_ASSOCIATION_O6FR7Q",
entityStatus: "ACTIVE",
displayText: "entity_3_MKC1MV",
relationshipType: "ASSOCIATION_5YEDIO",
relationshipGuid: "3727d6a7-e49b-4e1b-a03a-a7c84c91dc28",
relationshipStatus: "ACTIVE",
relationshipAttributes: {
typeName: "ASSOCIATION_5YEDIO"
}
}
},
labels: []
}
} {code}
Here we can see that *relationshipAttributes* of the entities that were created
before update were reset and the response is inconsistent with the newly
created entities
> [Relationships] Updating legacyAttribute from False to True resets the
> initially created relationshipAttributes values
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-4573
> URL: https://issues.apache.org/jira/browse/ATLAS-4573
> Project: Atlas
> Issue Type: Bug
> Reporter: Dharshana M Krishnamoorthy
> Priority: Major
> Attachments: 1_rel_legacy_false.png, 2_entity1_legacy_false.png,
> 3_entity_2_legacy_false.png, 4_rel_legacy_true.png,
> 5_entity_1_legacy_true.png, 6_entity_2_legacy_true.png,
> 7_entity_3_legacy_true.png, 8_entity_4_legacy_true.png
>
>
> 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: "51111271-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: "51111271-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:
> [https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/daa724fe-1e14-4734-ab95-85c4a5aafee4]
>
> {code:java}
> {
> referredEntities: {},
> entity: {
> typeName: "type_1_ASSOCIATION_O6FR7Q",
> attributes: {
> rel_attribute: null,
> 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: null
> },
> labels: []
> }
> } {code}
> Entity2 def after update to True:
> https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/51111271-ecdb-4792-8962-4bc6a68df3a2
> {code:java}
> {
> referredEntities: {},
> entity: {
> typeName: "type_2_ASSOCIATION_XP3JPH",
> attributes: {
> rel_attribute: null,
> name: "entity_2_L47P2H"
> },
> guid: "51111271-ecdb-4792-8962-4bc6a68df3a2",
> isIncomplete: false,
> status: "ACTIVE",
> createdBy: "hrt_qa",
> updatedBy: "hrt_qa",
> createTime: 1648474464955,
> updateTime: 1648474464955,
> version: 0,
> relationshipAttributes: {
> rel_attribute: null
> },
> labels: []
> }
> } {code}
> New entity Entity3 def created after update to True:
> https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/0ac1d17b-7252-4ccc-a400-d94abc5e2e01
> {code:java}
> {
> referredEntities: {},
> entity: {
> typeName: "type_1_ASSOCIATION_O6FR7Q",
> attributes: {
> rel_attribute: {
> guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
> typeName: "type_2_ASSOCIATION_XP3JPH"
> },
> name: "entity_3_MKC1MV"
> },
> guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
> isIncomplete: false,
> status: "ACTIVE",
> createdBy: "hrt_qa",
> updatedBy: "hrt_qa",
> createTime: 1648475166152,
> updateTime: 1648475166152,
> version: 0,
> relationshipAttributes: {
> rel_attribute: {
> guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
> typeName: "type_2_ASSOCIATION_XP3JPH",
> entityStatus: "ACTIVE",
> displayText: "entity_4_3ATB39",
> relationshipType: "ASSOCIATION_5YEDIO",
> relationshipGuid: "fbdffdd8-95b8-4c55-87e7-be0cdcbf56a0",
> relationshipStatus: "ACTIVE",
> relationshipAttributes: {
> typeName: "ASSOCIATION_5YEDIO"
> }
> }
> },
> labels: []
> }
> } {code}
>
> new entity Entity4 def created after update to True:
> https://quasar-uytlae-4.quasar-uytlae.root.hwx.site:31443/api/atlas/v2/entity/guid/52e76d12-d5ab-43e7-ab28-f194444f9f67
> {code:java}
> {
> referredEntities: {},
> entity: {
> typeName: "type_2_ASSOCIATION_XP3JPH",
> attributes: {
> rel_attribute: {
> guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
> typeName: "type_1_ASSOCIATION_O6FR7Q"
> },
> name: "entity_4_3ATB39"
> },
> guid: "52e76d12-d5ab-43e7-ab28-f194444f9f67",
> isIncomplete: false,
> status: "ACTIVE",
> createdBy: "hrt_qa",
> updatedBy: "hrt_qa",
> createTime: 1648475166152,
> updateTime: 1648475166152,
> version: 0,
> relationshipAttributes: {
> rel_attribute: {
> guid: "0ac1d17b-7252-4ccc-a400-d94abc5e2e01",
> typeName: "type_1_ASSOCIATION_O6FR7Q",
> entityStatus: "ACTIVE",
> displayText: "entity_3_MKC1MV",
> relationshipType: "ASSOCIATION_5YEDIO",
> relationshipGuid: "3727d6a7-e49b-4e1b-a03a-a7c84c91dc28",
> relationshipStatus: "ACTIVE",
> relationshipAttributes: {
> typeName: "ASSOCIATION_5YEDIO"
> }
> }
> },
> labels: []
> }
> } {code}
>
> Here we can see that *relationshipAttributes* of the entities that were
> created before update were reset and the response is inconsistent with the
> newly created entities
--
This message was sent by Atlassian Jira
(v8.20.1#820001)