[COMPASS-5372] BSONTimestamp value is not properly copied over in when clicking the copy button Created: 17/Dec/21  Updated: 29/Oct/23  Resolved: 03/Feb/22

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

Type: Bug Priority: Major - P3
Reporter: Steven Connors (Inactive) Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Screen Recording 2021-12-16 at 7.24.59 PM.mov    
Issue Links:
Related
related to COMPASS-4927 Remove mongodb-extended-json usage Closed
Documentation Changes: Not Needed
Sprint: Iteration Utica

 Description   

Problem Statement/Rationale

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

Steps to Reproduce

  • Use Compass 1.29.4.
  • Insert a document with a field with the BSONTimestamp field value
  • go to compass & check the document out. Pretty the copy icon that shows up at the top right.
  • go to a separate text editor and paste your clipboard. Notice that the timestamp field doesn't contain the document contents.

Expected Results

  • I wouldve expected the timestamp value to be copied over.

Actual Results

  • nothing

Additional Notes

  • Attached a video which I hope will help with the repro. Thank you!


 Comments   
Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: COMPASS-5417-sort-filters-on-entry-screen
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: mocha-automock-support
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: COMPASS-5470-improve-dark-theme-toggle-appearance
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: COMPASS-5481-use-one-react-root
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

  • chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
Branch: main
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.
Branch: 4927-dev
https://github.com/mongodb-js/compass/commit/a6d1751ed8fe0162d746b2e5321c8991f3b18f39

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