[COMPASS-4113] compass-crud UI validation on pasted types validation breaks Created: 24/Jan/20  Updated: 27/Oct/23  Resolved: 11/Mar/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Story Priority: Major - P3
Reporter: Jonathan Balsano Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File value pasting and editing in int32.mp4    
Issue Links:
Depends
Documentation Changes: Not Needed

 Description   

As described in HELP-13345, there appear to be several small bugs regarding type validation of field values in the edit/insert document UI. Specific examples:
1. If you have a field of type Int32, and paste in a floating point number (eg. 123.45), it won't complain. (Whereas if you tried to type out 123.45 it would just refuse to add the decimal.)
2. If you have a field of type Double, and set a floating point value (eg. 123.45), you can flip the type to Int32 and it won't complain.

I've confirmed these issues are reproducible in compass.



 Comments   
Comment by Rhys Howell [ 11/Mar/22 ]

Not sure when, but it looks like this has been fixed, repro attempt with current GA 1.30.1 attached.

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