[COMPASS-6160] Can't edit any nested _id fields in the document view Created: 28/Sep/22  Updated: 10/Jan/24  Resolved: 17/Nov/22

Status: Closed
Project: Compass
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 1.35.0

Type: Bug Priority: Major - P3
Reporter: Sergey Petushkov Assignee: Rhys Howell
Resolution: Fixed Votes: 0
Labels: needs-prioritization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-09-28-17-54-41-976.png    
Documentation Changes: Not Needed
Sprint: Iteration Porpoise

 Description   

Problem Statement/Rationale

It is currently not possible to edit a document with a nested _id field in a document view

Steps to Reproduce

Try to edit a _id field nested under the data field

Expected Results

You can change the field value

Actual Results

Field is not editable

Additional Notes

hadron-document currently marks field as read-only if the field key is _id, whereas it should probably also check that the field is a direct child of the root as an additional condition for marking a field read-only



 Comments   
Comment by Githook User [ 01/Dec/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: update-compass-shell-to-shared-config
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 25/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: compass-6057-refactor-auto-updates
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 21/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: COMPASS-6291-preserve-preview-if-pipeline-fails
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 21/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: COMPASS-6298-pipeline-tests
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 21/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: update-compass-instance-to-shared-config
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 18/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: COMPASS-6061-implement-enabledevtools-option
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 18/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: 6063-dev
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 18/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: reduce-collection-header-size
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

Comment by Githook User [ 17/Nov/22 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(hadron-document): check for root level when deciding if `_id` key is editable COMPASS-6160 (#3759)
Branch: main
https://github.com/mongodb-js/compass/commit/c12720c09369b6620405de027fa85d469db43e9c

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