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

[Atlas: Glossary Term Bulk Import] When there an incorrect data in preferred term column, it is not considered while importing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • atlas-core
    • None

    Description

      When there is an error in the PreferredTerms of the input, error is not considered

      Consider the following input. Here the provided term "abcd:efgh" does not exists in the system. 
      The error is thrown when it is provided as an input for "PreferredToTerms" column but not for "PreferredTerms" column

      GlossaryName, TermName, ShortDescription, LongDescription, Examples, Abbreviation, Usage, AdditionalAttributes, TranslationTerms, ValidValuesFor, Synonyms, ReplacedBy, ValidValues, ReplacementTerms, SeeAlso, TranslatedTerms, IsA, Antonyms, Classifies, PreferredToTerms, PreferredTerms
      dharsh,term_1,"short desc","long description", "Example", "G1", "Usage", "glossary:100%",,,,,,,,,,,,,"abcd:efgh"
      dharsh,term_2,"short desc","long description", "Example", "G1", "Usage", "glossary:100%",,,,,,,,,,,,"abcd:efgh", 

       

      Expectation:
      2 failed message info should be thrown one for term_1(incorrect PreferredTerms) and the other for term_2(incorrect PreferredToTerms), but only 1 is thrown

       

      Current output:

      {
        "failedImportInfoList": [
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_2",
            "importStatus": "FAILED",
            "remarks": "The provided Reference efgh@abcd does not exist at Atlas referred at record with TermName  : term_2 and GlossaryName : dharsh"
          }
        ],
        "successImportInfoList": [
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_1",
            "importStatus": "SUCCESS",
            "remarks": "{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
          },
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_2",
            "importStatus": "SUCCESS",
            "remarks": "{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
          }
        ]
      } 

       

      Expected output:

      {
        "failedImportInfoList": [
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_1",
            "importStatus": "FAILED",
            "remarks": "The provided Reference efgh@abcd does not exist at Atlas referred at record with TermName  : term_1 and GlossaryName : dharsh"
          },
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_2",
            "importStatus": "FAILED",
            "remarks": "The provided Reference efgh@abcd does not exist at Atlas referred at record with TermName  : term_2 and GlossaryName : dharsh"
          }
        ],
        "successImportInfoList": [
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_1",
            "importStatus": "SUCCESS",
            "remarks": "{\"termGuid\":\"284fe9a7-911c-423a-90bf-adf8231afb27\",\"qualifiedName\":\"term_1@dharsh\"}"
          },
          {
            "parentObjectName": "dharsh",
            "childObjectName": "term_2",
            "importStatus": "SUCCESS",
            "remarks": "{\"termGuid\":\"29a51c8a-ce92-4988-8fca-feaf683c58dd\",\"qualifiedName\":\"term_2@dharsh\"}"
          }
        ]
      }  

      Attachments

        Issue Links

          Activity

            People

              sidharthkmishra Sidharth Kumar Mishra
              dharshmk Dharshana M Krishnamoorthy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: