[jira] [Commented] (ATLAS-4749) What is the meaning of version in the JSON content of creating entities, and how to update version when updating entity content

2023-05-05 Thread Sarath Subramanian (Jira)


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

Sarath Subramanian commented on ATLAS-4749:
---

[~zhangkai] version is modeled as an internal field in atlas and not meant to 
be an updated field. We suggest you add a new attribute to capture version.

> What is the meaning of version in the JSON content of creating entities, and 
> how to update version when updating entity content
> ---
>
> Key: ATLAS-4749
> URL: https://issues.apache.org/jira/browse/ATLAS-4749
> Project: Atlas
>  Issue Type: Task
>Affects Versions: 2.3.0
>Reporter: zhangkai
>Priority: Major
>
> Example:
> 1. Create Entity ("version"=20)
> 2. Query created entities
> 3. Update Entity ("version"=30)
> 4. Query the updated entity and find that version=20 has not changed
> Create an entity's JSON
> {
>     "entity": {
>         "typeName": "my_db_new",
>         "attributes": {
>             "description": "database",
>             "clustername": "T2@TEST",
>             "name": "all_dbs",
>             "qualifiedName": "T2@TEST",
>             "attr2": "test"
>         },
>         "version": 20
>     }
> }
> Update entity's JSON
> {
>     "entity": {
>         "typeName": "my_db_new",
>         "attributes": {
>             "description": "database",
>             "clustername": "T2@TEST",
>             "name": "all_dbs_update",
>             "qualifiedName": "T2@TEST",
>             "attr2": "test"
>         },
>         "version": 30
>     }
> }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (ATLAS-4748) 创建实体的JSON内容中版本是什么含义,更新实体内容时如何更新版本

2023-05-05 Thread Sarath Subramanian (Jira)


 [ 
https://issues.apache.org/jira/browse/ATLAS-4748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sarath Subramanian resolved ATLAS-4748.
---
Resolution: Incomplete

> 创建实体的JSON内容中版本是什么含义,更新实体内容时如何更新版本
> -
>
> Key: ATLAS-4748
> URL: https://issues.apache.org/jira/browse/ATLAS-4748
> Project: Atlas
>  Issue Type: Task
>  Components:  atlas-core
>Affects Versions: 2.3.0
>Reporter: zhangkai
>Priority: Major
>
> 创建实体的JSON内容中版本是什么含义,更新实体内容时如何更新版本
>  
> 例:
> 1. 创建实体(“版本”=20)
> 2. 查询创建的实体
> 3. 更新实体(“版本”=30)
> 4. 查询更新的实体,发现 version=20 未更改
>  
> 创建实体的 JSON
> {
> “实体”:{
> “类型名称”: “my_db_new”,
> “属性”:{
> “描述”: “数据库”,
> “集群名称”: “T2@TEST”,
> “名称”: “all_dbs”,
> “限定名称”: “T2@TEST”,
> “attr2”: “测试”
> },
> “版本”:20
> }
> }
>  
>  
> 更新实体的 JSON
> {
> “实体”:{
> “类型名称”: “my_db_new”,
> “属性”:{
> “描述”: “数据库”,
> “集群名称”: “T2@TEST”,
> “名称”: “all_dbs_update”,
> “限定名称”: “T2@TEST”,
> “attr2”: “测试”
> },
> “版本”:30
> }
> }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)