Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4281

Schema tab goes blank when typing a query with $in on int32 fields

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Schema
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Compass version 1.21.0

      I have observed this to happen consistently, regardless of the collection being used.

      Steps to reproduce:
      1. Connect from Compass 1.21.0 to an Atlas cluster
      2. Open a collection in Compass. You can use the sample_mflix.movies namespace available when downloading sample data set to atlas clusters (more info here).
      3. Go to the schema tab, and click on analyse schema.
      4. type in a query in the filter, making sure it includes a field that has int32 values, and uses the $in operator. In my test, I use the below:

      {year:{$in:[1990,1992]}}
      

      As soon as I type the last closing bracket (i.e. without even running the query), the schema reports disappear, and there is no way to reset or analyse the schema again.

      I also repro'd this using the mongofans collection a collection generated by KEYHOLE in a local mongod. i.e. this is not associated to a particular collection (or Atlas).

        1. screenshot-1.png
          79 kB
          Massimiliano Marcon

            Assignee:
            Unassigned Unassigned
            Reporter:
            sergio.castro@mongodb.com Sergio Castro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: