[COMPASS-5558] Behavior is reverse between mongodb shell and compass Created: 02/Mar/22  Updated: 27/Oct/23  Resolved: 17/May/23

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

Type: Bug Priority: Minor - P4
Reporter: 竞 高 Assignee: Sergey Petushkov
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB server version: 4.4.12
MongoDB shell version v4.2.11
MongoDB Compass Version 1.30.1 (1.30.1)


Attachments: PNG File screenshot-1.png     PNG File screenshot-2.png    
Documentation Changes: Not Needed

 Description   

In shell:

new ObjectId().valueOf();

xxxxxxxxxxxxxxxxxxxxxxxx

new ObjectId().toString();

ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx")

 

In compass is totally reverse:

new ObjectId().valueOf();

ObjectId("xxxxxxxxxxxxxxxxxxxxxxxx")

new ObjectId().toString();

xxxxxxxxxxxxxxxxxxxxxxxx

 

 



 Comments   
Comment by Sergey Petushkov [ 17/May/23 ]

Hello, thanks for opening an issue! Compass behavior is aligned with the new MongoDB shell: mongosh, so this works as expected

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