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

Not able to assign classification with mandatory attribute of type "array<string>"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • atlas-core, atlas-webui
    • None

    Description

      Create a classification that has mandatory attribute of type "array<string>" via REST api

      Create classification with payload:
      {
       "enumDefs": [],
       "structDefs": [],
       "classificationDefs": [
       {
       "category": "CLASSIFICATION",
       "guid": "8996315b-b5fe-48c6-b9d0-4668fhkfd21af",
       "createdBy": "hrt_qa",
       "updatedBy": "hrt_qa",
       "createTime": 1602057743077,
       "updateTime": 1602057743077,
       "version": 1,
       "name": "read_auth_test_tag1",
       "description": "read_auth_test_tag1",
       "typeVersion": "1.0",
       "attributeDefs": [
       {
       "name": "type_long_min",
       "typeName": "long",
       "isOptional": true,
       "cardinality": "SINGLE",
       "valuesMinCount": 0,
       "valuesMaxCount": 1,
       "isUnique": false,
       "isIndexable": false
       },
       {
       "name":"type_arr_list",
       "typeName":"array<string>",
       "isOptional":false,
       "cardinality":"LIST",
       "valuesMinCount":1,
       "valuesMaxCount":2147483647,
       "isUnique":false,
       "isIndexable":false
       },
       {
       "name":"type_set",
       "typeName":"array<string>",
       "isOptional":false,
       "cardinality":"SET",
       "valuesMinCount":1,
       "valuesMaxCount":2147483647,
       "isUnique":false,
       "isIndexable":false
       }
       ],
       "superTypes": [],
       "entityTypes": [],
       "subTypes": []
       }
       ],
       "entityDefs": [],
       "relationshipDefs": [],
       "businessMetadataDefs": []
      }
      
      

      Assign the same to an entity.

      The assignment fails as the attributes of type "array<string>" are not visible on UI

      error message
      {"errorCode":"ATLAS-400-00-01A",
      
      "errorMessage":"invalid parameters: read_auth_test_tag1.type_arr_list: mandatory attribute value missing in type read_auth_test_tag1"}
      

       
      The assignment fails via both UI and rest api.

      In UI creation of attribute of such a type is not allowed but via rest api it is possible. 

      Attachments

        1. 0001-ATLAS-3985-3-Not-able-to-assign-classification-with-.patch
          29 kB
          Prasad P. Pawar
        2. 0001-ATLAS-3985-UI-1-Not-able-to-assign-classification-wi.patch
          14 kB
          Prasad P. Pawar
        3. 0001-ATLAS-3985-UI-2-Not-able-to-assign-classification-wi.patch
          23 kB
          Prasad P. Pawar
        4. Screenshot 2020-10-07 at 1.40.43 PM.png
          182 kB
          Dharshana M Krishnamoorthy
        5. Screenshot 2020-10-07 at 1.41.17 PM.png
          139 kB
          Dharshana M Krishnamoorthy

        Activity

          People

            prasadpp13 Prasad P. Pawar
            dharshmk Dharshana M Krishnamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: