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

"RegExp" query is changed in Recents to "pattern"

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.31.3, 1.34.1
    • Component/s: Query History
    • Labels:
      None
    • Not Needed

      Problem Statement/Rationale

      After closing the tab of a collection, when I view a recent RegExp query in Recents, it is transformed into a pattern query.

      Steps to Reproduce

      1. Open a collection tab in Compass.
      2. Execute a query such as: {name: RegExp('bob', 'i')}
      3. In Recents, you can see the query. It is correct.
      4. Close the collection tab.
      5. Open the collection tab again.
      6. In Recents, the query has been changed from a RegExp query to a pattern query.

      Expected Results

      The query should not change.

      Actual Results

      The query becomes:

      {
       name: {   pattern: 'bob',   options: 'i'  }
      }

       

        1. compass-regexp-0.png
          compass-regexp-0.png
          6 kB
        2. compass-regexp-1-1.png
          compass-regexp-1-1.png
          18 kB
        3. compass-regexp-3-1.png
          compass-regexp-3-1.png
          19 kB

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            ephraim@parsempo.com Ephraim Tabackman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: