You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (Jira)" <ji...@apache.org> on 2023/05/05 21:39:00 UTC
[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
[ https://issues.apache.org/jira/browse/ATLAS-4749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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)