[COMPASS-6944] Modifying a filter gives: "An error occurred while rendering CompassSchemaPlugin: Expected a function" Created: 20/Jun/23  Updated: 29/Oct/23  Resolved: 14/Jul/23

Status: Closed
Project: Compass
Component/s: Schema
Affects Version/s: 1.37.0
Fix Version/s: 1.39.2

Type: Bug Priority: Major - P3
Reporter: Peter Williamson Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: MACOS 13.4
node.js / npm versions: 8.19.2
Additional info: Compass 1.37.0


Attachments: File 64790beb85f4013239963ce8_log.gz     File IMG_0011.MOV     PNG File Screenshot 2023-06-20 at 4.59.02 PM.png    
Issue Links:
Related
related to COMPASS-6980 Schema Analyser converts double space... Open
Story Points: 2
Documentation Changes: Not Needed

 Description   

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.



 Comments   
Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944 (#4606)

  • fix(schema): error while modifying a filter in the schema tab COMPASS-6944
  • wip
  • remove unnecessary types
  • install deps
  • fix check
  • fix checks
  • remove unused method
  • rebase
Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944 (#4606)

  • fix(schema): error while modifying a filter in the schema tab COMPASS-6944
  • wip
  • remove unnecessary types
  • install deps
  • fix check
  • fix checks
  • remove unused method
  • rebase
Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944 (#4606)

  • fix(schema): error while modifying a filter in the schema tab COMPASS-6944
  • wip
  • remove unnecessary types
  • install deps
  • fix check
  • fix checks
  • remove unused method
  • rebase
Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944 (#4606)

  • fix(schema): error while modifying a filter in the schema tab COMPASS-6944
  • wip
  • remove unnecessary types
  • install deps
  • fix check
  • fix checks
  • remove unused method
  • rebase
Comment by Githook User [ 14/Jul/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944 (#4606)

  • fix(schema): error while modifying a filter in the schema tab COMPASS-6944
  • wip
  • remove unnecessary types
  • install deps
  • fix check
  • fix checks
  • remove unused method
  • rebase
Comment by Githook User [ 11/Jul/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944
Branch: move-mongodb-query-util
https://github.com/mongodb-js/compass/commit/b1424abbd054b57030d1dc1c134bead50291a65e

Comment by Githook User [ 30/Jun/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(schema): error while modifying a filter in the schema tab COMPASS-6944
Branch: move-mongodb-query-util
https://github.com/mongodb-js/compass/commit/452a799fadde4f6d511a841334e058559c38980f

Generated at Wed Feb 07 22:44:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.