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

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: atlas-intg
    • Labels:
      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.3.patch
          20 kB
          Nixon Rodrigues
        2. ATLAS-1863.2.patch
          13 kB
          Ruchi Solani
        3. ATLAS-1863.patch
          197 kB
          Ruchi Solani

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: