Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1863

Set default value for primitive types attributes in entity based on attributeDef in Typedef

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.0.0
    • atlas-intg
    • None

    Description

      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

      "attributeDefs": [	{
      					"name": "sourceCode",
      					"typeName": "string",
      					"isOptional": true,
      					"cardinality": "SINGLE",
      					"valuesMinCount": 0,
      					"valuesMaxCount": 1,
      					"isUnique": false,
      					"isIndexable": true,
      					"defaultValue": "xyz"
      				}
      

      Attachments

        1. ATLAS-1863.patch
          197 kB
          Ruchi Solani
        2. ATLAS-1863.2.patch
          13 kB
          Ruchi Solani
        3. ATLAS-1863.3.patch
          20 kB
          Nixon Rodrigues

        Issue Links

          Activity

            People

              ruchi_solani Ruchi Solani
              nixon Nixon Rodrigues
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: