[jira] [Updated] (ATLAS-2347) V1 search REST API response to be consistent with earlier version of Atlas

2018-01-08 Thread Madhan Neethiraj (JIRA)

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

Madhan Neethiraj updated ATLAS-2347:

Reporter: Deepak Sharma  (was: Madhan Neethiraj)

> V1 search REST API response to be consistent with earlier version of Atlas
> --
>
> Key: ATLAS-2347
> URL: https://issues.apache.org/jira/browse/ATLAS-2347
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Deepak Sharma
>Assignee: Madhan Neethiraj
>Priority: Critical
>
> V1 search REST API response is different from earlier version of Atlas, for 
> example:
> Response in Atlas from master:
> {noformat}
> {
>   'count': 1,
>   'dataType': None, 
>   'results': [
> {
>   'status': u'ACTIVE',
>   'guid': u'20ffbd67-a4dc-4b8f-ad68-a318c9b62519', 
>   'typeName': 'hive_db',
>   'displayText': 'finance_tg_atlas', 
>   'attributes': {
> 'owner': 'user2', 
> 'qualifiedName': 'finance_tg_atlas@cl1', 
> 'description': None, 
> 'createTime': None, 
> 'name': 'finance_tg_atlas'
>   }, 
>   'classificationNames': []
> }
>   ],
>   'requestId': 'pool-2-thread-4 - dc5394df-ab75-4ff7-b3e0-876842d36725', 
>   'query': "hive_db where name='finance_tg_atlas'",
>   'queryType': 'dsl'
> }
> {noformat}
> Response from Atlas in branch-0.8:
> {noformat}
> {
>   "requestId": "pool-2-thread-17 - e070c9bd-a21a-4bb1-90da-d79f7a200532",
>   "query": "hive_db",
>   "queryType": "dsl",
>   "count": 1,
>   "results": [
> {
>   "$typeName$": "hive_db",
>   "$id$": {
> "id": "8048049f-0d63-4627-97a1-5200a0081ca5",
> "$typeName$": "hive_db",
> "version": 0,
> "state": "ACTIVE"
>   },
>   "$systemAttributes$": {
> "createdBy": "hive",
> "modifiedBy": "hive",
> "createdTime": "Mon Jan 08 19:55:35 UTC 2018",
> "modifiedTime": "Mon Jan 08 19:55:35 UTC 2018"
>   },
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (ATLAS-2347) V1 search REST API response to be consistent with earlier version of Atlas

2018-01-09 Thread Madhan Neethiraj (JIRA)

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

Madhan Neethiraj updated ATLAS-2347:

Attachment: ATLAS-2347.patch

Review board URL: https://reviews.apache.org/r/65037/

> V1 search REST API response to be consistent with earlier version of Atlas
> --
>
> Key: ATLAS-2347
> URL: https://issues.apache.org/jira/browse/ATLAS-2347
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Deepak Sharma
>Assignee: Madhan Neethiraj
>Priority: Critical
> Fix For: 1.0.0
>
> Attachments: ATLAS-2347.patch
>
>
> V1 search REST API response is different from earlier version of Atlas, for 
> example:
> Response in Atlas from master:
> {noformat}
> {
>   'count': 1,
>   'dataType': None, 
>   'results': [
> {
>   'status': u'ACTIVE',
>   'guid': u'20ffbd67-a4dc-4b8f-ad68-a318c9b62519', 
>   'typeName': 'hive_db',
>   'displayText': 'finance_tg_atlas', 
>   'attributes': {
> 'owner': 'user2', 
> 'qualifiedName': 'finance_tg_atlas@cl1', 
> 'description': None, 
> 'createTime': None, 
> 'name': 'finance_tg_atlas'
>   }, 
>   'classificationNames': []
> }
>   ],
>   'requestId': 'pool-2-thread-4 - dc5394df-ab75-4ff7-b3e0-876842d36725', 
>   'query': "hive_db where name='finance_tg_atlas'",
>   'queryType': 'dsl'
> }
> {noformat}
> Response from Atlas in branch-0.8:
> {noformat}
> {
>   "requestId": "pool-2-thread-17 - e070c9bd-a21a-4bb1-90da-d79f7a200532",
>   "query": "hive_db",
>   "queryType": "dsl",
>   "count": 1,
>   "results": [
> {
>   "$typeName$": "hive_db",
>   "$id$": {
> "id": "8048049f-0d63-4627-97a1-5200a0081ca5",
> "$typeName$": "hive_db",
> "version": 0,
> "state": "ACTIVE"
>   },
>   "$systemAttributes$": {
> "createdBy": "hive",
> "modifiedBy": "hive",
> "createdTime": "Mon Jan 08 19:55:35 UTC 2018",
> "modifiedTime": "Mon Jan 08 19:55:35 UTC 2018"
>   },
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (ATLAS-2347) V1 search REST API response to be consistent with earlier version of Atlas

2018-01-09 Thread Madhan Neethiraj (JIRA)

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

Madhan Neethiraj updated ATLAS-2347:

Attachment: ATLAS-2347-2.patch

> V1 search REST API response to be consistent with earlier version of Atlas
> --
>
> Key: ATLAS-2347
> URL: https://issues.apache.org/jira/browse/ATLAS-2347
> Project: Atlas
>  Issue Type: Bug
>  Components:  atlas-core
>Affects Versions: 1.0.0
>Reporter: Deepak Sharma
>Assignee: Madhan Neethiraj
>Priority: Critical
> Fix For: 1.0.0
>
> Attachments: ATLAS-2347-2.patch, ATLAS-2347.patch
>
>
> V1 search REST API response is different from earlier version of Atlas, for 
> example:
> Response in Atlas from master:
> {noformat}
> {
>   'count': 1,
>   'dataType': None, 
>   'results': [
> {
>   'status': u'ACTIVE',
>   'guid': u'20ffbd67-a4dc-4b8f-ad68-a318c9b62519', 
>   'typeName': 'hive_db',
>   'displayText': 'finance_tg_atlas', 
>   'attributes': {
> 'owner': 'user2', 
> 'qualifiedName': 'finance_tg_atlas@cl1', 
> 'description': None, 
> 'createTime': None, 
> 'name': 'finance_tg_atlas'
>   }, 
>   'classificationNames': []
> }
>   ],
>   'requestId': 'pool-2-thread-4 - dc5394df-ab75-4ff7-b3e0-876842d36725', 
>   'query': "hive_db where name='finance_tg_atlas'",
>   'queryType': 'dsl'
> }
> {noformat}
> Response from Atlas in branch-0.8:
> {noformat}
> {
>   "requestId": "pool-2-thread-17 - e070c9bd-a21a-4bb1-90da-d79f7a200532",
>   "query": "hive_db",
>   "queryType": "dsl",
>   "count": 1,
>   "results": [
> {
>   "$typeName$": "hive_db",
>   "$id$": {
> "id": "8048049f-0d63-4627-97a1-5200a0081ca5",
> "$typeName$": "hive_db",
> "version": 0,
> "state": "ACTIVE"
>   },
>   "$systemAttributes$": {
> "createdBy": "hive",
> "modifiedBy": "hive",
> "createdTime": "Mon Jan 08 19:55:35 UTC 2018",
> "modifiedTime": "Mon Jan 08 19:55:35 UTC 2018"
>   },
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)