[
https://issues.apache.org/jira/browse/ATLAS-3872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17151320#comment-17151320
]
Mandar Ambawane commented on ATLAS-3872:
----------------------------------------
*Cause of the problem:*
Type-def Column is created by quick-start script.
Here in this case, Type-def Column has the attribute "name". And it has
property isOptional = true
Type-def Column is a child of Type-def Asset which also has the attribute
"name". And it has property isOptional = false
Now while creating Entity of Type-def Column from UI, it does not show
attribute "name" in the mandatory fields because for Type-def Column its
property isOptional = true
But while validating the attributes from server side we iterate through all the
attributes of Entity type (Including Parent's attributes)
In this case, while validating Type-def Asset's attribute "name" (which has
property isOptional = false) we get an error because its value is sent as
"null" from UI side.
> While creating Column entity shows error message
> ------------------------------------------------
>
> Key: ATLAS-3872
> URL: https://issues.apache.org/jira/browse/ATLAS-3872
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Durga Kadam
> Assignee: Mandar Ambawane
> Priority: Minor
> Attachments: column_entity_name_field_issue.ogv
>
>
> Description:: While creating Column entity(whose entity-type has been
> generated from running quick_start.py) if user does not provide the 'name'(by
> enabling the toggle 'Required All') it shows below error message.
> Error message::
> Invalid instance creation/updation parameters passed : Column.name: mandatory
> attribute value missing in type Asset
> Steps to reproduce issue::
> # Go to Create entity
> # Select 'Column' type
> # Enter 'QualifiedName(string)' and select the 'Table(Table)' from drop-down
> # Click on Create buttonIt will show error message
> Note-
> # If user provides the 'name' which is listed inside the 'Required All' tab
> it will allow user to save the entity. PFA attached video.
> # Working fine for Hive_column and Hbase_column as user provides the
> mandatory name field which is listed outside the 'Required All' tab
--
This message was sent by Atlassian Jira
(v8.3.4#803005)