[COMPASS-4849] Find document feature crashes on non standard date format Created: 25/May/21  Updated: 09/Aug/22

Status: Open
Project: Compass
Component/s: None
Affects Version/s: 1.26.1, 1.28.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Liara Schäfer Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 20.04


Story Points: 5

 Description   

Problem Description

In the find document section one can type queries like this:

{delayed_until: new Date("2021-05-25T14:49:29.002Z")}

This works fine. However, if the format is malformed, the search query can no longer be entered:

{delayed_until: new Date("202105-25T14:49:29.002Z")} 

The application inserts a newline instead of running the query once `enter` is hit. Clicking the FIND button works but it is not doing anything.

Expected Results

An error should be show that the format is malformed and the FIND button should be disabled.


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