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

Basic Search : not null userDefined Attributes return incorrect results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • atlas-core
    • None

    Description

      Issue: using not null operator with userDefined attributes, returns some entities which doesn't have userDefined attirbutes.

      Reproduce: Assign one userDefined attribute to X entity, Remove all the userDefined attribute assigned to X entity. Search with notNull userDefined attributes. Actual: Lists X entity
      Expected: shouldn't list X entity, as all the attributes are removed.

      Cause: As the userDefined attributes are stored in json format, when we remove all the attributes, it removes all the list but it leaves '{}' blank json, which matches the nonNull field.

      Fix: While removing the userDefined, check the Empty list, and remove the json object.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pinal Pinal Shah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: