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

Modifying a filter gives: "An error occurred while rendering CompassSchemaPlugin: Expected a function"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.39.2
    • Affects Version/s: 1.37.0
    • Component/s: Schema
    • None
    • Environment:
      OS: MACOS 13.4
      node.js / npm versions: 8.19.2
      Additional info: Compass 1.37.0
    • 2
    • Not Needed

      Problem Statement/Rationale

      While using schema viewer and editing a {time: {$gt: ISODate(...), $lt: ISODate(...)}} filter and more specifically reversing the condition by erasing the "l" of $lt I get. the error:

      An error occurred while rendering CompassSchemaPlugin: Expected a function

      The only way to get back to the schema is to navigate to a different collection.

      Steps to Reproduce

      Filter data containing time stamps such as: 

       

      {ts: \{$gt: ISODate('2023-06-06T12:23:45.123Z'), $lt: ISODate('2023-06-06T12:25:00.000Z')}}

      Then click in the filter and backspace over the "L" in $lt

      Expected Results

      The "L" is deleted allowing a G to be typed

      Actual Results

      I can a red bar with the error message as shown in the attached screen shot

      Additional Notes

      Any additional information that may be useful to include.

        1. 64790beb85f4013239963ce8_log.gz
          280 kB
        2. IMG_0011.MOV
          8.02 MB
        3. Screenshot 2023-06-20 at 4.59.02 PM.png
          Screenshot 2023-06-20 at 4.59.02 PM.png
          19 kB

            Assignee:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Reporter:
            peter.williamson@mongodb.com Peter Williamson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: