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

pratik pandey updated ATLAS-2567:
---------------------------------
    Description: 
DSL search result doesn't have classifications list which is needed for UI to 
differentiate between the propagated tag and self-associated tag.

Please find API response for DSL & BASIC search.

DSL:

 
{code:java}
{
 "queryType": "DSL",
 "queryText": "`Table` ",
 "entities": [
 {
 "typeName": "Table",
 "attributes":
 {
 "owner": "John Doe",
 "createTime": 1522060403813,
 "qualifiedName": "product_dim",
 "name": "product_dim",
 "description": "product dimension table"
 },
 "guid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
 "status": "ACTIVE",
 "displayText": "product_dim",
 "classificationNames": ["Dimension"]
 }]
}

{code}
BASIC
{code:java}
{
    "queryType": "BASIC",
    "searchParameters":
    {
        "typeName": "Table",
        "excludeDeletedEntities": true,
        "includeClassificationAttributes": true,
        "includeSubTypes": true,
        "includeSubClassifications": true,
        "limit": 25,
        "offset": 0,
        "attributes": []
    },
    "entities": [
    {
        "typeName": "Table",
        "attributes":
        {
            "owner": "John Doe",
            "createTime": 1522060403813,
            "qualifiedName": "product_dim",
            "name": "product_dim",
            "description": "product dimension table"
        },
        "guid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
        "status": "ACTIVE",
        "displayText": "product_dim",
        "classificationNames": ["Dimension"],
        "classifications": [
        {
            "typeName": "Dimension",
            "entityGuid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
            "propagate": true
        }]
    }]
}
{code}
 

As we can see basic search result have classifications list with *entityGuid* 
whereas DSL search doesn't have it.
        Summary: Classification list missing in DSL search result.  (was: DSL 
search API doesn't have GUID for classifications.)

> Classification list missing in DSL search result.
> -------------------------------------------------
>
>                 Key: ATLAS-2567
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2567
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: pratik pandey
>            Assignee: Madhan Neethiraj
>            Priority: Major
>
> DSL search result doesn't have classifications list which is needed for UI to 
> differentiate between the propagated tag and self-associated tag.
> Please find API response for DSL & BASIC search.
> DSL:
>  
> {code:java}
> {
>  "queryType": "DSL",
>  "queryText": "`Table` ",
>  "entities": [
>  {
>  "typeName": "Table",
>  "attributes":
>  {
>  "owner": "John Doe",
>  "createTime": 1522060403813,
>  "qualifiedName": "product_dim",
>  "name": "product_dim",
>  "description": "product dimension table"
>  },
>  "guid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
>  "status": "ACTIVE",
>  "displayText": "product_dim",
>  "classificationNames": ["Dimension"]
>  }]
> }
> {code}
> BASIC
> {code:java}
> {
>     "queryType": "BASIC",
>     "searchParameters":
>     {
>         "typeName": "Table",
>         "excludeDeletedEntities": true,
>         "includeClassificationAttributes": true,
>         "includeSubTypes": true,
>         "includeSubClassifications": true,
>         "limit": 25,
>         "offset": 0,
>         "attributes": []
>     },
>     "entities": [
>     {
>         "typeName": "Table",
>         "attributes":
>         {
>             "owner": "John Doe",
>             "createTime": 1522060403813,
>             "qualifiedName": "product_dim",
>             "name": "product_dim",
>             "description": "product dimension table"
>         },
>         "guid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
>         "status": "ACTIVE",
>         "displayText": "product_dim",
>         "classificationNames": ["Dimension"],
>         "classifications": [
>         {
>             "typeName": "Dimension",
>             "entityGuid": "a31fe16a-3592-4b82-aeec-71db0f1fa85c",
>             "propagate": true
>         }]
>     }]
> }
> {code}
>  
> As we can see basic search result have classifications list with *entityGuid* 
> whereas DSL search doesn't have it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to