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

Updating classification removes some properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8-incubating
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    Description

      • Created classification via POST.
      • Updated via PUT
      • Lost properties

      POST http://127.0.0.1:21000/api/atlas/v2/types/typedefs

      {
       "classificationDefs": [{
        "name": "test_classification_11",
        "description": "",
        "createdBy" : "admin",
        "superTypes": [],
        "attributeDefs": [{
          "name" : "test_class_11",
          "typeName" : "string",
          "isOptional" : true,
          "isUnique" : true,
          "isIndexable" : true,
          "cardinality": "SINGLE",
          "valuesMinCount": 0,
          "valuesMaxCount": 1
      }]
       }],
       "entityDefs": [],
       "enumDefs": [],
       "structDefs": []
      }
      

      GET http://127.0.0.1:21000/api/atlas/v2/types/classification/name/test_classification_11

      {
      "category": "CLASSIFICATION",
      "guid": "83162fe1-4bb4-4a87-b2b8-364e751a1265",
      "createdBy": "admin",
      "createTime": 1497485890857,
      "updateTime": 1497485890857,
      "version": 1,
      "name": "test_classification_11",
      "description": "",
      "typeVersion": "1.0",
      "attributeDefs": [
        {
      "name": "test_class_11",
      "typeName": "string",
      "isOptional": true,
      "cardinality": "SINGLE",
      "valuesMinCount": 0,
      "valuesMaxCount": 1,
      "isUnique": true,
      "isIndexable": true
      }
      ],
      "superTypes": [],
      }
      

      PUT http://127.0.0.1:21000/api/atlas/v2/types/typedefs

      Update attribute.

      GET http://127.0.0.1:21000/api/atlas/v2/types/classification/name/test_classification_11

      {
      "category": "CLASSIFICATION",
      "createdBy": "admin",
      "name": "test_classification_11",
      "description": "",
      "attributeDefs": [
        {
      "name": "test_class_11",
      "typeName": "string",
      "isOptional": true,
      "cardinality": "SINGLE",
      "valuesMinCount": 0,
      "valuesMaxCount": 1,
      "isUnique": true,
      "isIndexable": false
      }
      ],
      "superTypes": [],
      }
      

      Some properties are missing after PUT update of attribute "isIndexable"

      Attachments

        1. Atlas-1789.postman_collection.json
          47 kB
          Péter Gergő Barna

        Issue Links

          Activity

            People

              bpgergo Péter Gergő Barna
              LauraNgo Laura Ngo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: