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

[Atlas: Glossary Term Bulk Import]Bulk import glossary terms should not allow creation of blank/empty glossaries

    XMLWordPrintableJSON

Details

    Description

      Currently via bulk import glossary term, we allow creation of blank/empty glossaries. 
      We should not allow these

      Response of : "api/atlas/v2/glossary" api

      [
       {
       "guid": "34bf4540-5909-4a8e-84f0-1ff310870730",
       "qualifiedName": "glossary_1",
       "name": "glossary_1",
       "terms": [
       {
       "termGuid": "1ccaa2a2-f663-43ee-8cbc-f20c0ac95af0",
       "relationGuid": "b255b30e-be93-44e4-93bf-3d2d11a512d4",
       "displayText": "term_1"
       }
       ]
       },
       {
       "guid": "8834a901-0fde-4123-8d82-06e655ccf231",
       "qualifiedName": " ",
       "name": " ",
       "terms": [
       {
       "termGuid": "ac3f05d9-16d4-4ac5-be9c-bc5034af02d8",
       "relationGuid": "9c2ef8dd-522c-4d07-a338-093f39bceb93",
       "displayText": "no name term"
       }
       ]
       },
       {
       "guid": "29950f59-e863-42e2-a3f8-a070e706a934",
       "terms": [
       {
       "termGuid": "9e504d8d-8be2-4518-821a-cad3d86dfa6d",
       "relationGuid": "75f8f3d0-258a-4428-bb6c-08e59da90ee3",
       "displayText": "empty_term"
       }
       ]
       }
      ]
      
      

      As seen above there exists a glossary with name " " and with no name.
      Not sure of the implication of such a glossary
      Though the request fails with right exception it ends up creating blank glossary

      Payload used:

      GlossaryName, TermName, ShortDescription, LongDescription, Examples, Abbreviation, Usage, AdditionalAttributes, TranslationTerms, ValidValuesFor, Synonyms, ReplacedBy, ValidValues, ReplacementTerms, SeeAlso, TranslatedTerms, IsA, Antonyms, Classifies, PreferredToTerms, PreferredTerms
      " ", " ",

      Attachments

        1. Screenshot 2021-01-28 at 11.25.14 AM.png
          236 kB
          Dharshana M Krishnamoorthy
        2. Screenshot 2021-01-25 at 6.13.59 PM.png
          358 kB
          Dharshana M Krishnamoorthy

        Issue Links

          Activity

            People

              mayank_nj Mayank Jain
              dharshmk Dharshana M Krishnamoorthy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: