You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sarath Subramanian (JIRA)" <ji...@apache.org> on 2017/06/12 15:54:00 UTC

[jira] [Commented] (ATLAS-1863) Set default value for primitive types attributes in entity based on attributeDef in Typedef

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

Sarath Subramanian commented on ATLAS-1863:
-------------------------------------------

could you add a review board link with the latest patch.

> Set default value for primitive types attributes in entity based on attributeDef in Typedef
> -------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1863
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1863
>             Project: Atlas
>          Issue Type: Improvement
>          Components: atlas-intg
>            Reporter: Nixon Rodrigues
>            Assignee: Ruchi Solani
>            Priority: Critical
>             Fix For: 0.9-incubating
>
>         Attachments: ATLAS-1863.2.patch, ATLAS-1863.patch
>
>
> While creating entity if attribute value are not set explicitly for primitive type which are optional, then default value should be set from attributedef.
> eg of typedef attributeDef
> {code}
> "attributeDefs": [	{
> 					"name": "sourceCode",
> 					"typeName": "string",
> 					"isOptional": true,
> 					"cardinality": "SINGLE",
> 					"valuesMinCount": 0,
> 					"valuesMaxCount": 1,
> 					"isUnique": false,
> 					"isIndexable": true,
> 					"defaultValue": "xyz"
> 				}
> {code}



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