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

Keval Bhatt edited comment on ATLAS-1877 at 6/16/17 1:00 PM:
-------------------------------------------------------------

[~xiaqinglin] If entity it self is a Process or entity super type is process 
then there is no need to check further. 
you will check if it is not at first level or its is not a Process it self.

The above JSON Is list of Types (i.e entityDef) so you need to create one type 
which is derived from Load Process.
and the create a entity from newly created type.

Steps.
# Create a type which has superType as LoadProcess . 
URL - http://localhost:9999/api/atlas/v2/types/typedefs
{code} {
        "entityDefs": [{
                        "category": "ENTITY",
                        "version": 1,
                        "name": "child_loadProcess",
                        "description": "child of load process",
                        "typeVersion": "1.0",
                        "attributeDefs": [{
                                        "name": "test_att",
                                        "typeName": "string",
                                        "isOptional": false,
                                        "cardinality": "SINGLE",
                                        "valuesMinCount": 1,
                                        "valuesMaxCount": 1,
                                        "isUnique": false,
                                        "isIndexable": true
                                }
                        ],
                        "superTypes": [
                                "LoadProcess"
                        ]
                }
        ]
} 
{code}
# Now create a entity from this newly created type.
# Then use this entity for Lineage.

For more details please go through atlas [Type 
system|http://atlas.incubator.apache.org/TypeSystem.html] and [Rest API 
|http://atlas.incubator.apache.org/api/v2/index.html] documentation


was (Author: kevalbhatt18):
[~xiaqinglin] If entity it self is a Process or entity super type is process 
then there is no need to check further. 
you will check if it is not at first level or its is not a Process it self.

The above JSON Is list of Types (i.e entityDef) so you need to create one type 
which is derived from Load Process.
and the create a entity from newly created type.

Steps.
# Create a type which has superType as LoadProcess . 
URL - http://localhost:9999/api/atlas/v2/types/typedefs
{code} {
        "entityDefs": [{
                        "category": "ENTITY",
                        "version": 1,
                        "name": "child_loadProcess",
                        "description": "child of load process",
                        "typeVersion": "1.0",
                        "attributeDefs": [{
                                        "name": "test_att",
                                        "typeName": "string",
                                        "isOptional": false,
                                        "cardinality": "SINGLE",
                                        "valuesMinCount": 1,
                                        "valuesMaxCount": 1,
                                        "isUnique": false,
                                        "isIndexable": true
                                }
                        ],
                        "superTypes": [
                                "LoadProcess"
                        ]
                }
        ]
} 
{code}
# Now create a entity from this newly created type.
# Then use this entity for Lineage.

For more details please go through atlas [Type system 
documentation|http://atlas.incubator.apache.org/TypeSystem.html] and [Rest API 
|http://atlas.incubator.apache.org/api/v2/index.html]

> UI: In Lineage for Process entity process icon is not showing.
> --------------------------------------------------------------
>
>                 Key: ATLAS-1877
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1877
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>            Reporter: Keval Bhatt
>            Assignee: qinglin,xia
>              Labels: atlas
>             Fix For: trunk, 0.9-incubating
>
>         Attachments: 0001-fix-ATLAS-1877.patch, Process_Icon_Fixed.png, 
> wrong_process_icon.png
>
>
> UI should check Process entity in all parent superType, right know its 
> checking for only 1 level
> Step to reproduce :
> # Run quickstart
> # Create entity of type Process and while creating process select time_dim 
> (Table entity) as a input and output.
> # Now got to sales_fact_monthly_mv entity and you will see new output (Please 
> find attached screenshot )



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

Reply via email to