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

hongsp edited comment on ATLAS-3700 at 3/24/22, 7:42 AM:
---------------------------------------------------------

1、atlas-server 
tag-version:[release-2.2.0-rc1;|https://github.com/apache/atlas/releases/tag/release-2.2.0-rc1]

2、something wrong:detail API response will include DELETE 
array<AtlasEntityType>,how to exclude DELETE values

3、Test Case:

org.apache.atlas.repository.store.graph.v2.AtlasComplexAttributesTest.testEntityArray()
 


was (Author: hongsp):
1、atlas-server 
tag-version:[release-2.2.0-rc1;|https://github.com/apache/atlas/releases/tag/release-2.2.0-rc1]

2、something wrong:partial-update or full-update API calls will be appended to 
existing  value ,type of attribute is array<AtlasEntityType> ,there is no way 
to overwrite the value?

3、Test Case:

org.apache.atlas.repository.store.graph.v2.AtlasComplexAttributesTest.testEntityArray()
 is invalid

> added option to append value to array, map type attributes
> ----------------------------------------------------------
>
>                 Key: ATLAS-3700
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3700
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 3.0.0
>            Reporter: Na Li
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 2.1.0, 3.0.0
>
>         Attachments: ATLAS-3700.003.patch, ATLAS-3700.004.patch, 
> ATLAS-3700.patch
>
>
> *Details:*
> 1) The model definition is in 
> "https://github.com/apache/atlas/blob/master/addons/models/4000-MachineLearning/4010-ml_model.json#L90";
> 2) I created a request of type EntityCreateRequestV2. It contains an entity 
> of type ml_model_build with an attribute "metadata", which is a map, and 
> contains key-value entries for "engineImageTag" and "engineImageName".
> 3) Then I created a request of type EntityPartialUpdateRequestV2. It contains 
> an entity of type ml_model_build with an attribute "metadata", which is a 
> map, and contains key-value entry for "updated_at".
> 4) In the properties of the entity ml_model_build, the * attribute 
> "*metadata" only contains key-value entry for "updated_at".
> *Desired behavior:*
> The attribute "metadata" should contains key-value entries for 
> "engineImageTag", "engineImageName" and "updated_at".
> Current behavior:
> the attribute "metadata" only contains key-value entry for "updated_at".
>  
>  Added 'isAppendOnPartialUpdate' option in attribute-def, to enable appending 
> of values to array/map type attributes during partial-update operation.
> Example:
> {code:java}
> {
>     "name":        "metadata",
>     "typeName":    "map<string,string>",
>     "isIndexable": false,
>     "isOptional":  true,
>     "isUnique":    false,
>     "options": {
>       "isAppendOnPartialUpdate": "true"
>     }
>   }{code}
>  
> The value specified for this attribute in partial-update API calls will be 
> appended to existing value - if present. Full-update API calls will overwrite 
> the value of the attribute, as it does currently; there is no change in 
> full-update behavior.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to