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

[Regression] [DSL-Advanced search] If the search query does not match any results, then Atlas UI keep loading forever

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Resolved
    • None
    • None
    • atlas-webui

    Description

      Observing an issue in DSL (Advanced search), if the search query does not match any results, then Atlas UI takes forever to return the results. It just wont stop loading.
       
      Whereas if there is a match, the results are returned almost immediately and displayed on the UI.

      On further checking, observed the below error in Console tab when the UI keeps loading (when there is no match)

      Uncaught TypeError: Cannot convert undefined or null to object
       at Function.keys (<anonymous>)
       at N.d.tableRender (SearchResultLayoutView.js?bust=1615290982036:332)
       at SearchResultLayoutView.js?bust=1615290982036:365
       at Object.execCb (require.js?bust=1615290982036:1)
       at t.check (require.js?bust=1615290982036:1)
       at t.<anonymous> (require.js?bust=1615290982036:1)
       at require.js?bust=1615290982036:1
       at require.js?bust=1615290982036:1
       at each (require.js?bust=1615290982036:1)
       at t.emit (require.js?bust=1615290982036:1) 

      Checked the CURL call directly (case where there are no match)
      Response:

      {
       "queryType": "DSL",
       "queryText": "`hive_db` where name=\"some_invalid_db\"",
       "approximateCount": -1
      } 

      Hence the issue is in UI alone and seems like a regression.

      Attachments

        1. 0001-ATLAS-4229-UI-DSL-Advanced-search-If-the-search-quer.patch
          3 kB
          Prasad P. Pawar
        2. ATLAS_4229_1.png
          102 kB
          Prasad P. Pawar

        Issue Links

          Activity

            People

              prasadpp13 Prasad P. Pawar
              umesh.padashetty Umesh Padashetty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: