Invalid stage (unescaped array) causes tab crash in aggregations

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 1.49.1
    • Affects Version/s: 1.49.0
    • Component/s: Aggregation pipeline
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Reproduce:
      1. Open aggregations

      2. Add a stage ($match for example)

      3. Edit it to have an unbounded array in the stage, like:

      {   a: ['a' }

      4. Switch tabs
      5. Go back to the last tab, observe it's crashed and progress is lost. (screenshot)

       

      Not sure if this is a new bug or not, but it does seem like it's a rough experience blocker, so I marked it p2. Feel free to bring to a p3.
      *edit Looks like its this line: https://github.com/mongodb-js/compass/blob/becf73a74630e8676f6abde92fd5000064fd2ea8/packages/compass-aggregations/src/components/pipeline-builder-workspace/pipeline-builder-ui-workspace/index.tsx#L123 

            Assignee:
            Basit Chonka
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: