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

UI - Basic Search Post request send attribute filters even after removing Type

    XMLWordPrintableJSON

Details

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

    Description

      Steps to Reproduce:-

      1. Select a Type and apply a filter for it
      2. Select a Tag and click on search button
      3. Now remove Type using "x" button of type dropdown
      4. After removing type click on Search button, It show error as "EntityFilters specified without Type name"

      Request Payload with type selected:-

      {
          "excludeDeletedEntities": true,
          "typeName":"Asset",
          "entityFilters":
          {
              "condition": "AND",
              "criterion": [
              {
                  "attributeName": "name",
                  "operator": "eq",
                  "attributeValue": "Test"
              }]
          },
          "tagFilters": null,
          "attributes": null,
          "limit": 25,
          "offset": 0,
          "typeName": null,
          "classification": "a1509022126155"
      }
      

      Request Payload without type selected:-

      • entityFilters attribute is present without Type which is wrong
      {
          "excludeDeletedEntities": true,
          "entityFilters":
          {
              "condition": "AND",
              "criterion": [
              {
                  "attributeName": "name",
                  "operator": "eq",
                  "attributeValue": "Test"
              }]
          },
          "tagFilters": null,
          "attributes": null,
          "limit": 25,
          "offset": 0,
          "typeName": null,
          "classification": "a1509022126155"
      }
      

      Attachments

        1. ATLAS-2236.patch
          1 kB
          Keval Bhatt

        Issue Links

          Activity

            People

              kevalbhatt Keval Bhatt
              tejas_rawool Tejas Rawool
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: