-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
Affects Version/s: 1.46.1
-
Component/s: Query Bar
-
Environment:OS:
node.js / npm versions:
Additional info:
-
3
-
Not Needed
-
None
-
Developer Tools
In this screenshot you can see an invalid value isn't shown as invalid:
In both the `sort` and `collation` inputs something like:
```
{somehow: this_is_valid_but_does_not_save_or_work}```
Will be marked as valid, however, it isn't used in the query as it's actually invalid. This ticket involves preventing folks from running a query when this is the case and we should mark it invalid like other invalid values.
Marked the ticket P4 as I haven't heard anything about this from anyone and I'm thinking it might be something that's harder to run into.
This happens in the query-parser: https://github.com/mongodb-js/devtools-shared/blob/main/packages/query-parser/src/index.ts