[COMPASS-5697] Can't edit fields with null type Created: 07/Apr/22  Updated: 29/Oct/23  Resolved: 11/Apr/22

Status: Closed
Project: Compass
Component/s: CRUD
Affects Version/s: 1.31.1
Fix Version/s: 1.31.2

Type: Bug Priority: Critical - P2
Reporter: Massimiliano Marcon Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Sprint: Iteration Yonkers

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

It seems that one cannot edit fields from NULL to String. The expected behavior would be that you can type whatever you want. This is a regression.

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

  • Create a document with a field set to null
  • Go edit the document
  • Change the type of the null field to String
  • Try to edit its value

Expected Results

What do you expect to happen?

I can edit the value from "null" to the desired value.

Actual Results

What do you observe is happening?

I can't edit the value.

Additional Notes

Any additional information that may be useful to include.

Note from Max: It seems a general problem with how we handle null. For example, in a field set to null I can’t double click to edit the value, while in all the other fields I can.



 Comments   
Comment by Githook User [ 19/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: COMPASS-5519-update-collection-header-styles
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 19/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: clustered-collections
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 12/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: COMPASS-5669-aggregate-results
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: COMPASS-5543
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: remove-metrics
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: COMPASS-5588-update-perf-toolbar
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one (#2967)
Branch: main
https://github.com/mongodb-js/compass/commit/b06c5ed05524d60d4705c7bea0df33b018a7342a

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one
Branch: compass-5697-null-should-be-editable
https://github.com/mongodb-js/compass/commit/26d999e01d62b6b7e4ac6428b86abbc304edbc52

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(COMPASS-5697): Recreate Element editor when el type changes from the original one
Branch: compass-5697-null-should-be-editable
https://github.com/mongodb-js/compass/commit/aec44a68b38ba4384678989a349755723b4bd625

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