[jira] [Commented] (ATLAS-621) Introduce entity state in Id object

2016-04-10 Thread Shwetha G S (JIRA)

[ 
https://issues.apache.org/jira/browse/ATLAS-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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",
"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: 

[jira] [Commented] (ATLAS-621) Introduce entity state in Id object

2016-04-09 Thread Suma Shivaprasad (JIRA)

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

Suma Shivaprasad commented on ATLAS-621:


+1

> 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
> 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)


[jira] [Commented] (ATLAS-621) Introduce entity state in Id object

2016-04-09 Thread ATLAS QA (JIRA)

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

ATLAS QA commented on ATLAS-621:


{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment
  http://issues.apache.org/jira/secure/attachment/12797875/ATLAS-621-v2.patch
  against master revision b8f4ffb.

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 5 new 
or modified test files.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 javadoc{color}.  There were no new javadoc warning messages.

+1 checkstyle.  The patch generated 0 code style errors.

{color:red}-1 findbugs{color}.  The patch appears to introduce 353 new 
Findbugs (version 2.0.3) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:red}-1 core tests{color}.  The patch failed these unit tests in :
 
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.RexsterGraphJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.AdminJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.EntityJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.MetadataDiscoveryJerseyResourceIT
./webapp/test-output/junitreports/TEST-org.apache.atlas.web.resources.TypesJerseyResourceIT

Test results: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningswebapp.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningscommon.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningssqoop-bridge.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningshdfs-model.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningsstorm-bridge.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningshive-bridge.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningsrepository.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningstypesystem.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningsclient.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningsnotification.html
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ATLAS-Build/143//artifact/patchprocess/newPatchFindbugsWarningstitan.html
Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/143//console

This message is automatically generated.

> 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
> 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)