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

Shwetha G S commented on ATLAS-621:
-----------------------------------

Sample DSL search response json:
{noformat}
{  
   "query":"Department",
   "dataType":{  
      "superTypes":[  

      ],
      "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
      "typeName":"Department",
      "typeDescription":"Department_description",
      "attributeDefinitions":[  
         {  
            "name":"name",
            "dataTypeName":"string",
            "multiplicity":{  
               "lower":1,
               "upper":1,
               "isUnique":false
            },
            "isComposite":false,
            "isUnique":false,
            "isIndexable":true,
            "reverseAttributeName":null
         },
         {  
            "name":"employees",
            "dataTypeName":"array<Person>",
            "multiplicity":{  
               "lower":1,
               "upper":2147483647,
               "isUnique":false
            },
            "isComposite":true,
            "isUnique":false,
            "isIndexable":true,
            "reverseAttributeName":"department"
         }
      ]
   },
   "rows":[  
      {  
         "$typeName$":"Department",
         "$id$":{  
            "id":"c785891b-2b68-4279-8e5f-ead1921ca8b2",
            "$typeName$":"Department",
            "version":0,
            "state":"ACTIVE"
         },
         "employees":[  
            {  
               "$typeName$":"Person",
               "$id$":{  
                  "id":"40af8bd1-4512-4466-b5ab-b3477de47dbd",
                  "$typeName$":"Person",
                  "version":0,
                  "state":"ACTIVE"
               },
               "manager":{  
                  "id":"19d8c253-75bf-4fd9-9f81-5fcba6cc0185",
                  "$typeName$":"Manager",
                  "version":0,
                  "state":"ACTIVE"
               },
               "orgLevel":null,
               "address":{  
                  "$typeName$":"Address",
                  "city":"Sunnyvale",
                  "street":"Stewart Drive"
               },
               "department":{  
                  "id":"c785891b-2b68-4279-8e5f-ead1921ca8b2",
                  "$typeName$":"Department",
                  "version":0,
                  "state":"ACTIVE"
               },
               "name":"John",
               "mentor":{  
                  "id":"4d1e27d4-9d13-4f61-a9e4-f426ee538c6d",
                  "$typeName$":"Person",
                  "version":0,
                  "state":"ACTIVE"
               }
            },
            {  
               "$typeName$":"Manager",
               "$id$":{  
                  "id":"b1502645-ed1b-4dae-9f24-31264810d78e",
                  "$typeName$":"Manager",
                  "version":0,
                  "state":"ACTIVE"
               },
               "manager":null,
               "orgLevel":null,
               "address":{  
                  "$typeName$":"Address",
                  "city":"Newtonville",
                  "street":"Madison Ave"
               },
               "subordinates":null,
               "department":{  
                  "id":"c785891b-2b68-4279-8e5f-ead1921ca8b2",
                  "$typeName$":"Department",
                  "version":0,
                  "state":"ACTIVE"
               },
               "name":"Julius",
               "mentor":null
            },
            {  
               "$typeName$":"Person",
               "$id$":{  
                  "id":"4d1e27d4-9d13-4f61-a9e4-f426ee538c6d",
                  "$typeName$":"Person",
                  "version":0,
                  "state":"ACTIVE"
               },
               "manager":{  
                  "id":"19d8c253-75bf-4fd9-9f81-5fcba6cc0185",
                  "$typeName$":"Manager",
                  "version":0,
                  "state":"ACTIVE"
               },
               "orgLevel":null,
               "address":{  
                  "$typeName$":"Address",
                  "city":"Newton",
                  "street":"Ripley St"
               },
               "department":{  
                  "id":"c785891b-2b68-4279-8e5f-ead1921ca8b2",
                  "$typeName$":"Department",
                  "version":0,
                  "state":"ACTIVE"
               },
               "name":"Max",
               "mentor":{  
                  "id":"b1502645-ed1b-4dae-9f24-31264810d78e",
                  "$typeName$":"Person",
                  "version":0,
                  "state":"ACTIVE"
               }
            }
         ],
         "name":"hr"
      }
   ]
}
{noformat}

> Introduce entity state in Id object
> -----------------------------------
>
>                 Key: ATLAS-621
>                 URL: https://issues.apache.org/jira/browse/ATLAS-621
>             Project: Atlas
>          Issue Type: Sub-task
>            Reporter: Shwetha G S
>            Assignee: Shwetha G S
>              Labels: incompatibleChange
>             Fix For: 0.7-incubating
>
>         Attachments: ATLAS-621-v2.patch, ATLAS-621.patch
>
>
> Add entity state with ACTIVE and DELETED. The state should be returned in get 
> entity definition and in search results where entity is returned. In entity 
> create, mark the state as ACTIVE



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to